From 04a47bcf7f9c3ca285989e35d23cae6e916a73ba Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Mon, 20 Jul 2020 20:39:19 -0700 Subject: [PATCH] feat!: remove v1alpha client This client never went public and the new version will publish the v1beta client. --- google-cloud-gameservices-bom/pom.xml | 93 - google-cloud-gameservices/pom.xml | 110 - .../GameServerClustersServiceClient.java | 1053 --- .../GameServerClustersServiceSettings.java | 344 - .../GameServerDeploymentsServiceClient.java | 1087 --- .../GameServerDeploymentsServiceSettings.java | 358 - .../gaming/v1alpha/RealmsServiceClient.java | 899 --- .../gaming/v1alpha/RealmsServiceSettings.java | 284 - .../cloud/gaming/v1alpha/package-info.java | 75 - .../stub/GameServerClustersServiceStub.java | 132 - ...GameServerClustersServiceStubSettings.java | 740 -- .../GameServerDeploymentsServiceStub.java | 139 - ...eServerDeploymentsServiceStubSettings.java | 782 -- ...eServerClustersServiceCallableFactory.java | 115 - .../GrpcGameServerClustersServiceStub.java | 530 -- ...rverDeploymentsServiceCallableFactory.java | 115 - .../GrpcGameServerDeploymentsServiceStub.java | 564 -- .../GrpcRealmsServiceCallableFactory.java | 115 - .../v1alpha/stub/GrpcRealmsServiceStub.java | 364 - .../v1alpha/stub/RealmsServiceStub.java | 99 - .../stub/RealmsServiceStubSettings.java | 603 -- .../GameServerClustersServiceClientTest.java | 502 -- ...ameServerDeploymentsServiceClientTest.java | 545 -- .../MockGameServerClustersService.java | 57 - .../MockGameServerClustersServiceImpl.java | 183 - .../MockGameServerDeploymentsService.java | 57 - .../MockGameServerDeploymentsServiceImpl.java | 200 - .../gaming/v1alpha/MockRealmsService.java | 57 - .../gaming/v1alpha/MockRealmsServiceImpl.java | 146 - .../v1alpha/RealmsServiceClientTest.java | 399 - .../pom.xml | 69 - .../GameServerClustersServiceGrpc.java | 1363 ---- .../v1alpha/GameServerConfigsServiceGrpc.java | 805 -- .../GameServerDeploymentsServiceGrpc.java | 1522 ---- .../gaming/v1alpha/RealmsServiceGrpc.java | 981 --- pom.xml | 19 - .../clirr-ignored-differences.xml | 19 - .../pom.xml | 42 - .../google/cloud/gaming/v1alpha/Common.java | 333 - .../CreateGameServerClusterRequest.java | 1142 --- ...eateGameServerClusterRequestOrBuilder.java | 122 - .../CreateGameServerConfigRequest.java | 1139 --- ...reateGameServerConfigRequestOrBuilder.java | 122 - .../CreateGameServerDeploymentRequest.java | 1149 --- ...eGameServerDeploymentRequestOrBuilder.java | 122 - .../gaming/v1alpha/CreateRealmRequest.java | 1112 --- .../v1alpha/CreateRealmRequestOrBuilder.java | 119 - .../DeleteGameServerClusterRequest.java | 663 -- ...leteGameServerClusterRequestOrBuilder.java | 56 - .../DeleteGameServerConfigRequest.java | 662 -- ...eleteGameServerConfigRequestOrBuilder.java | 56 - .../DeleteGameServerDeploymentRequest.java | 666 -- ...eGameServerDeploymentRequestOrBuilder.java | 56 - .../gaming/v1alpha/DeleteRealmRequest.java | 655 -- .../v1alpha/DeleteRealmRequestOrBuilder.java | 56 - .../cloud/gaming/v1alpha/DeployedState.java | 943 --- .../v1alpha/DeployedStateOrBuilder.java | 78 - .../v1alpha/FetchDeploymentStateRequest.java | 642 -- .../FetchDeploymentStateRequestOrBuilder.java | 52 - .../v1alpha/FetchDeploymentStateResponse.java | 6676 ----------------- ...FetchDeploymentStateResponseOrBuilder.java | 144 - .../cloud/gaming/v1alpha/FleetConfig.java | 823 -- .../gaming/v1alpha/FleetConfigOrBuilder.java | 79 - .../cloud/gaming/v1alpha/FleetDetails.java | 2159 ------ .../gaming/v1alpha/FleetDetailsOrBuilder.java | 141 - .../gaming/v1alpha/GameServerCluster.java | 2218 ------ .../GameServerClusterConnectionInfo.java | 1399 ---- ...eServerClusterConnectionInfoOrBuilder.java | 137 - .../gaming/v1alpha/GameServerClusterName.java | 251 - .../v1alpha/GameServerClusterOrBuilder.java | 280 - .../gaming/v1alpha/GameServerClusters.java | 359 - .../GameServerClustersServiceOuterClass.java | 131 - .../gaming/v1alpha/GameServerConfig.java | 2740 ------- .../v1alpha/GameServerConfigOrBuilder.java | 325 - .../v1alpha/GameServerConfigOverride.java | 1110 --- .../GameServerConfigOverrideOrBuilder.java | 89 - .../gaming/v1alpha/GameServerConfigs.java | 231 - .../GameServerConfigsServiceOuterClass.java | 101 - .../gaming/v1alpha/GameServerDeployment.java | 1914 ----- .../v1alpha/GameServerDeploymentName.java | 217 - .../GameServerDeploymentOrBuilder.java | 241 - .../v1alpha/GameServerDeploymentRollout.java | 2216 ------ .../GameServerDeploymentRolloutOrBuilder.java | 260 - .../gaming/v1alpha/GameServerDeployments.java | 426 -- ...ameServerDeploymentsServiceOuterClass.java | 137 - .../v1alpha/GetGameServerClusterRequest.java | 656 -- .../GetGameServerClusterRequestOrBuilder.java | 56 - .../v1alpha/GetGameServerConfigRequest.java | 663 -- .../GetGameServerConfigRequestOrBuilder.java | 58 - .../GetGameServerDeploymentRequest.java | 670 -- ...tGameServerDeploymentRequestOrBuilder.java | 58 - ...GetGameServerDeploymentRolloutRequest.java | 678 -- ...rverDeploymentRolloutRequestOrBuilder.java | 58 - .../cloud/gaming/v1alpha/GetRealmRequest.java | 654 -- .../v1alpha/GetRealmRequestOrBuilder.java | 56 - .../gaming/v1alpha/GkeClusterReference.java | 683 -- .../v1alpha/GkeClusterReferenceOrBuilder.java | 64 - .../v1alpha/GkeHubClusterReference.java | 700 -- .../GkeHubClusterReferenceOrBuilder.java | 68 - .../cloud/gaming/v1alpha/LabelSelector.java | 768 -- .../v1alpha/LabelSelectorOrBuilder.java | 79 - .../ListGameServerClustersRequest.java | 1309 ---- ...istGameServerClustersRequestOrBuilder.java | 152 - .../ListGameServerClustersResponse.java | 1739 ----- ...stGameServerClustersResponseOrBuilder.java | 211 - .../v1alpha/ListGameServerConfigsRequest.java | 1308 ---- ...ListGameServerConfigsRequestOrBuilder.java | 152 - .../ListGameServerConfigsResponse.java | 1718 ----- ...istGameServerConfigsResponseOrBuilder.java | 211 - .../ListGameServerDeploymentsRequest.java | 1313 ---- ...GameServerDeploymentsRequestOrBuilder.java | 152 - .../ListGameServerDeploymentsResponse.java | 1751 ----- ...ameServerDeploymentsResponseOrBuilder.java | 217 - .../gaming/v1alpha/ListRealmsRequest.java | 1304 ---- .../v1alpha/ListRealmsRequestOrBuilder.java | 152 - .../gaming/v1alpha/ListRealmsResponse.java | 1403 ---- .../v1alpha/ListRealmsResponseOrBuilder.java | 154 - .../cloud/gaming/v1alpha/LocationName.java | 182 - .../gaming/v1alpha/OperationMetadata.java | 2516 ------- .../v1alpha/OperationMetadataOrBuilder.java | 350 - .../cloud/gaming/v1alpha/OperationStatus.java | 961 --- .../v1alpha/OperationStatusOrBuilder.java | 88 - ...PreviewCreateGameServerClusterRequest.java | 1417 ---- ...eateGameServerClusterRequestOrBuilder.java | 156 - ...reviewCreateGameServerClusterResponse.java | 1221 --- ...ateGameServerClusterResponseOrBuilder.java | 123 - ...PreviewDeleteGameServerClusterRequest.java | 938 --- ...leteGameServerClusterRequestOrBuilder.java | 90 - ...reviewDeleteGameServerClusterResponse.java | 1221 --- ...eteGameServerClusterResponseOrBuilder.java | 123 - ...iewGameServerDeploymentRolloutRequest.java | 1417 ---- ...rverDeploymentRolloutRequestOrBuilder.java | 160 - ...ewGameServerDeploymentRolloutResponse.java | 1514 ---- ...verDeploymentRolloutResponseOrBuilder.java | 174 - .../v1alpha/PreviewRealmUpdateRequest.java | 1361 ---- .../PreviewRealmUpdateRequestOrBuilder.java | 154 - .../v1alpha/PreviewRealmUpdateResponse.java | 1205 --- .../PreviewRealmUpdateResponseOrBuilder.java | 123 - ...PreviewUpdateGameServerClusterRequest.java | 1396 ---- ...dateGameServerClusterRequestOrBuilder.java | 157 - ...reviewUpdateGameServerClusterResponse.java | 1219 --- ...ateGameServerClusterResponseOrBuilder.java | 123 - .../google/cloud/gaming/v1alpha/Realm.java | 2083 ----- .../cloud/gaming/v1alpha/RealmName.java | 210 - .../cloud/gaming/v1alpha/RealmOrBuilder.java | 263 - .../cloud/gaming/v1alpha/RealmSelector.java | 735 -- .../v1alpha/RealmSelectorOrBuilder.java | 76 - .../google/cloud/gaming/v1alpha/Realms.java | 235 - .../v1alpha/RealmsServiceOuterClass.java | 104 - .../cloud/gaming/v1alpha/ScalingConfig.java | 1841 ----- .../v1alpha/ScalingConfigOrBuilder.java | 193 - .../google/cloud/gaming/v1alpha/Schedule.java | 1474 ---- .../gaming/v1alpha/ScheduleOrBuilder.java | 162 - .../cloud/gaming/v1alpha/SpecSource.java | 823 -- .../gaming/v1alpha/SpecSourceOrBuilder.java | 79 - .../cloud/gaming/v1alpha/TargetDetails.java | 4610 ------------ .../v1alpha/TargetDetailsOrBuilder.java | 139 - .../cloud/gaming/v1alpha/TargetState.java | 943 --- .../gaming/v1alpha/TargetStateOrBuilder.java | 77 - .../UpdateGameServerClusterRequest.java | 1107 --- ...dateGameServerClusterRequestOrBuilder.java | 119 - .../UpdateGameServerDeploymentRequest.java | 1116 --- ...eGameServerDeploymentRequestOrBuilder.java | 119 - ...ateGameServerDeploymentRolloutRequest.java | 1120 --- ...rverDeploymentRolloutRequestOrBuilder.java | 119 - .../gaming/v1alpha/UpdateRealmRequest.java | 1077 --- .../v1alpha/UpdateRealmRequestOrBuilder.java | 116 - .../google/cloud/gaming/v1alpha/common.proto | 221 - .../gaming/v1alpha/game_server_clusters.proto | 301 - .../game_server_clusters_service.proto | 113 - .../gaming/v1alpha/game_server_configs.proto | 191 - .../v1alpha/game_server_configs_service.proto | 81 - .../v1alpha/game_server_deployments.proto | 371 - .../game_server_deployments_service.proto | 129 - .../google/cloud/gaming/v1alpha/realms.proto | 193 - .../cloud/gaming/v1alpha/realms_service.proto | 97 - versions.txt | 3 - 177 files changed, 108560 deletions(-) delete mode 100644 google-cloud-gameservices-bom/pom.xml delete mode 100644 google-cloud-gameservices/pom.xml delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClient.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceSettings.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClient.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceSettings.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceClient.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceSettings.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/package-info.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStub.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStubSettings.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStubSettings.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceCallableFactory.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceStub.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceCallableFactory.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceCallableFactory.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceStub.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStub.java delete mode 100644 google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStubSettings.java delete mode 100644 google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClientTest.java delete mode 100644 google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClientTest.java delete mode 100644 google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersService.java delete mode 100644 google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersServiceImpl.java delete mode 100644 google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsService.java delete mode 100644 google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsServiceImpl.java delete mode 100644 google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsService.java delete mode 100644 google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsServiceImpl.java delete mode 100644 google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/RealmsServiceClientTest.java delete mode 100644 grpc-google-cloud-gameservices-v1alpha/pom.xml delete mode 100644 grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceGrpc.java delete mode 100644 grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceGrpc.java delete mode 100644 grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc.java delete mode 100644 grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceGrpc.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml delete mode 100644 proto-google-cloud-gameservices-v1alpha/pom.xml delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedState.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedStateOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfig.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfigOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetails.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetailsOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerCluster.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterName.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusters.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceOuterClass.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfig.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverride.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverrideOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigs.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceOuterClass.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployment.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentName.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRollout.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRolloutOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployments.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceOuterClass.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReference.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReferenceOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReference.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReferenceOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelector.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelectorOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LocationName.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadata.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatus.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatusOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponse.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponseOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realm.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmName.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelector.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelectorOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realms.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceOuterClass.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfig.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfigOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Schedule.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScheduleOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSource.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSourceOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetails.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetailsOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetState.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetStateOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequest.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequestOrBuilder.java delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/common.proto delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters.proto delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters_service.proto delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs.proto delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs_service.proto delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments.proto delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments_service.proto delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms.proto delete mode 100644 proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms_service.proto diff --git a/google-cloud-gameservices-bom/pom.xml b/google-cloud-gameservices-bom/pom.xml deleted file mode 100644 index 346eacd9..00000000 --- a/google-cloud-gameservices-bom/pom.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-gameservices-bom - 0.19.2-SNAPSHOT - pom - - com.google.cloud - google-cloud-shared-config - 0.9.0 - - - Google Cloud Game Services BOM - https://github.com/googleapis/java-gameservices - - BOM for Google Cloud Game Services - - - - Google LLC - - - - - chingor13 - Jeff Ching - chingor@google.com - Google LLC - - Developer - - - - - - scm:git:https://github.com/googleapis/java-gameservices.git - scm:git:git@github.com:googleapis/java-gameservices.git - https://github.com/googleapis/java-gameservices - - - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - - com.google.api.grpc - proto-google-cloud-gameservices-v1alpha - 0.19.2-SNAPSHOT - - - com.google.cloud - google-cloud-gameservices - 0.19.2-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-gameservices-v1alpha - 0.19.2-SNAPSHOT - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - true - - - - - \ No newline at end of file diff --git a/google-cloud-gameservices/pom.xml b/google-cloud-gameservices/pom.xml deleted file mode 100644 index 61d7907b..00000000 --- a/google-cloud-gameservices/pom.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-gameservices - 0.19.2-SNAPSHOT - jar - Google Cloud Game Services - https://github.com/googleapis/java-gameservices - Java idiomatic client for Google Cloud Game Services - - com.google.cloud - google-cloud-game-servers-parent - 0.19.2-SNAPSHOT - - - google-cloud-gameservices - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.api - api-common - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - - com.google.api.grpc - proto-google-cloud-gameservices-v1alpha - - - com.google.guava - guava - - - com.google.api - gax - - - com.google.api - gax-grpc - - - org.threeten - threetenbp - - - - - junit - junit - test - - - - com.google.api.grpc - grpc-google-cloud-gameservices-v1alpha - test - - - - com.google.api - gax-grpc - testlib - test - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClient.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClient.java deleted file mode 100644 index 3c95ecda..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClient.java +++ /dev/null @@ -1,1053 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.pathtemplate.PathTemplate; -import com.google.cloud.gaming.v1alpha.stub.GameServerClustersServiceStub; -import com.google.cloud.gaming.v1alpha.stub.GameServerClustersServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND SERVICE -/** - * Service Description: The game server cluster maps to Kubernetes clusters running Agones and is - * used to manage fleets within clusters. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

- * 
- * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
- *   String formattedName = GameServerClustersServiceClient.formatGameServerClusterName("[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]");
- *   GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(formattedName);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the gameServerClustersServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of - * GameServerClustersServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

- * 
- * GameServerClustersServiceSettings gameServerClustersServiceSettings =
- *     GameServerClustersServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * GameServerClustersServiceClient gameServerClustersServiceClient =
- *     GameServerClustersServiceClient.create(gameServerClustersServiceSettings);
- * 
- * 
- * - * To customize the endpoint: - * - *
- * 
- * GameServerClustersServiceSettings gameServerClustersServiceSettings =
- *     GameServerClustersServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * GameServerClustersServiceClient gameServerClustersServiceClient =
- *     GameServerClustersServiceClient.create(gameServerClustersServiceSettings);
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class GameServerClustersServiceClient implements BackgroundResource { - private final GameServerClustersServiceSettings settings; - private final GameServerClustersServiceStub stub; - private final OperationsClient operationsClient; - - private static final PathTemplate GAME_SERVER_CLUSTER_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{game_server_cluster}"); - - private static final PathTemplate REALM_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/realms/{realm}"); - - /** - * Formats a string containing the fully-qualified path to represent a game_server_cluster - * resource. - * - * @deprecated Use the {@link GameServerClusterName} class instead. - */ - @Deprecated - public static final String formatGameServerClusterName( - String project, String location, String realm, String gameServerCluster) { - return GAME_SERVER_CLUSTER_PATH_TEMPLATE.instantiate( - "project", project, - "location", location, - "realm", realm, - "game_server_cluster", gameServerCluster); - } - - /** - * Formats a string containing the fully-qualified path to represent a realm resource. - * - * @deprecated Use the {@link RealmName} class instead. - */ - @Deprecated - public static final String formatRealmName(String project, String location, String realm) { - return REALM_PATH_TEMPLATE.instantiate( - "project", project, - "location", location, - "realm", realm); - } - - /** - * Parses the project from the given fully-qualified path which represents a game_server_cluster - * resource. - * - * @deprecated Use the {@link GameServerClusterName} class instead. - */ - @Deprecated - public static final String parseProjectFromGameServerClusterName(String gameServerClusterName) { - return GAME_SERVER_CLUSTER_PATH_TEMPLATE.parse(gameServerClusterName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a game_server_cluster - * resource. - * - * @deprecated Use the {@link GameServerClusterName} class instead. - */ - @Deprecated - public static final String parseLocationFromGameServerClusterName(String gameServerClusterName) { - return GAME_SERVER_CLUSTER_PATH_TEMPLATE.parse(gameServerClusterName).get("location"); - } - - /** - * Parses the realm from the given fully-qualified path which represents a game_server_cluster - * resource. - * - * @deprecated Use the {@link GameServerClusterName} class instead. - */ - @Deprecated - public static final String parseRealmFromGameServerClusterName(String gameServerClusterName) { - return GAME_SERVER_CLUSTER_PATH_TEMPLATE.parse(gameServerClusterName).get("realm"); - } - - /** - * Parses the game_server_cluster from the given fully-qualified path which represents a - * game_server_cluster resource. - * - * @deprecated Use the {@link GameServerClusterName} class instead. - */ - @Deprecated - public static final String parseGameServerClusterFromGameServerClusterName( - String gameServerClusterName) { - return GAME_SERVER_CLUSTER_PATH_TEMPLATE - .parse(gameServerClusterName) - .get("game_server_cluster"); - } - - /** - * Parses the project from the given fully-qualified path which represents a realm resource. - * - * @deprecated Use the {@link RealmName} class instead. - */ - @Deprecated - public static final String parseProjectFromRealmName(String realmName) { - return REALM_PATH_TEMPLATE.parse(realmName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a realm resource. - * - * @deprecated Use the {@link RealmName} class instead. - */ - @Deprecated - public static final String parseLocationFromRealmName(String realmName) { - return REALM_PATH_TEMPLATE.parse(realmName).get("location"); - } - - /** - * Parses the realm from the given fully-qualified path which represents a realm resource. - * - * @deprecated Use the {@link RealmName} class instead. - */ - @Deprecated - public static final String parseRealmFromRealmName(String realmName) { - return REALM_PATH_TEMPLATE.parse(realmName).get("realm"); - } - - /** Constructs an instance of GameServerClustersServiceClient with default settings. */ - public static final GameServerClustersServiceClient create() throws IOException { - return create(GameServerClustersServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of GameServerClustersServiceClient, using the given settings. The - * channels are created based on the settings passed in, or defaults for any settings that are not - * set. - */ - public static final GameServerClustersServiceClient create( - GameServerClustersServiceSettings settings) throws IOException { - return new GameServerClustersServiceClient(settings); - } - - /** - * Constructs an instance of GameServerClustersServiceClient, using the given stub for making - * calls. This is for advanced usage - prefer to use GameServerClustersServiceSettings}. - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final GameServerClustersServiceClient create(GameServerClustersServiceStub stub) { - return new GameServerClustersServiceClient(stub); - } - - /** - * Constructs an instance of GameServerClustersServiceClient, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GameServerClustersServiceClient(GameServerClustersServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = ((GameServerClustersServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected GameServerClustersServiceClient(GameServerClustersServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final GameServerClustersServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public GameServerClustersServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists game server clusters in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedParent = GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   for (GameServerCluster element : gameServerClustersServiceClient.listGameServerClusters(formattedParent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * "projects/{project}/locations/{location}/realms/{realm-id}". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGameServerClustersPagedResponse listGameServerClusters(String parent) { - REALM_PATH_TEMPLATE.validate(parent, "listGameServerClusters"); - ListGameServerClustersRequest request = - ListGameServerClustersRequest.newBuilder().setParent(parent).build(); - return listGameServerClusters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists game server clusters in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedParent = GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   ListGameServerClustersRequest request = ListGameServerClustersRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   for (GameServerCluster element : gameServerClustersServiceClient.listGameServerClusters(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGameServerClustersPagedResponse listGameServerClusters( - ListGameServerClustersRequest request) { - return listGameServerClustersPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists game server clusters in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedParent = GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   ListGameServerClustersRequest request = ListGameServerClustersRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   ApiFuture<ListGameServerClustersPagedResponse> future = gameServerClustersServiceClient.listGameServerClustersPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (GameServerCluster element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listGameServerClustersPagedCallable() { - return stub.listGameServerClustersPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists game server clusters in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedParent = GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   ListGameServerClustersRequest request = ListGameServerClustersRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   while (true) {
-   *     ListGameServerClustersResponse response = gameServerClustersServiceClient.listGameServerClustersCallable().call(request);
-   *     for (GameServerCluster element : response.getGameServerClustersList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listGameServerClustersCallable() { - return stub.listGameServerClustersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedName = GameServerClustersServiceClient.formatGameServerClusterName("[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]");
-   *   GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(formattedName);
-   * }
-   * 
- * - * @param name Required. The name of the game server cluster to retrieve, using the form: - *

`projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GameServerCluster getGameServerCluster(String name) { - GAME_SERVER_CLUSTER_PATH_TEMPLATE.validate(name, "getGameServerCluster"); - GetGameServerClusterRequest request = - GetGameServerClusterRequest.newBuilder().setName(name).build(); - return getGameServerCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedName = GameServerClustersServiceClient.formatGameServerClusterName("[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]");
-   *   GetGameServerClusterRequest request = GetGameServerClusterRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GameServerCluster getGameServerCluster(GetGameServerClusterRequest request) { - return getGameServerClusterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedName = GameServerClustersServiceClient.formatGameServerClusterName("[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]");
-   *   GetGameServerClusterRequest request = GetGameServerClusterRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<GameServerCluster> future = gameServerClustersServiceClient.getGameServerClusterCallable().futureCall(request);
-   *   // Do something
-   *   GameServerCluster response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - getGameServerClusterCallable() { - return stub.getGameServerClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new game server cluster in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedParent = GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   String gameServerClusterId = "";
-   *   GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
-   *   GameServerCluster response = gameServerClustersServiceClient.createGameServerClusterAsync(formattedParent, gameServerClusterId, gameServerCluster).get();
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * `projects/{project}/locations/{location}/realms/{realm-id}`. - * @param gameServerClusterId Required. The ID of the game server cluster resource to be created. - * @param gameServerCluster Required. The game server cluster resource to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createGameServerClusterAsync( - String parent, String gameServerClusterId, GameServerCluster gameServerCluster) { - REALM_PATH_TEMPLATE.validate(parent, "createGameServerCluster"); - CreateGameServerClusterRequest request = - CreateGameServerClusterRequest.newBuilder() - .setParent(parent) - .setGameServerClusterId(gameServerClusterId) - .setGameServerCluster(gameServerCluster) - .build(); - return createGameServerClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new game server cluster in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedParent = GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   String gameServerClusterId = "";
-   *   GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
-   *   CreateGameServerClusterRequest request = CreateGameServerClusterRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setGameServerClusterId(gameServerClusterId)
-   *     .setGameServerCluster(gameServerCluster)
-   *     .build();
-   *   GameServerCluster response = gameServerClustersServiceClient.createGameServerClusterAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createGameServerClusterAsync( - CreateGameServerClusterRequest request) { - return createGameServerClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new game server cluster in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedParent = GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   String gameServerClusterId = "";
-   *   GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
-   *   CreateGameServerClusterRequest request = CreateGameServerClusterRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setGameServerClusterId(gameServerClusterId)
-   *     .setGameServerCluster(gameServerCluster)
-   *     .build();
-   *   OperationFuture<GameServerCluster, Empty> future = gameServerClustersServiceClient.createGameServerClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   GameServerCluster response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - createGameServerClusterOperationCallable() { - return stub.createGameServerClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new game server cluster in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedParent = GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   String gameServerClusterId = "";
-   *   GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
-   *   CreateGameServerClusterRequest request = CreateGameServerClusterRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setGameServerClusterId(gameServerClusterId)
-   *     .setGameServerCluster(gameServerCluster)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerClustersServiceClient.createGameServerClusterCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createGameServerClusterCallable() { - return stub.createGameServerClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedName = GameServerClustersServiceClient.formatGameServerClusterName("[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]");
-   *   gameServerClustersServiceClient.deleteGameServerClusterAsync(formattedName).get();
-   * }
-   * 
- * - * @param name Required. The name of the game server cluster to delete, using the form: - * `projects/{project}/locations/{location}/gameServerClusters/{cluster}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGameServerClusterAsync(String name) { - GAME_SERVER_CLUSTER_PATH_TEMPLATE.validate(name, "deleteGameServerCluster"); - DeleteGameServerClusterRequest request = - DeleteGameServerClusterRequest.newBuilder().setName(name).build(); - return deleteGameServerClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedName = GameServerClustersServiceClient.formatGameServerClusterName("[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]");
-   *   DeleteGameServerClusterRequest request = DeleteGameServerClusterRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   gameServerClustersServiceClient.deleteGameServerClusterAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGameServerClusterAsync( - DeleteGameServerClusterRequest request) { - return deleteGameServerClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedName = GameServerClustersServiceClient.formatGameServerClusterName("[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]");
-   *   DeleteGameServerClusterRequest request = DeleteGameServerClusterRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   OperationFuture<Empty, Empty> future = gameServerClustersServiceClient.deleteGameServerClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - deleteGameServerClusterOperationCallable() { - return stub.deleteGameServerClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   String formattedName = GameServerClustersServiceClient.formatGameServerClusterName("[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]");
-   *   DeleteGameServerClusterRequest request = DeleteGameServerClusterRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerClustersServiceClient.deleteGameServerClusterCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable - deleteGameServerClusterCallable() { - return stub.deleteGameServerClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   GameServerCluster response = gameServerClustersServiceClient.updateGameServerClusterAsync(gameServerCluster, updateMask).get();
-   * }
-   * 
- * - * @param gameServerCluster Required. The game server cluster to be updated. Only fields specified - * in update_mask are updated. - * @param updateMask 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 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateGameServerClusterAsync( - GameServerCluster gameServerCluster, FieldMask updateMask) { - UpdateGameServerClusterRequest request = - UpdateGameServerClusterRequest.newBuilder() - .setGameServerCluster(gameServerCluster) - .setUpdateMask(updateMask) - .build(); - return updateGameServerClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateGameServerClusterRequest request = UpdateGameServerClusterRequest.newBuilder()
-   *     .setGameServerCluster(gameServerCluster)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   GameServerCluster response = gameServerClustersServiceClient.updateGameServerClusterAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateGameServerClusterAsync( - UpdateGameServerClusterRequest request) { - return updateGameServerClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateGameServerClusterRequest request = UpdateGameServerClusterRequest.newBuilder()
-   *     .setGameServerCluster(gameServerCluster)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<GameServerCluster, Empty> future = gameServerClustersServiceClient.updateGameServerClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   GameServerCluster response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - updateGameServerClusterOperationCallable() { - return stub.updateGameServerClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateGameServerClusterRequest request = UpdateGameServerClusterRequest.newBuilder()
-   *     .setGameServerCluster(gameServerCluster)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerClustersServiceClient.updateGameServerClusterCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - updateGameServerClusterCallable() { - return stub.updateGameServerClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews creation of a new game server cluster in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   PreviewCreateGameServerClusterRequest request = PreviewCreateGameServerClusterRequest.newBuilder().build();
-   *   PreviewCreateGameServerClusterResponse response = gameServerClustersServiceClient.previewCreateGameServerCluster(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PreviewCreateGameServerClusterResponse previewCreateGameServerCluster( - PreviewCreateGameServerClusterRequest request) { - return previewCreateGameServerClusterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews creation of a new game server cluster in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   PreviewCreateGameServerClusterRequest request = PreviewCreateGameServerClusterRequest.newBuilder().build();
-   *   ApiFuture<PreviewCreateGameServerClusterResponse> future = gameServerClustersServiceClient.previewCreateGameServerClusterCallable().futureCall(request);
-   *   // Do something
-   *   PreviewCreateGameServerClusterResponse response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterCallable() { - return stub.previewCreateGameServerClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews deletion of a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   PreviewDeleteGameServerClusterRequest request = PreviewDeleteGameServerClusterRequest.newBuilder().build();
-   *   PreviewDeleteGameServerClusterResponse response = gameServerClustersServiceClient.previewDeleteGameServerCluster(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PreviewDeleteGameServerClusterResponse previewDeleteGameServerCluster( - PreviewDeleteGameServerClusterRequest request) { - return previewDeleteGameServerClusterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews deletion of a single game server cluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   PreviewDeleteGameServerClusterRequest request = PreviewDeleteGameServerClusterRequest.newBuilder().build();
-   *   ApiFuture<PreviewDeleteGameServerClusterResponse> future = gameServerClustersServiceClient.previewDeleteGameServerClusterCallable().futureCall(request);
-   *   // Do something
-   *   PreviewDeleteGameServerClusterResponse response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterCallable() { - return stub.previewDeleteGameServerClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews updating a GameServerCluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   PreviewUpdateGameServerClusterRequest request = PreviewUpdateGameServerClusterRequest.newBuilder().build();
-   *   PreviewUpdateGameServerClusterResponse response = gameServerClustersServiceClient.previewUpdateGameServerCluster(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PreviewUpdateGameServerClusterResponse previewUpdateGameServerCluster( - PreviewUpdateGameServerClusterRequest request) { - return previewUpdateGameServerClusterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews updating a GameServerCluster. - * - *

Sample code: - * - *


-   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
-   *   PreviewUpdateGameServerClusterRequest request = PreviewUpdateGameServerClusterRequest.newBuilder().build();
-   *   ApiFuture<PreviewUpdateGameServerClusterResponse> future = gameServerClustersServiceClient.previewUpdateGameServerClusterCallable().futureCall(request);
-   *   // Do something
-   *   PreviewUpdateGameServerClusterResponse response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterCallable() { - return stub.previewUpdateGameServerClusterCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListGameServerClustersPagedResponse - extends AbstractPagedListResponse< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - GameServerCluster, - ListGameServerClustersPage, - ListGameServerClustersFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListGameServerClustersRequest, ListGameServerClustersResponse, GameServerCluster> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListGameServerClustersPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListGameServerClustersPagedResponse apply(ListGameServerClustersPage input) { - return new ListGameServerClustersPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListGameServerClustersPagedResponse(ListGameServerClustersPage page) { - super(page, ListGameServerClustersFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListGameServerClustersPage - extends AbstractPage< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - GameServerCluster, - ListGameServerClustersPage> { - - private ListGameServerClustersPage( - PageContext< - ListGameServerClustersRequest, ListGameServerClustersResponse, GameServerCluster> - context, - ListGameServerClustersResponse response) { - super(context, response); - } - - private static ListGameServerClustersPage createEmptyPage() { - return new ListGameServerClustersPage(null, null); - } - - @Override - protected ListGameServerClustersPage createPage( - PageContext< - ListGameServerClustersRequest, ListGameServerClustersResponse, GameServerCluster> - context, - ListGameServerClustersResponse response) { - return new ListGameServerClustersPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListGameServerClustersRequest, ListGameServerClustersResponse, GameServerCluster> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListGameServerClustersFixedSizeCollection - extends AbstractFixedSizeCollection< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - GameServerCluster, - ListGameServerClustersPage, - ListGameServerClustersFixedSizeCollection> { - - private ListGameServerClustersFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListGameServerClustersFixedSizeCollection createEmptyCollection() { - return new ListGameServerClustersFixedSizeCollection(null, 0); - } - - @Override - protected ListGameServerClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListGameServerClustersFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceSettings.java deleted file mode 100644 index 136637d5..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceSettings.java +++ /dev/null @@ -1,344 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.GameServerClustersServiceClient.ListGameServerClustersPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.gaming.v1alpha.stub.GameServerClustersServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link GameServerClustersServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getGameServerCluster to 30 seconds: - * - *

- * 
- * GameServerClustersServiceSettings.Builder gameServerClustersServiceSettingsBuilder =
- *     GameServerClustersServiceSettings.newBuilder();
- * gameServerClustersServiceSettingsBuilder
- *     .getGameServerClusterSettings()
- *     .setRetrySettings(
- *         gameServerClustersServiceSettingsBuilder.getGameServerClusterSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * GameServerClustersServiceSettings gameServerClustersServiceSettings = gameServerClustersServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class GameServerClustersServiceSettings - extends ClientSettings { - /** Returns the object with the settings used for calls to listGameServerClusters. */ - public PagedCallSettings< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - ListGameServerClustersPagedResponse> - listGameServerClustersSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .listGameServerClustersSettings(); - } - - /** Returns the object with the settings used for calls to getGameServerCluster. */ - public UnaryCallSettings - getGameServerClusterSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .getGameServerClusterSettings(); - } - - /** Returns the object with the settings used for calls to createGameServerCluster. */ - public UnaryCallSettings - createGameServerClusterSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .createGameServerClusterSettings(); - } - - /** Returns the object with the settings used for calls to createGameServerCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - createGameServerClusterOperationSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .createGameServerClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteGameServerCluster. */ - public UnaryCallSettings - deleteGameServerClusterSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .deleteGameServerClusterSettings(); - } - - /** Returns the object with the settings used for calls to deleteGameServerCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - deleteGameServerClusterOperationSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .deleteGameServerClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateGameServerCluster. */ - public UnaryCallSettings - updateGameServerClusterSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .updateGameServerClusterSettings(); - } - - /** Returns the object with the settings used for calls to updateGameServerCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - updateGameServerClusterOperationSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .updateGameServerClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to previewCreateGameServerCluster. */ - public UnaryCallSettings< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .previewCreateGameServerClusterSettings(); - } - - /** Returns the object with the settings used for calls to previewDeleteGameServerCluster. */ - public UnaryCallSettings< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .previewDeleteGameServerClusterSettings(); - } - - /** Returns the object with the settings used for calls to previewUpdateGameServerCluster. */ - public UnaryCallSettings< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterSettings() { - return ((GameServerClustersServiceStubSettings) getStubSettings()) - .previewUpdateGameServerClusterSettings(); - } - - public static final GameServerClustersServiceSettings create( - GameServerClustersServiceStubSettings stub) throws IOException { - return new GameServerClustersServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return GameServerClustersServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return GameServerClustersServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return GameServerClustersServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GameServerClustersServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return GameServerClustersServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return GameServerClustersServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return GameServerClustersServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected GameServerClustersServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for GameServerClustersServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - protected Builder() throws IOException { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(GameServerClustersServiceStubSettings.newBuilder(clientContext)); - } - - private static Builder createDefault() { - return new Builder(GameServerClustersServiceStubSettings.newBuilder()); - } - - protected Builder(GameServerClustersServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(GameServerClustersServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - public GameServerClustersServiceStubSettings.Builder getStubSettingsBuilder() { - return ((GameServerClustersServiceStubSettings.Builder) getStubSettings()); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listGameServerClusters. */ - public PagedCallSettings.Builder< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - ListGameServerClustersPagedResponse> - listGameServerClustersSettings() { - return getStubSettingsBuilder().listGameServerClustersSettings(); - } - - /** Returns the builder for the settings used for calls to getGameServerCluster. */ - public UnaryCallSettings.Builder - getGameServerClusterSettings() { - return getStubSettingsBuilder().getGameServerClusterSettings(); - } - - /** Returns the builder for the settings used for calls to createGameServerCluster. */ - public UnaryCallSettings.Builder - createGameServerClusterSettings() { - return getStubSettingsBuilder().createGameServerClusterSettings(); - } - - /** Returns the builder for the settings used for calls to createGameServerCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createGameServerClusterOperationSettings() { - return getStubSettingsBuilder().createGameServerClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteGameServerCluster. */ - public UnaryCallSettings.Builder - deleteGameServerClusterSettings() { - return getStubSettingsBuilder().deleteGameServerClusterSettings(); - } - - /** Returns the builder for the settings used for calls to deleteGameServerCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteGameServerClusterOperationSettings() { - return getStubSettingsBuilder().deleteGameServerClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateGameServerCluster. */ - public UnaryCallSettings.Builder - updateGameServerClusterSettings() { - return getStubSettingsBuilder().updateGameServerClusterSettings(); - } - - /** Returns the builder for the settings used for calls to updateGameServerCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateGameServerClusterOperationSettings() { - return getStubSettingsBuilder().updateGameServerClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to previewCreateGameServerCluster. */ - public UnaryCallSettings.Builder< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterSettings() { - return getStubSettingsBuilder().previewCreateGameServerClusterSettings(); - } - - /** Returns the builder for the settings used for calls to previewDeleteGameServerCluster. */ - public UnaryCallSettings.Builder< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterSettings() { - return getStubSettingsBuilder().previewDeleteGameServerClusterSettings(); - } - - /** Returns the builder for the settings used for calls to previewUpdateGameServerCluster. */ - public UnaryCallSettings.Builder< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterSettings() { - return getStubSettingsBuilder().previewUpdateGameServerClusterSettings(); - } - - @Override - public GameServerClustersServiceSettings build() throws IOException { - return new GameServerClustersServiceSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClient.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClient.java deleted file mode 100644 index 1fec17b2..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClient.java +++ /dev/null @@ -1,1087 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.pathtemplate.PathTemplate; -import com.google.cloud.gaming.v1alpha.stub.GameServerDeploymentsServiceStub; -import com.google.cloud.gaming.v1alpha.stub.GameServerDeploymentsServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND SERVICE -/** - * Service Description: The game server deployment is used to control the deployment of game server - * software to Agones fleets. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

- * 
- * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
- *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
- *   GameServerDeployment response = gameServerDeploymentsServiceClient.getGameServerDeployment(formattedName);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the gameServerDeploymentsServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of - * GameServerDeploymentsServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

- * 
- * GameServerDeploymentsServiceSettings gameServerDeploymentsServiceSettings =
- *     GameServerDeploymentsServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
- *     GameServerDeploymentsServiceClient.create(gameServerDeploymentsServiceSettings);
- * 
- * 
- * - * To customize the endpoint: - * - *
- * 
- * GameServerDeploymentsServiceSettings gameServerDeploymentsServiceSettings =
- *     GameServerDeploymentsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
- *     GameServerDeploymentsServiceClient.create(gameServerDeploymentsServiceSettings);
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class GameServerDeploymentsServiceClient implements BackgroundResource { - private final GameServerDeploymentsServiceSettings settings; - private final GameServerDeploymentsServiceStub stub; - private final OperationsClient operationsClient; - - private static final PathTemplate GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/gameServerDeployments/{game_server_deployment}"); - - private static final PathTemplate LOCATION_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - - /** - * Formats a string containing the fully-qualified path to represent a game_server_deployment - * resource. - * - * @deprecated Use the {@link GameServerDeploymentName} class instead. - */ - @Deprecated - public static final String formatGameServerDeploymentName( - String project, String location, String gameServerDeployment) { - return GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.instantiate( - "project", project, - "location", location, - "game_server_deployment", gameServerDeployment); - } - - /** - * Formats a string containing the fully-qualified path to represent a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String formatLocationName(String project, String location) { - return LOCATION_PATH_TEMPLATE.instantiate( - "project", project, - "location", location); - } - - /** - * Parses the project from the given fully-qualified path which represents a - * game_server_deployment resource. - * - * @deprecated Use the {@link GameServerDeploymentName} class instead. - */ - @Deprecated - public static final String parseProjectFromGameServerDeploymentName( - String gameServerDeploymentName) { - return GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.parse(gameServerDeploymentName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a - * game_server_deployment resource. - * - * @deprecated Use the {@link GameServerDeploymentName} class instead. - */ - @Deprecated - public static final String parseLocationFromGameServerDeploymentName( - String gameServerDeploymentName) { - return GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.parse(gameServerDeploymentName).get("location"); - } - - /** - * Parses the game_server_deployment from the given fully-qualified path which represents a - * game_server_deployment resource. - * - * @deprecated Use the {@link GameServerDeploymentName} class instead. - */ - @Deprecated - public static final String parseGameServerDeploymentFromGameServerDeploymentName( - String gameServerDeploymentName) { - return GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE - .parse(gameServerDeploymentName) - .get("game_server_deployment"); - } - - /** - * Parses the project from the given fully-qualified path which represents a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String parseProjectFromLocationName(String locationName) { - return LOCATION_PATH_TEMPLATE.parse(locationName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String parseLocationFromLocationName(String locationName) { - return LOCATION_PATH_TEMPLATE.parse(locationName).get("location"); - } - - /** Constructs an instance of GameServerDeploymentsServiceClient with default settings. */ - public static final GameServerDeploymentsServiceClient create() throws IOException { - return create(GameServerDeploymentsServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of GameServerDeploymentsServiceClient, using the given settings. The - * channels are created based on the settings passed in, or defaults for any settings that are not - * set. - */ - public static final GameServerDeploymentsServiceClient create( - GameServerDeploymentsServiceSettings settings) throws IOException { - return new GameServerDeploymentsServiceClient(settings); - } - - /** - * Constructs an instance of GameServerDeploymentsServiceClient, using the given stub for making - * calls. This is for advanced usage - prefer to use GameServerDeploymentsServiceSettings}. - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final GameServerDeploymentsServiceClient create( - GameServerDeploymentsServiceStub stub) { - return new GameServerDeploymentsServiceClient(stub); - } - - /** - * Constructs an instance of GameServerDeploymentsServiceClient, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GameServerDeploymentsServiceClient(GameServerDeploymentsServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = - ((GameServerDeploymentsServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected GameServerDeploymentsServiceClient(GameServerDeploymentsServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final GameServerDeploymentsServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public GameServerDeploymentsServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists game server deployments in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedParent = GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   for (GameServerDeployment element : gameServerDeploymentsServiceClient.listGameServerDeployments(formattedParent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * `projects/{project}/locations/{location}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(String parent) { - LOCATION_PATH_TEMPLATE.validate(parent, "listGameServerDeployments"); - ListGameServerDeploymentsRequest request = - ListGameServerDeploymentsRequest.newBuilder().setParent(parent).build(); - return listGameServerDeployments(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists game server deployments in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedParent = GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListGameServerDeploymentsRequest request = ListGameServerDeploymentsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   for (GameServerDeployment element : gameServerDeploymentsServiceClient.listGameServerDeployments(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGameServerDeploymentsPagedResponse listGameServerDeployments( - ListGameServerDeploymentsRequest request) { - return listGameServerDeploymentsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists game server deployments in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedParent = GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListGameServerDeploymentsRequest request = ListGameServerDeploymentsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   ApiFuture<ListGameServerDeploymentsPagedResponse> future = gameServerDeploymentsServiceClient.listGameServerDeploymentsPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (GameServerDeployment element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable< - ListGameServerDeploymentsRequest, ListGameServerDeploymentsPagedResponse> - listGameServerDeploymentsPagedCallable() { - return stub.listGameServerDeploymentsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists game server deployments in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedParent = GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListGameServerDeploymentsRequest request = ListGameServerDeploymentsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   while (true) {
-   *     ListGameServerDeploymentsResponse response = gameServerDeploymentsServiceClient.listGameServerDeploymentsCallable().call(request);
-   *     for (GameServerDeployment element : response.getGameServerDeploymentsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listGameServerDeploymentsCallable() { - return stub.listGameServerDeploymentsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.getGameServerDeployment(formattedName);
-   * }
-   * 
- * - * @param name Required. The name of the game server deployment to retrieve, using the form: - *

`projects/{project}/locations/{location}/gameServerDeployments/{deployment}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GameServerDeployment getGameServerDeployment(String name) { - GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.validate(name, "getGameServerDeployment"); - GetGameServerDeploymentRequest request = - GetGameServerDeploymentRequest.newBuilder().setName(name).build(); - return getGameServerDeployment(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GetGameServerDeploymentRequest request = GetGameServerDeploymentRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.getGameServerDeployment(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GameServerDeployment getGameServerDeployment( - GetGameServerDeploymentRequest request) { - return getGameServerDeploymentCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GetGameServerDeploymentRequest request = GetGameServerDeploymentRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<GameServerDeployment> future = gameServerDeploymentsServiceClient.getGameServerDeploymentCallable().futureCall(request);
-   *   // Do something
-   *   GameServerDeployment response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - getGameServerDeploymentCallable() { - return stub.getGameServerDeploymentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new game server deployment in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedParent = GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String deploymentId = "";
-   *   GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.createGameServerDeploymentAsync(formattedParent, deploymentId, gameServerDeployment).get();
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * `projects/{project}/locations/{location}`. - * @param deploymentId Required. The ID of the game server deployment resource to be created. - * @param gameServerDeployment Required. The game server deployment resource to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createGameServerDeploymentAsync( - String parent, String deploymentId, GameServerDeployment gameServerDeployment) { - LOCATION_PATH_TEMPLATE.validate(parent, "createGameServerDeployment"); - CreateGameServerDeploymentRequest request = - CreateGameServerDeploymentRequest.newBuilder() - .setParent(parent) - .setDeploymentId(deploymentId) - .setGameServerDeployment(gameServerDeployment) - .build(); - return createGameServerDeploymentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new game server deployment in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedParent = GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String deploymentId = "";
-   *   GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
-   *   CreateGameServerDeploymentRequest request = CreateGameServerDeploymentRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setDeploymentId(deploymentId)
-   *     .setGameServerDeployment(gameServerDeployment)
-   *     .build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.createGameServerDeploymentAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createGameServerDeploymentAsync( - CreateGameServerDeploymentRequest request) { - return createGameServerDeploymentOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new game server deployment in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedParent = GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String deploymentId = "";
-   *   GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
-   *   CreateGameServerDeploymentRequest request = CreateGameServerDeploymentRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setDeploymentId(deploymentId)
-   *     .setGameServerDeployment(gameServerDeployment)
-   *     .build();
-   *   OperationFuture<GameServerDeployment, Empty> future = gameServerDeploymentsServiceClient.createGameServerDeploymentOperationCallable().futureCall(request);
-   *   // Do something
-   *   GameServerDeployment response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - createGameServerDeploymentOperationCallable() { - return stub.createGameServerDeploymentOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new game server deployment in a given project and location. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedParent = GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String deploymentId = "";
-   *   GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
-   *   CreateGameServerDeploymentRequest request = CreateGameServerDeploymentRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setDeploymentId(deploymentId)
-   *     .setGameServerDeployment(gameServerDeployment)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerDeploymentsServiceClient.createGameServerDeploymentCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createGameServerDeploymentCallable() { - return stub.createGameServerDeploymentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   gameServerDeploymentsServiceClient.deleteGameServerDeploymentAsync(formattedName).get();
-   * }
-   * 
- * - * @param name Required. The name of the game server deployment to delete, using the form: - *

`projects/{project}/locations/{location}/gameServerDeployments/{deployment}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGameServerDeploymentAsync(String name) { - GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.validate(name, "deleteGameServerDeployment"); - DeleteGameServerDeploymentRequest request = - DeleteGameServerDeploymentRequest.newBuilder().setName(name).build(); - return deleteGameServerDeploymentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   DeleteGameServerDeploymentRequest request = DeleteGameServerDeploymentRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   gameServerDeploymentsServiceClient.deleteGameServerDeploymentAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGameServerDeploymentAsync( - DeleteGameServerDeploymentRequest request) { - return deleteGameServerDeploymentOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   DeleteGameServerDeploymentRequest request = DeleteGameServerDeploymentRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   OperationFuture<Empty, Empty> future = gameServerDeploymentsServiceClient.deleteGameServerDeploymentOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - deleteGameServerDeploymentOperationCallable() { - return stub.deleteGameServerDeploymentOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   DeleteGameServerDeploymentRequest request = DeleteGameServerDeploymentRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerDeploymentsServiceClient.deleteGameServerDeploymentCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable - deleteGameServerDeploymentCallable() { - return stub.deleteGameServerDeploymentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.updateGameServerDeploymentAsync(gameServerDeployment, updateMask).get();
-   * }
-   * 
- * - * @param gameServerDeployment Required. The game server deployment to be updated. Only fields - * specified in update_mask are updated. - * @param updateMask 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 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateGameServerDeploymentAsync( - GameServerDeployment gameServerDeployment, FieldMask updateMask) { - UpdateGameServerDeploymentRequest request = - UpdateGameServerDeploymentRequest.newBuilder() - .setGameServerDeployment(gameServerDeployment) - .setUpdateMask(updateMask) - .build(); - return updateGameServerDeploymentAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateGameServerDeploymentRequest request = UpdateGameServerDeploymentRequest.newBuilder()
-   *     .setGameServerDeployment(gameServerDeployment)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.updateGameServerDeploymentAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateGameServerDeploymentAsync( - UpdateGameServerDeploymentRequest request) { - return updateGameServerDeploymentOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateGameServerDeploymentRequest request = UpdateGameServerDeploymentRequest.newBuilder()
-   *     .setGameServerDeployment(gameServerDeployment)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<GameServerDeployment, Empty> future = gameServerDeploymentsServiceClient.updateGameServerDeploymentOperationCallable().futureCall(request);
-   *   // Do something
-   *   GameServerDeployment response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - updateGameServerDeploymentOperationCallable() { - return stub.updateGameServerDeploymentOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a game server deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateGameServerDeploymentRequest request = UpdateGameServerDeploymentRequest.newBuilder()
-   *     .setGameServerDeployment(gameServerDeployment)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerDeploymentsServiceClient.updateGameServerDeploymentCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - updateGameServerDeploymentCallable() { - return stub.updateGameServerDeploymentCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details a single game server deployment rollout. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   GetGameServerDeploymentRolloutRequest request = GetGameServerDeploymentRolloutRequest.newBuilder().build();
-   *   GameServerDeploymentRollout response = gameServerDeploymentsServiceClient.getGameServerDeploymentRollout(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GameServerDeploymentRollout getGameServerDeploymentRollout( - GetGameServerDeploymentRolloutRequest request) { - return getGameServerDeploymentRolloutCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details a single game server deployment rollout. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   GetGameServerDeploymentRolloutRequest request = GetGameServerDeploymentRolloutRequest.newBuilder().build();
-   *   ApiFuture<GameServerDeploymentRollout> future = gameServerDeploymentsServiceClient.getGameServerDeploymentRolloutCallable().futureCall(request);
-   *   // Do something
-   *   GameServerDeploymentRollout response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - getGameServerDeploymentRolloutCallable() { - return stub.getGameServerDeploymentRolloutCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single game server deployment rollout. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   UpdateGameServerDeploymentRolloutRequest request = UpdateGameServerDeploymentRolloutRequest.newBuilder().build();
-   *   Operation response = gameServerDeploymentsServiceClient.updateGameServerDeploymentRollout(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateGameServerDeploymentRollout( - UpdateGameServerDeploymentRolloutRequest request) { - return updateGameServerDeploymentRolloutCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single game server deployment rollout. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   UpdateGameServerDeploymentRolloutRequest request = UpdateGameServerDeploymentRolloutRequest.newBuilder().build();
-   *   ApiFuture<Operation> future = gameServerDeploymentsServiceClient.updateGameServerDeploymentRolloutCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - updateGameServerDeploymentRolloutCallable() { - return stub.updateGameServerDeploymentRolloutCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews the game server deployment rollout. This API does not mutate the rollout resource. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   PreviewGameServerDeploymentRolloutRequest request = PreviewGameServerDeploymentRolloutRequest.newBuilder().build();
-   *   PreviewGameServerDeploymentRolloutResponse response = gameServerDeploymentsServiceClient.previewGameServerDeploymentRollout(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PreviewGameServerDeploymentRolloutResponse previewGameServerDeploymentRollout( - PreviewGameServerDeploymentRolloutRequest request) { - return previewGameServerDeploymentRolloutCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews the game server deployment rollout. This API does not mutate the rollout resource. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   PreviewGameServerDeploymentRolloutRequest request = PreviewGameServerDeploymentRolloutRequest.newBuilder().build();
-   *   ApiFuture<PreviewGameServerDeploymentRolloutResponse> future = gameServerDeploymentsServiceClient.previewGameServerDeploymentRolloutCallable().futureCall(request);
-   *   // Do something
-   *   PreviewGameServerDeploymentRolloutResponse response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutCallable() { - return stub.previewGameServerDeploymentRolloutCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves information about the current state of the deployment, e.g. it gathers all the fleets - * and autoscalars for this deployment. This includes fleets running older version of the - * deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   FetchDeploymentStateRequest request = FetchDeploymentStateRequest.newBuilder().build();
-   *   FetchDeploymentStateResponse response = gameServerDeploymentsServiceClient.fetchDeploymentState(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FetchDeploymentStateResponse fetchDeploymentState( - FetchDeploymentStateRequest request) { - return fetchDeploymentStateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves information about the current state of the deployment, e.g. it gathers all the fleets - * and autoscalars for this deployment. This includes fleets running older version of the - * deployment. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   FetchDeploymentStateRequest request = FetchDeploymentStateRequest.newBuilder().build();
-   *   ApiFuture<FetchDeploymentStateResponse> future = gameServerDeploymentsServiceClient.fetchDeploymentStateCallable().futureCall(request);
-   *   // Do something
-   *   FetchDeploymentStateResponse response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - fetchDeploymentStateCallable() { - return stub.fetchDeploymentStateCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListGameServerDeploymentsPagedResponse - extends AbstractPagedListResponse< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GameServerDeployment, - ListGameServerDeploymentsPage, - ListGameServerDeploymentsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GameServerDeployment> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListGameServerDeploymentsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListGameServerDeploymentsPagedResponse apply( - ListGameServerDeploymentsPage input) { - return new ListGameServerDeploymentsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListGameServerDeploymentsPagedResponse(ListGameServerDeploymentsPage page) { - super(page, ListGameServerDeploymentsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListGameServerDeploymentsPage - extends AbstractPage< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GameServerDeployment, - ListGameServerDeploymentsPage> { - - private ListGameServerDeploymentsPage( - PageContext< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GameServerDeployment> - context, - ListGameServerDeploymentsResponse response) { - super(context, response); - } - - private static ListGameServerDeploymentsPage createEmptyPage() { - return new ListGameServerDeploymentsPage(null, null); - } - - @Override - protected ListGameServerDeploymentsPage createPage( - PageContext< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GameServerDeployment> - context, - ListGameServerDeploymentsResponse response) { - return new ListGameServerDeploymentsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GameServerDeployment> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListGameServerDeploymentsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GameServerDeployment, - ListGameServerDeploymentsPage, - ListGameServerDeploymentsFixedSizeCollection> { - - private ListGameServerDeploymentsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListGameServerDeploymentsFixedSizeCollection createEmptyCollection() { - return new ListGameServerDeploymentsFixedSizeCollection(null, 0); - } - - @Override - protected ListGameServerDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListGameServerDeploymentsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceSettings.java deleted file mode 100644 index 17b2eaf1..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceSettings.java +++ /dev/null @@ -1,358 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.GameServerDeploymentsServiceClient.ListGameServerDeploymentsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.gaming.v1alpha.stub.GameServerDeploymentsServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link GameServerDeploymentsServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getGameServerDeployment to 30 seconds: - * - *

- * 
- * GameServerDeploymentsServiceSettings.Builder gameServerDeploymentsServiceSettingsBuilder =
- *     GameServerDeploymentsServiceSettings.newBuilder();
- * gameServerDeploymentsServiceSettingsBuilder
- *     .getGameServerDeploymentSettings()
- *     .setRetrySettings(
- *         gameServerDeploymentsServiceSettingsBuilder.getGameServerDeploymentSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * GameServerDeploymentsServiceSettings gameServerDeploymentsServiceSettings = gameServerDeploymentsServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class GameServerDeploymentsServiceSettings - extends ClientSettings { - /** Returns the object with the settings used for calls to listGameServerDeployments. */ - public PagedCallSettings< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - ListGameServerDeploymentsPagedResponse> - listGameServerDeploymentsSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .listGameServerDeploymentsSettings(); - } - - /** Returns the object with the settings used for calls to getGameServerDeployment. */ - public UnaryCallSettings - getGameServerDeploymentSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .getGameServerDeploymentSettings(); - } - - /** Returns the object with the settings used for calls to createGameServerDeployment. */ - public UnaryCallSettings - createGameServerDeploymentSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .createGameServerDeploymentSettings(); - } - - /** Returns the object with the settings used for calls to createGameServerDeployment. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - createGameServerDeploymentOperationSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .createGameServerDeploymentOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteGameServerDeployment. */ - public UnaryCallSettings - deleteGameServerDeploymentSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .deleteGameServerDeploymentSettings(); - } - - /** Returns the object with the settings used for calls to deleteGameServerDeployment. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - deleteGameServerDeploymentOperationSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .deleteGameServerDeploymentOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateGameServerDeployment. */ - public UnaryCallSettings - updateGameServerDeploymentSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .updateGameServerDeploymentSettings(); - } - - /** Returns the object with the settings used for calls to updateGameServerDeployment. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - updateGameServerDeploymentOperationSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .updateGameServerDeploymentOperationSettings(); - } - - /** Returns the object with the settings used for calls to getGameServerDeploymentRollout. */ - public UnaryCallSettings - getGameServerDeploymentRolloutSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .getGameServerDeploymentRolloutSettings(); - } - - /** Returns the object with the settings used for calls to updateGameServerDeploymentRollout. */ - public UnaryCallSettings - updateGameServerDeploymentRolloutSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .updateGameServerDeploymentRolloutSettings(); - } - - /** Returns the object with the settings used for calls to previewGameServerDeploymentRollout. */ - public UnaryCallSettings< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .previewGameServerDeploymentRolloutSettings(); - } - - /** Returns the object with the settings used for calls to fetchDeploymentState. */ - public UnaryCallSettings - fetchDeploymentStateSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .fetchDeploymentStateSettings(); - } - - public static final GameServerDeploymentsServiceSettings create( - GameServerDeploymentsServiceStubSettings stub) throws IOException { - return new GameServerDeploymentsServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return GameServerDeploymentsServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return GameServerDeploymentsServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return GameServerDeploymentsServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GameServerDeploymentsServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return GameServerDeploymentsServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return GameServerDeploymentsServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return GameServerDeploymentsServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected GameServerDeploymentsServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for GameServerDeploymentsServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - protected Builder() throws IOException { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(GameServerDeploymentsServiceStubSettings.newBuilder(clientContext)); - } - - private static Builder createDefault() { - return new Builder(GameServerDeploymentsServiceStubSettings.newBuilder()); - } - - protected Builder(GameServerDeploymentsServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(GameServerDeploymentsServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - public GameServerDeploymentsServiceStubSettings.Builder getStubSettingsBuilder() { - return ((GameServerDeploymentsServiceStubSettings.Builder) getStubSettings()); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listGameServerDeployments. */ - public PagedCallSettings.Builder< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - ListGameServerDeploymentsPagedResponse> - listGameServerDeploymentsSettings() { - return getStubSettingsBuilder().listGameServerDeploymentsSettings(); - } - - /** Returns the builder for the settings used for calls to getGameServerDeployment. */ - public UnaryCallSettings.Builder - getGameServerDeploymentSettings() { - return getStubSettingsBuilder().getGameServerDeploymentSettings(); - } - - /** Returns the builder for the settings used for calls to createGameServerDeployment. */ - public UnaryCallSettings.Builder - createGameServerDeploymentSettings() { - return getStubSettingsBuilder().createGameServerDeploymentSettings(); - } - - /** Returns the builder for the settings used for calls to createGameServerDeployment. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateGameServerDeploymentRequest, GameServerDeployment, Empty> - createGameServerDeploymentOperationSettings() { - return getStubSettingsBuilder().createGameServerDeploymentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteGameServerDeployment. */ - public UnaryCallSettings.Builder - deleteGameServerDeploymentSettings() { - return getStubSettingsBuilder().deleteGameServerDeploymentSettings(); - } - - /** Returns the builder for the settings used for calls to deleteGameServerDeployment. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteGameServerDeploymentOperationSettings() { - return getStubSettingsBuilder().deleteGameServerDeploymentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateGameServerDeployment. */ - public UnaryCallSettings.Builder - updateGameServerDeploymentSettings() { - return getStubSettingsBuilder().updateGameServerDeploymentSettings(); - } - - /** Returns the builder for the settings used for calls to updateGameServerDeployment. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateGameServerDeploymentRequest, GameServerDeployment, Empty> - updateGameServerDeploymentOperationSettings() { - return getStubSettingsBuilder().updateGameServerDeploymentOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getGameServerDeploymentRollout. */ - public UnaryCallSettings.Builder< - GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> - getGameServerDeploymentRolloutSettings() { - return getStubSettingsBuilder().getGameServerDeploymentRolloutSettings(); - } - - /** Returns the builder for the settings used for calls to updateGameServerDeploymentRollout. */ - public UnaryCallSettings.Builder - updateGameServerDeploymentRolloutSettings() { - return getStubSettingsBuilder().updateGameServerDeploymentRolloutSettings(); - } - - /** - * Returns the builder for the settings used for calls to previewGameServerDeploymentRollout. - */ - public UnaryCallSettings.Builder< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutSettings() { - return getStubSettingsBuilder().previewGameServerDeploymentRolloutSettings(); - } - - /** Returns the builder for the settings used for calls to fetchDeploymentState. */ - public UnaryCallSettings.Builder - fetchDeploymentStateSettings() { - return getStubSettingsBuilder().fetchDeploymentStateSettings(); - } - - @Override - public GameServerDeploymentsServiceSettings build() throws IOException { - return new GameServerDeploymentsServiceSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceClient.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceClient.java deleted file mode 100644 index 37554f58..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceClient.java +++ /dev/null @@ -1,899 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.pathtemplate.PathTemplate; -import com.google.cloud.gaming.v1alpha.stub.RealmsServiceStub; -import com.google.cloud.gaming.v1alpha.stub.RealmsServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND SERVICE -/** - * Service Description: Realm provides grouping of game server clusters that are serving a - * particular gamer population. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

- * 
- * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
- *   String formattedName = RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
- *   Realm response = realmsServiceClient.getRealm(formattedName);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the realmsServiceClient object to clean up resources such - * as threads. In the example above, try-with-resources is used, which automatically calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of RealmsServiceSettings to - * create(). For example: - * - *

To customize credentials: - * - *

- * 
- * RealmsServiceSettings realmsServiceSettings =
- *     RealmsServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * RealmsServiceClient realmsServiceClient =
- *     RealmsServiceClient.create(realmsServiceSettings);
- * 
- * 
- * - * To customize the endpoint: - * - *
- * 
- * RealmsServiceSettings realmsServiceSettings =
- *     RealmsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * RealmsServiceClient realmsServiceClient =
- *     RealmsServiceClient.create(realmsServiceSettings);
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class RealmsServiceClient implements BackgroundResource { - private final RealmsServiceSettings settings; - private final RealmsServiceStub stub; - private final OperationsClient operationsClient; - - private static final PathTemplate LOCATION_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - - private static final PathTemplate REALM_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/realms/{realm}"); - - /** - * Formats a string containing the fully-qualified path to represent a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String formatLocationName(String project, String location) { - return LOCATION_PATH_TEMPLATE.instantiate( - "project", project, - "location", location); - } - - /** - * Formats a string containing the fully-qualified path to represent a realm resource. - * - * @deprecated Use the {@link RealmName} class instead. - */ - @Deprecated - public static final String formatRealmName(String project, String location, String realm) { - return REALM_PATH_TEMPLATE.instantiate( - "project", project, - "location", location, - "realm", realm); - } - - /** - * Parses the project from the given fully-qualified path which represents a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String parseProjectFromLocationName(String locationName) { - return LOCATION_PATH_TEMPLATE.parse(locationName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String parseLocationFromLocationName(String locationName) { - return LOCATION_PATH_TEMPLATE.parse(locationName).get("location"); - } - - /** - * Parses the project from the given fully-qualified path which represents a realm resource. - * - * @deprecated Use the {@link RealmName} class instead. - */ - @Deprecated - public static final String parseProjectFromRealmName(String realmName) { - return REALM_PATH_TEMPLATE.parse(realmName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a realm resource. - * - * @deprecated Use the {@link RealmName} class instead. - */ - @Deprecated - public static final String parseLocationFromRealmName(String realmName) { - return REALM_PATH_TEMPLATE.parse(realmName).get("location"); - } - - /** - * Parses the realm from the given fully-qualified path which represents a realm resource. - * - * @deprecated Use the {@link RealmName} class instead. - */ - @Deprecated - public static final String parseRealmFromRealmName(String realmName) { - return REALM_PATH_TEMPLATE.parse(realmName).get("realm"); - } - - /** Constructs an instance of RealmsServiceClient with default settings. */ - public static final RealmsServiceClient create() throws IOException { - return create(RealmsServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of RealmsServiceClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final RealmsServiceClient create(RealmsServiceSettings settings) - throws IOException { - return new RealmsServiceClient(settings); - } - - /** - * Constructs an instance of RealmsServiceClient, using the given stub for making calls. This is - * for advanced usage - prefer to use RealmsServiceSettings}. - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final RealmsServiceClient create(RealmsServiceStub stub) { - return new RealmsServiceClient(stub); - } - - /** - * Constructs an instance of RealmsServiceClient, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected RealmsServiceClient(RealmsServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((RealmsServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected RealmsServiceClient(RealmsServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final RealmsServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public RealmsServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists realms in a given project and location. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   for (Realm element : realmsServiceClient.listRealms(formattedParent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * `projects/{project}/locations/{location}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListRealmsPagedResponse listRealms(String parent) { - LOCATION_PATH_TEMPLATE.validate(parent, "listRealms"); - ListRealmsRequest request = ListRealmsRequest.newBuilder().setParent(parent).build(); - return listRealms(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists realms in a given project and location. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListRealmsRequest request = ListRealmsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   for (Realm element : realmsServiceClient.listRealms(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListRealmsPagedResponse listRealms(ListRealmsRequest request) { - return listRealmsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists realms in a given project and location. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListRealmsRequest request = ListRealmsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   ApiFuture<ListRealmsPagedResponse> future = realmsServiceClient.listRealmsPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (Realm element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable listRealmsPagedCallable() { - return stub.listRealmsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists realms in a given project and location. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListRealmsRequest request = ListRealmsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   while (true) {
-   *     ListRealmsResponse response = realmsServiceClient.listRealmsCallable().call(request);
-   *     for (Realm element : response.getRealmsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable listRealmsCallable() { - return stub.listRealmsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedName = RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   Realm response = realmsServiceClient.getRealm(formattedName);
-   * }
-   * 
- * - * @param name Required. The name of the realm to retrieve, using the form: - * `projects/{project}/locations/{location}/realms/{realm}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Realm getRealm(String name) { - REALM_PATH_TEMPLATE.validate(name, "getRealm"); - GetRealmRequest request = GetRealmRequest.newBuilder().setName(name).build(); - return getRealm(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedName = RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   GetRealmRequest request = GetRealmRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   Realm response = realmsServiceClient.getRealm(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Realm getRealm(GetRealmRequest request) { - return getRealmCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedName = RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   GetRealmRequest request = GetRealmRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<Realm> future = realmsServiceClient.getRealmCallable().futureCall(request);
-   *   // Do something
-   *   Realm response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable getRealmCallable() { - return stub.getRealmCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new Realm in a given project and location. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String realmId = "";
-   *   Realm realm = Realm.newBuilder().build();
-   *   Realm response = realmsServiceClient.createRealmAsync(formattedParent, realmId, realm).get();
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * `projects/{project}/locations/{location}`. - * @param realmId Required. The ID of the realm resource to be created. - * @param realm Required. The realm resource to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createRealmAsync( - String parent, String realmId, Realm realm) { - LOCATION_PATH_TEMPLATE.validate(parent, "createRealm"); - CreateRealmRequest request = - CreateRealmRequest.newBuilder() - .setParent(parent) - .setRealmId(realmId) - .setRealm(realm) - .build(); - return createRealmAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new Realm in a given project and location. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String realmId = "";
-   *   Realm realm = Realm.newBuilder().build();
-   *   CreateRealmRequest request = CreateRealmRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setRealmId(realmId)
-   *     .setRealm(realm)
-   *     .build();
-   *   Realm response = realmsServiceClient.createRealmAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createRealmAsync(CreateRealmRequest request) { - return createRealmOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new Realm in a given project and location. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String realmId = "";
-   *   Realm realm = Realm.newBuilder().build();
-   *   CreateRealmRequest request = CreateRealmRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setRealmId(realmId)
-   *     .setRealm(realm)
-   *     .build();
-   *   OperationFuture<Realm, Empty> future = realmsServiceClient.createRealmOperationCallable().futureCall(request);
-   *   // Do something
-   *   Realm response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable createRealmOperationCallable() { - return stub.createRealmOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new Realm in a given project and location. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String realmId = "";
-   *   Realm realm = Realm.newBuilder().build();
-   *   CreateRealmRequest request = CreateRealmRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setRealmId(realmId)
-   *     .setRealm(realm)
-   *     .build();
-   *   ApiFuture<Operation> future = realmsServiceClient.createRealmCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable createRealmCallable() { - return stub.createRealmCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedName = RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   realmsServiceClient.deleteRealmAsync(formattedName).get();
-   * }
-   * 
- * - * @param name Required. The name of the realm to delete, using the form: - * `projects/{project}/locations/{location}/realms/{realm}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRealmAsync(String name) { - REALM_PATH_TEMPLATE.validate(name, "deleteRealm"); - DeleteRealmRequest request = DeleteRealmRequest.newBuilder().setName(name).build(); - return deleteRealmAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedName = RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   DeleteRealmRequest request = DeleteRealmRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   realmsServiceClient.deleteRealmAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRealmAsync(DeleteRealmRequest request) { - return deleteRealmOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedName = RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   DeleteRealmRequest request = DeleteRealmRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   OperationFuture<Empty, Empty> future = realmsServiceClient.deleteRealmOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable deleteRealmOperationCallable() { - return stub.deleteRealmOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   String formattedName = RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
-   *   DeleteRealmRequest request = DeleteRealmRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<Operation> future = realmsServiceClient.deleteRealmCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable deleteRealmCallable() { - return stub.deleteRealmCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single Realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   Realm realm = Realm.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Realm response = realmsServiceClient.updateRealmAsync(realm, updateMask).get();
-   * }
-   * 
- * - * @param realm Required. The realm to be updated. Only fields specified in update_mask are - * updated. - * @param updateMask Required. The update mask applies to the resource. For the `FieldMask` - * definition, see - *

https: //developers.google.com/protocol-buffers // - * /docs/reference/google.protobuf#fieldmask - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRealmAsync(Realm realm, FieldMask updateMask) { - UpdateRealmRequest request = - UpdateRealmRequest.newBuilder().setRealm(realm).setUpdateMask(updateMask).build(); - return updateRealmAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single Realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   Realm realm = Realm.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateRealmRequest request = UpdateRealmRequest.newBuilder()
-   *     .setRealm(realm)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   Realm response = realmsServiceClient.updateRealmAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRealmAsync(UpdateRealmRequest request) { - return updateRealmOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single Realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   Realm realm = Realm.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateRealmRequest request = UpdateRealmRequest.newBuilder()
-   *     .setRealm(realm)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<Realm, Empty> future = realmsServiceClient.updateRealmOperationCallable().futureCall(request);
-   *   // Do something
-   *   Realm response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable updateRealmOperationCallable() { - return stub.updateRealmOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single Realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   Realm realm = Realm.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateRealmRequest request = UpdateRealmRequest.newBuilder()
-   *     .setRealm(realm)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = realmsServiceClient.updateRealmCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable updateRealmCallable() { - return stub.updateRealmCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews patches to a single Realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   PreviewRealmUpdateRequest request = PreviewRealmUpdateRequest.newBuilder().build();
-   *   PreviewRealmUpdateResponse response = realmsServiceClient.previewRealmUpdate(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PreviewRealmUpdateResponse previewRealmUpdate(PreviewRealmUpdateRequest request) { - return previewRealmUpdateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Previews patches to a single Realm. - * - *

Sample code: - * - *


-   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
-   *   PreviewRealmUpdateRequest request = PreviewRealmUpdateRequest.newBuilder().build();
-   *   ApiFuture<PreviewRealmUpdateResponse> future = realmsServiceClient.previewRealmUpdateCallable().futureCall(request);
-   *   // Do something
-   *   PreviewRealmUpdateResponse response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - previewRealmUpdateCallable() { - return stub.previewRealmUpdateCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListRealmsPagedResponse - extends AbstractPagedListResponse< - ListRealmsRequest, - ListRealmsResponse, - Realm, - ListRealmsPage, - ListRealmsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListRealmsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListRealmsPagedResponse apply(ListRealmsPage input) { - return new ListRealmsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListRealmsPagedResponse(ListRealmsPage page) { - super(page, ListRealmsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListRealmsPage - extends AbstractPage { - - private ListRealmsPage( - PageContext context, - ListRealmsResponse response) { - super(context, response); - } - - private static ListRealmsPage createEmptyPage() { - return new ListRealmsPage(null, null); - } - - @Override - protected ListRealmsPage createPage( - PageContext context, - ListRealmsResponse response) { - return new ListRealmsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListRealmsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListRealmsRequest, - ListRealmsResponse, - Realm, - ListRealmsPage, - ListRealmsFixedSizeCollection> { - - private ListRealmsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListRealmsFixedSizeCollection createEmptyCollection() { - return new ListRealmsFixedSizeCollection(null, 0); - } - - @Override - protected ListRealmsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListRealmsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceSettings.java deleted file mode 100644 index e495b383..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceSettings.java +++ /dev/null @@ -1,284 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.RealmsServiceClient.ListRealmsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.gaming.v1alpha.stub.RealmsServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link RealmsServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getRealm to 30 seconds: - * - *

- * 
- * RealmsServiceSettings.Builder realmsServiceSettingsBuilder =
- *     RealmsServiceSettings.newBuilder();
- * realmsServiceSettingsBuilder
- *     .getRealmSettings()
- *     .setRetrySettings(
- *         realmsServiceSettingsBuilder.getRealmSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * RealmsServiceSettings realmsServiceSettings = realmsServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class RealmsServiceSettings extends ClientSettings { - /** Returns the object with the settings used for calls to listRealms. */ - public PagedCallSettings - listRealmsSettings() { - return ((RealmsServiceStubSettings) getStubSettings()).listRealmsSettings(); - } - - /** Returns the object with the settings used for calls to getRealm. */ - public UnaryCallSettings getRealmSettings() { - return ((RealmsServiceStubSettings) getStubSettings()).getRealmSettings(); - } - - /** Returns the object with the settings used for calls to createRealm. */ - public UnaryCallSettings createRealmSettings() { - return ((RealmsServiceStubSettings) getStubSettings()).createRealmSettings(); - } - - /** Returns the object with the settings used for calls to createRealm. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings createRealmOperationSettings() { - return ((RealmsServiceStubSettings) getStubSettings()).createRealmOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteRealm. */ - public UnaryCallSettings deleteRealmSettings() { - return ((RealmsServiceStubSettings) getStubSettings()).deleteRealmSettings(); - } - - /** Returns the object with the settings used for calls to deleteRealm. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings deleteRealmOperationSettings() { - return ((RealmsServiceStubSettings) getStubSettings()).deleteRealmOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateRealm. */ - public UnaryCallSettings updateRealmSettings() { - return ((RealmsServiceStubSettings) getStubSettings()).updateRealmSettings(); - } - - /** Returns the object with the settings used for calls to updateRealm. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings updateRealmOperationSettings() { - return ((RealmsServiceStubSettings) getStubSettings()).updateRealmOperationSettings(); - } - - /** Returns the object with the settings used for calls to previewRealmUpdate. */ - public UnaryCallSettings - previewRealmUpdateSettings() { - return ((RealmsServiceStubSettings) getStubSettings()).previewRealmUpdateSettings(); - } - - public static final RealmsServiceSettings create(RealmsServiceStubSettings stub) - throws IOException { - return new RealmsServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return RealmsServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return RealmsServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return RealmsServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return RealmsServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return RealmsServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return RealmsServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return RealmsServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected RealmsServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for RealmsServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - protected Builder() throws IOException { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(RealmsServiceStubSettings.newBuilder(clientContext)); - } - - private static Builder createDefault() { - return new Builder(RealmsServiceStubSettings.newBuilder()); - } - - protected Builder(RealmsServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(RealmsServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - public RealmsServiceStubSettings.Builder getStubSettingsBuilder() { - return ((RealmsServiceStubSettings.Builder) getStubSettings()); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listRealms. */ - public PagedCallSettings.Builder - listRealmsSettings() { - return getStubSettingsBuilder().listRealmsSettings(); - } - - /** Returns the builder for the settings used for calls to getRealm. */ - public UnaryCallSettings.Builder getRealmSettings() { - return getStubSettingsBuilder().getRealmSettings(); - } - - /** Returns the builder for the settings used for calls to createRealm. */ - public UnaryCallSettings.Builder createRealmSettings() { - return getStubSettingsBuilder().createRealmSettings(); - } - - /** Returns the builder for the settings used for calls to createRealm. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createRealmOperationSettings() { - return getStubSettingsBuilder().createRealmOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRealm. */ - public UnaryCallSettings.Builder deleteRealmSettings() { - return getStubSettingsBuilder().deleteRealmSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRealm. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteRealmOperationSettings() { - return getStubSettingsBuilder().deleteRealmOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateRealm. */ - public UnaryCallSettings.Builder updateRealmSettings() { - return getStubSettingsBuilder().updateRealmSettings(); - } - - /** Returns the builder for the settings used for calls to updateRealm. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateRealmOperationSettings() { - return getStubSettingsBuilder().updateRealmOperationSettings(); - } - - /** Returns the builder for the settings used for calls to previewRealmUpdate. */ - public UnaryCallSettings.Builder - previewRealmUpdateSettings() { - return getStubSettingsBuilder().previewRealmUpdateSettings(); - } - - @Override - public RealmsServiceSettings build() throws IOException { - return new RealmsServiceSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/package-info.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/package-info.java deleted file mode 100644 index 0a6327d0..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/package-info.java +++ /dev/null @@ -1,75 +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 - * - * 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. - */ - -/** - * A client to Game Services API. - * - *

The interfaces provided are listed below, along with usage samples. - * - *

=============================== GameServerClustersServiceClient - * =============================== - * - *

Service Description: The game server cluster maps to Kubernetes clusters running Agones and is - * used to manage fleets within clusters. - * - *

Sample for GameServerClustersServiceClient: - * - *

- * 
- * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
- *   String formattedName = GameServerClustersServiceClient.formatGameServerClusterName("[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]");
- *   GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(formattedName);
- * }
- * 
- * 
- * - * ================================== GameServerDeploymentsServiceClient - * ================================== - * - *

Service Description: The game server deployment is used to control the deployment of game - * server software to Agones fleets. - * - *

Sample for GameServerDeploymentsServiceClient: - * - *

- * 
- * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
- *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
- *   GameServerDeployment response = gameServerDeploymentsServiceClient.getGameServerDeployment(formattedName);
- * }
- * 
- * 
- * - * =================== RealmsServiceClient =================== - * - *

Service Description: Realm provides grouping of game server clusters that are serving a - * particular gamer population. - * - *

Sample for RealmsServiceClient: - * - *

- * 
- * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
- *   String formattedName = RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]");
- *   Realm response = realmsServiceClient.getRealm(formattedName);
- * }
- * 
- * 
- */ -@Generated("by gapic-generator") -package com.google.cloud.gaming.v1alpha; - -import javax.annotation.Generated; diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStub.java deleted file mode 100644 index 0dde6653..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStub.java +++ /dev/null @@ -1,132 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.GameServerClustersServiceClient.ListGameServerClustersPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.GameServerCluster; -import com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse; -import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse; -import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse; -import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse; -import com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Base stub class for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public abstract class GameServerClustersServiceStub implements BackgroundResource { - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable - listGameServerClustersPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listGameServerClustersPagedCallable()"); - } - - public UnaryCallable - listGameServerClustersCallable() { - throw new UnsupportedOperationException("Not implemented: listGameServerClustersCallable()"); - } - - public UnaryCallable - getGameServerClusterCallable() { - throw new UnsupportedOperationException("Not implemented: getGameServerClusterCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createGameServerClusterOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createGameServerClusterOperationCallable()"); - } - - public UnaryCallable - createGameServerClusterCallable() { - throw new UnsupportedOperationException("Not implemented: createGameServerClusterCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteGameServerClusterOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteGameServerClusterOperationCallable()"); - } - - public UnaryCallable - deleteGameServerClusterCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGameServerClusterCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateGameServerClusterOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateGameServerClusterOperationCallable()"); - } - - public UnaryCallable - updateGameServerClusterCallable() { - throw new UnsupportedOperationException("Not implemented: updateGameServerClusterCallable()"); - } - - public UnaryCallable< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterCallable() { - throw new UnsupportedOperationException( - "Not implemented: previewCreateGameServerClusterCallable()"); - } - - public UnaryCallable< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterCallable() { - throw new UnsupportedOperationException( - "Not implemented: previewDeleteGameServerClusterCallable()"); - } - - public UnaryCallable< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterCallable() { - throw new UnsupportedOperationException( - "Not implemented: previewUpdateGameServerClusterCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStubSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStubSettings.java deleted file mode 100644 index 69484551..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStubSettings.java +++ /dev/null @@ -1,740 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.GameServerClustersServiceClient.ListGameServerClustersPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.GameServerCluster; -import com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse; -import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse; -import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse; -import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse; -import com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link GameServerClustersServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getGameServerCluster to 30 seconds: - * - *

- * 
- * GameServerClustersServiceStubSettings.Builder gameServerClustersServiceSettingsBuilder =
- *     GameServerClustersServiceStubSettings.newBuilder();
- * gameServerClustersServiceSettingsBuilder
- *     .getGameServerClusterSettings()
- *     .setRetrySettings(
- *         gameServerClustersServiceSettingsBuilder.getGameServerClusterSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * GameServerClustersServiceStubSettings gameServerClustersServiceSettings = gameServerClustersServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class GameServerClustersServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - ListGameServerClustersPagedResponse> - listGameServerClustersSettings; - private final UnaryCallSettings - getGameServerClusterSettings; - private final UnaryCallSettings - createGameServerClusterSettings; - private final OperationCallSettings - createGameServerClusterOperationSettings; - private final UnaryCallSettings - deleteGameServerClusterSettings; - private final OperationCallSettings - deleteGameServerClusterOperationSettings; - private final UnaryCallSettings - updateGameServerClusterSettings; - private final OperationCallSettings - updateGameServerClusterOperationSettings; - private final UnaryCallSettings< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterSettings; - private final UnaryCallSettings< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterSettings; - private final UnaryCallSettings< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterSettings; - - /** Returns the object with the settings used for calls to listGameServerClusters. */ - public PagedCallSettings< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - ListGameServerClustersPagedResponse> - listGameServerClustersSettings() { - return listGameServerClustersSettings; - } - - /** Returns the object with the settings used for calls to getGameServerCluster. */ - public UnaryCallSettings - getGameServerClusterSettings() { - return getGameServerClusterSettings; - } - - /** Returns the object with the settings used for calls to createGameServerCluster. */ - public UnaryCallSettings - createGameServerClusterSettings() { - return createGameServerClusterSettings; - } - - /** Returns the object with the settings used for calls to createGameServerCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - createGameServerClusterOperationSettings() { - return createGameServerClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteGameServerCluster. */ - public UnaryCallSettings - deleteGameServerClusterSettings() { - return deleteGameServerClusterSettings; - } - - /** Returns the object with the settings used for calls to deleteGameServerCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - deleteGameServerClusterOperationSettings() { - return deleteGameServerClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to updateGameServerCluster. */ - public UnaryCallSettings - updateGameServerClusterSettings() { - return updateGameServerClusterSettings; - } - - /** Returns the object with the settings used for calls to updateGameServerCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - updateGameServerClusterOperationSettings() { - return updateGameServerClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to previewCreateGameServerCluster. */ - public UnaryCallSettings< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterSettings() { - return previewCreateGameServerClusterSettings; - } - - /** Returns the object with the settings used for calls to previewDeleteGameServerCluster. */ - public UnaryCallSettings< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterSettings() { - return previewDeleteGameServerClusterSettings; - } - - /** Returns the object with the settings used for calls to previewUpdateGameServerCluster. */ - public UnaryCallSettings< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterSettings() { - return previewUpdateGameServerClusterSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public GameServerClustersServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcGameServerClustersServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); - } - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "gameservices.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(GameServerClustersServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected GameServerClustersServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listGameServerClustersSettings = settingsBuilder.listGameServerClustersSettings().build(); - getGameServerClusterSettings = settingsBuilder.getGameServerClusterSettings().build(); - createGameServerClusterSettings = settingsBuilder.createGameServerClusterSettings().build(); - createGameServerClusterOperationSettings = - settingsBuilder.createGameServerClusterOperationSettings().build(); - deleteGameServerClusterSettings = settingsBuilder.deleteGameServerClusterSettings().build(); - deleteGameServerClusterOperationSettings = - settingsBuilder.deleteGameServerClusterOperationSettings().build(); - updateGameServerClusterSettings = settingsBuilder.updateGameServerClusterSettings().build(); - updateGameServerClusterOperationSettings = - settingsBuilder.updateGameServerClusterOperationSettings().build(); - previewCreateGameServerClusterSettings = - settingsBuilder.previewCreateGameServerClusterSettings().build(); - previewDeleteGameServerClusterSettings = - settingsBuilder.previewDeleteGameServerClusterSettings().build(); - previewUpdateGameServerClusterSettings = - settingsBuilder.previewUpdateGameServerClusterSettings().build(); - } - - private static final PagedListDescriptor< - ListGameServerClustersRequest, ListGameServerClustersResponse, GameServerCluster> - LIST_GAME_SERVER_CLUSTERS_PAGE_STR_DESC = - new PagedListDescriptor< - ListGameServerClustersRequest, ListGameServerClustersResponse, GameServerCluster>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListGameServerClustersRequest injectToken( - ListGameServerClustersRequest payload, String token) { - return ListGameServerClustersRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListGameServerClustersRequest injectPageSize( - ListGameServerClustersRequest payload, int pageSize) { - return ListGameServerClustersRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListGameServerClustersRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListGameServerClustersResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListGameServerClustersResponse payload) { - return payload.getGameServerClustersList() != null - ? payload.getGameServerClustersList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - ListGameServerClustersPagedResponse> - LIST_GAME_SERVER_CLUSTERS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - ListGameServerClustersPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListGameServerClustersRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - GameServerCluster> - pageContext = - PageContext.create( - callable, LIST_GAME_SERVER_CLUSTERS_PAGE_STR_DESC, request, context); - return ListGameServerClustersPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Builder for GameServerClustersServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - - private final PagedCallSettings.Builder< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - ListGameServerClustersPagedResponse> - listGameServerClustersSettings; - private final UnaryCallSettings.Builder - getGameServerClusterSettings; - private final UnaryCallSettings.Builder - createGameServerClusterSettings; - private final OperationCallSettings.Builder< - CreateGameServerClusterRequest, GameServerCluster, Empty> - createGameServerClusterOperationSettings; - private final UnaryCallSettings.Builder - deleteGameServerClusterSettings; - private final OperationCallSettings.Builder - deleteGameServerClusterOperationSettings; - private final UnaryCallSettings.Builder - updateGameServerClusterSettings; - private final OperationCallSettings.Builder< - UpdateGameServerClusterRequest, GameServerCluster, Empty> - updateGameServerClusterOperationSettings; - private final UnaryCallSettings.Builder< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterSettings; - private final UnaryCallSettings.Builder< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterSettings; - private final UnaryCallSettings.Builder< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterSettings; - - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "idempotent", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("default", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listGameServerClustersSettings = - PagedCallSettings.newBuilder(LIST_GAME_SERVER_CLUSTERS_PAGE_STR_FACT); - - getGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createGameServerClusterOperationSettings = OperationCallSettings.newBuilder(); - - deleteGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - deleteGameServerClusterOperationSettings = OperationCallSettings.newBuilder(); - - updateGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateGameServerClusterOperationSettings = OperationCallSettings.newBuilder(); - - previewCreateGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - previewDeleteGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - previewUpdateGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listGameServerClustersSettings, - getGameServerClusterSettings, - createGameServerClusterSettings, - deleteGameServerClusterSettings, - updateGameServerClusterSettings, - previewCreateGameServerClusterSettings, - previewDeleteGameServerClusterSettings, - previewUpdateGameServerClusterSettings); - - initDefaults(this); - } - - private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - - builder - .listGameServerClustersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .getGameServerClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .createGameServerClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .deleteGameServerClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .updateGameServerClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .previewCreateGameServerClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .previewDeleteGameServerClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .previewUpdateGameServerClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .createGameServerClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(GameServerCluster.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .deleteGameServerClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .updateGameServerClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(GameServerCluster.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - protected Builder(GameServerClustersServiceStubSettings settings) { - super(settings); - - listGameServerClustersSettings = settings.listGameServerClustersSettings.toBuilder(); - getGameServerClusterSettings = settings.getGameServerClusterSettings.toBuilder(); - createGameServerClusterSettings = settings.createGameServerClusterSettings.toBuilder(); - createGameServerClusterOperationSettings = - settings.createGameServerClusterOperationSettings.toBuilder(); - deleteGameServerClusterSettings = settings.deleteGameServerClusterSettings.toBuilder(); - deleteGameServerClusterOperationSettings = - settings.deleteGameServerClusterOperationSettings.toBuilder(); - updateGameServerClusterSettings = settings.updateGameServerClusterSettings.toBuilder(); - updateGameServerClusterOperationSettings = - settings.updateGameServerClusterOperationSettings.toBuilder(); - previewCreateGameServerClusterSettings = - settings.previewCreateGameServerClusterSettings.toBuilder(); - previewDeleteGameServerClusterSettings = - settings.previewDeleteGameServerClusterSettings.toBuilder(); - previewUpdateGameServerClusterSettings = - settings.previewUpdateGameServerClusterSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listGameServerClustersSettings, - getGameServerClusterSettings, - createGameServerClusterSettings, - deleteGameServerClusterSettings, - updateGameServerClusterSettings, - previewCreateGameServerClusterSettings, - previewDeleteGameServerClusterSettings, - previewUpdateGameServerClusterSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listGameServerClusters. */ - public PagedCallSettings.Builder< - ListGameServerClustersRequest, - ListGameServerClustersResponse, - ListGameServerClustersPagedResponse> - listGameServerClustersSettings() { - return listGameServerClustersSettings; - } - - /** Returns the builder for the settings used for calls to getGameServerCluster. */ - public UnaryCallSettings.Builder - getGameServerClusterSettings() { - return getGameServerClusterSettings; - } - - /** Returns the builder for the settings used for calls to createGameServerCluster. */ - public UnaryCallSettings.Builder - createGameServerClusterSettings() { - return createGameServerClusterSettings; - } - - /** Returns the builder for the settings used for calls to createGameServerCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createGameServerClusterOperationSettings() { - return createGameServerClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteGameServerCluster. */ - public UnaryCallSettings.Builder - deleteGameServerClusterSettings() { - return deleteGameServerClusterSettings; - } - - /** Returns the builder for the settings used for calls to deleteGameServerCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteGameServerClusterOperationSettings() { - return deleteGameServerClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateGameServerCluster. */ - public UnaryCallSettings.Builder - updateGameServerClusterSettings() { - return updateGameServerClusterSettings; - } - - /** Returns the builder for the settings used for calls to updateGameServerCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateGameServerClusterOperationSettings() { - return updateGameServerClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to previewCreateGameServerCluster. */ - public UnaryCallSettings.Builder< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterSettings() { - return previewCreateGameServerClusterSettings; - } - - /** Returns the builder for the settings used for calls to previewDeleteGameServerCluster. */ - public UnaryCallSettings.Builder< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterSettings() { - return previewDeleteGameServerClusterSettings; - } - - /** Returns the builder for the settings used for calls to previewUpdateGameServerCluster. */ - public UnaryCallSettings.Builder< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterSettings() { - return previewUpdateGameServerClusterSettings; - } - - @Override - public GameServerClustersServiceStubSettings build() throws IOException { - return new GameServerClustersServiceStubSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub.java deleted file mode 100644 index 44f601ce..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub.java +++ /dev/null @@ -1,139 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.GameServerDeploymentsServiceClient.ListGameServerDeploymentsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest; -import com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse; -import com.google.cloud.gaming.v1alpha.GameServerDeployment; -import com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout; -import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse; -import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest; -import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse; -import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Base stub class for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public abstract class GameServerDeploymentsServiceStub implements BackgroundResource { - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable - listGameServerDeploymentsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listGameServerDeploymentsPagedCallable()"); - } - - public UnaryCallable - listGameServerDeploymentsCallable() { - throw new UnsupportedOperationException("Not implemented: listGameServerDeploymentsCallable()"); - } - - public UnaryCallable - getGameServerDeploymentCallable() { - throw new UnsupportedOperationException("Not implemented: getGameServerDeploymentCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createGameServerDeploymentOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createGameServerDeploymentOperationCallable()"); - } - - public UnaryCallable - createGameServerDeploymentCallable() { - throw new UnsupportedOperationException( - "Not implemented: createGameServerDeploymentCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteGameServerDeploymentOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteGameServerDeploymentOperationCallable()"); - } - - public UnaryCallable - deleteGameServerDeploymentCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteGameServerDeploymentCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateGameServerDeploymentOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateGameServerDeploymentOperationCallable()"); - } - - public UnaryCallable - updateGameServerDeploymentCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateGameServerDeploymentCallable()"); - } - - public UnaryCallable - getGameServerDeploymentRolloutCallable() { - throw new UnsupportedOperationException( - "Not implemented: getGameServerDeploymentRolloutCallable()"); - } - - public UnaryCallable - updateGameServerDeploymentRolloutCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateGameServerDeploymentRolloutCallable()"); - } - - public UnaryCallable< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutCallable() { - throw new UnsupportedOperationException( - "Not implemented: previewGameServerDeploymentRolloutCallable()"); - } - - public UnaryCallable - fetchDeploymentStateCallable() { - throw new UnsupportedOperationException("Not implemented: fetchDeploymentStateCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStubSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStubSettings.java deleted file mode 100644 index 594c437f..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStubSettings.java +++ /dev/null @@ -1,782 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.GameServerDeploymentsServiceClient.ListGameServerDeploymentsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest; -import com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse; -import com.google.cloud.gaming.v1alpha.GameServerDeployment; -import com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout; -import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse; -import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest; -import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse; -import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link GameServerDeploymentsServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getGameServerDeployment to 30 seconds: - * - *

- * 
- * GameServerDeploymentsServiceStubSettings.Builder gameServerDeploymentsServiceSettingsBuilder =
- *     GameServerDeploymentsServiceStubSettings.newBuilder();
- * gameServerDeploymentsServiceSettingsBuilder
- *     .getGameServerDeploymentSettings()
- *     .setRetrySettings(
- *         gameServerDeploymentsServiceSettingsBuilder.getGameServerDeploymentSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * GameServerDeploymentsServiceStubSettings gameServerDeploymentsServiceSettings = gameServerDeploymentsServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class GameServerDeploymentsServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - ListGameServerDeploymentsPagedResponse> - listGameServerDeploymentsSettings; - private final UnaryCallSettings - getGameServerDeploymentSettings; - private final UnaryCallSettings - createGameServerDeploymentSettings; - private final OperationCallSettings< - CreateGameServerDeploymentRequest, GameServerDeployment, Empty> - createGameServerDeploymentOperationSettings; - private final UnaryCallSettings - deleteGameServerDeploymentSettings; - private final OperationCallSettings - deleteGameServerDeploymentOperationSettings; - private final UnaryCallSettings - updateGameServerDeploymentSettings; - private final OperationCallSettings< - UpdateGameServerDeploymentRequest, GameServerDeployment, Empty> - updateGameServerDeploymentOperationSettings; - private final UnaryCallSettings< - GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> - getGameServerDeploymentRolloutSettings; - private final UnaryCallSettings - updateGameServerDeploymentRolloutSettings; - private final UnaryCallSettings< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutSettings; - private final UnaryCallSettings - fetchDeploymentStateSettings; - - /** Returns the object with the settings used for calls to listGameServerDeployments. */ - public PagedCallSettings< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - ListGameServerDeploymentsPagedResponse> - listGameServerDeploymentsSettings() { - return listGameServerDeploymentsSettings; - } - - /** Returns the object with the settings used for calls to getGameServerDeployment. */ - public UnaryCallSettings - getGameServerDeploymentSettings() { - return getGameServerDeploymentSettings; - } - - /** Returns the object with the settings used for calls to createGameServerDeployment. */ - public UnaryCallSettings - createGameServerDeploymentSettings() { - return createGameServerDeploymentSettings; - } - - /** Returns the object with the settings used for calls to createGameServerDeployment. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - createGameServerDeploymentOperationSettings() { - return createGameServerDeploymentOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteGameServerDeployment. */ - public UnaryCallSettings - deleteGameServerDeploymentSettings() { - return deleteGameServerDeploymentSettings; - } - - /** Returns the object with the settings used for calls to deleteGameServerDeployment. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - deleteGameServerDeploymentOperationSettings() { - return deleteGameServerDeploymentOperationSettings; - } - - /** Returns the object with the settings used for calls to updateGameServerDeployment. */ - public UnaryCallSettings - updateGameServerDeploymentSettings() { - return updateGameServerDeploymentSettings; - } - - /** Returns the object with the settings used for calls to updateGameServerDeployment. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - updateGameServerDeploymentOperationSettings() { - return updateGameServerDeploymentOperationSettings; - } - - /** Returns the object with the settings used for calls to getGameServerDeploymentRollout. */ - public UnaryCallSettings - getGameServerDeploymentRolloutSettings() { - return getGameServerDeploymentRolloutSettings; - } - - /** Returns the object with the settings used for calls to updateGameServerDeploymentRollout. */ - public UnaryCallSettings - updateGameServerDeploymentRolloutSettings() { - return updateGameServerDeploymentRolloutSettings; - } - - /** Returns the object with the settings used for calls to previewGameServerDeploymentRollout. */ - public UnaryCallSettings< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutSettings() { - return previewGameServerDeploymentRolloutSettings; - } - - /** Returns the object with the settings used for calls to fetchDeploymentState. */ - public UnaryCallSettings - fetchDeploymentStateSettings() { - return fetchDeploymentStateSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public GameServerDeploymentsServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcGameServerDeploymentsServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); - } - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "gameservices.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", - GaxProperties.getLibraryVersion(GameServerDeploymentsServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected GameServerDeploymentsServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listGameServerDeploymentsSettings = settingsBuilder.listGameServerDeploymentsSettings().build(); - getGameServerDeploymentSettings = settingsBuilder.getGameServerDeploymentSettings().build(); - createGameServerDeploymentSettings = - settingsBuilder.createGameServerDeploymentSettings().build(); - createGameServerDeploymentOperationSettings = - settingsBuilder.createGameServerDeploymentOperationSettings().build(); - deleteGameServerDeploymentSettings = - settingsBuilder.deleteGameServerDeploymentSettings().build(); - deleteGameServerDeploymentOperationSettings = - settingsBuilder.deleteGameServerDeploymentOperationSettings().build(); - updateGameServerDeploymentSettings = - settingsBuilder.updateGameServerDeploymentSettings().build(); - updateGameServerDeploymentOperationSettings = - settingsBuilder.updateGameServerDeploymentOperationSettings().build(); - getGameServerDeploymentRolloutSettings = - settingsBuilder.getGameServerDeploymentRolloutSettings().build(); - updateGameServerDeploymentRolloutSettings = - settingsBuilder.updateGameServerDeploymentRolloutSettings().build(); - previewGameServerDeploymentRolloutSettings = - settingsBuilder.previewGameServerDeploymentRolloutSettings().build(); - fetchDeploymentStateSettings = settingsBuilder.fetchDeploymentStateSettings().build(); - } - - private static final PagedListDescriptor< - ListGameServerDeploymentsRequest, ListGameServerDeploymentsResponse, GameServerDeployment> - LIST_GAME_SERVER_DEPLOYMENTS_PAGE_STR_DESC = - new PagedListDescriptor< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GameServerDeployment>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListGameServerDeploymentsRequest injectToken( - ListGameServerDeploymentsRequest payload, String token) { - return ListGameServerDeploymentsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListGameServerDeploymentsRequest injectPageSize( - ListGameServerDeploymentsRequest payload, int pageSize) { - return ListGameServerDeploymentsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListGameServerDeploymentsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListGameServerDeploymentsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListGameServerDeploymentsResponse payload) { - return payload.getGameServerDeploymentsList() != null - ? payload.getGameServerDeploymentsList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - ListGameServerDeploymentsPagedResponse> - LIST_GAME_SERVER_DEPLOYMENTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - ListGameServerDeploymentsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListGameServerDeploymentsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - GameServerDeployment> - pageContext = - PageContext.create( - callable, LIST_GAME_SERVER_DEPLOYMENTS_PAGE_STR_DESC, request, context); - return ListGameServerDeploymentsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - /** Builder for GameServerDeploymentsServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - - private final PagedCallSettings.Builder< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - ListGameServerDeploymentsPagedResponse> - listGameServerDeploymentsSettings; - private final UnaryCallSettings.Builder - getGameServerDeploymentSettings; - private final UnaryCallSettings.Builder - createGameServerDeploymentSettings; - private final OperationCallSettings.Builder< - CreateGameServerDeploymentRequest, GameServerDeployment, Empty> - createGameServerDeploymentOperationSettings; - private final UnaryCallSettings.Builder - deleteGameServerDeploymentSettings; - private final OperationCallSettings.Builder - deleteGameServerDeploymentOperationSettings; - private final UnaryCallSettings.Builder - updateGameServerDeploymentSettings; - private final OperationCallSettings.Builder< - UpdateGameServerDeploymentRequest, GameServerDeployment, Empty> - updateGameServerDeploymentOperationSettings; - private final UnaryCallSettings.Builder< - GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> - getGameServerDeploymentRolloutSettings; - private final UnaryCallSettings.Builder - updateGameServerDeploymentRolloutSettings; - private final UnaryCallSettings.Builder< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutSettings; - private final UnaryCallSettings.Builder< - FetchDeploymentStateRequest, FetchDeploymentStateResponse> - fetchDeploymentStateSettings; - - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "idempotent", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("default", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listGameServerDeploymentsSettings = - PagedCallSettings.newBuilder(LIST_GAME_SERVER_DEPLOYMENTS_PAGE_STR_FACT); - - getGameServerDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createGameServerDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createGameServerDeploymentOperationSettings = OperationCallSettings.newBuilder(); - - deleteGameServerDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - deleteGameServerDeploymentOperationSettings = OperationCallSettings.newBuilder(); - - updateGameServerDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateGameServerDeploymentOperationSettings = OperationCallSettings.newBuilder(); - - getGameServerDeploymentRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateGameServerDeploymentRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - previewGameServerDeploymentRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - fetchDeploymentStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listGameServerDeploymentsSettings, - getGameServerDeploymentSettings, - createGameServerDeploymentSettings, - deleteGameServerDeploymentSettings, - updateGameServerDeploymentSettings, - getGameServerDeploymentRolloutSettings, - updateGameServerDeploymentRolloutSettings, - previewGameServerDeploymentRolloutSettings, - fetchDeploymentStateSettings); - - initDefaults(this); - } - - private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - - builder - .listGameServerDeploymentsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .getGameServerDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .createGameServerDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .deleteGameServerDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .updateGameServerDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .getGameServerDeploymentRolloutSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .updateGameServerDeploymentRolloutSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .previewGameServerDeploymentRolloutSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .fetchDeploymentStateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .createGameServerDeploymentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(GameServerDeployment.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .deleteGameServerDeploymentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .updateGameServerDeploymentOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(GameServerDeployment.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - protected Builder(GameServerDeploymentsServiceStubSettings settings) { - super(settings); - - listGameServerDeploymentsSettings = settings.listGameServerDeploymentsSettings.toBuilder(); - getGameServerDeploymentSettings = settings.getGameServerDeploymentSettings.toBuilder(); - createGameServerDeploymentSettings = settings.createGameServerDeploymentSettings.toBuilder(); - createGameServerDeploymentOperationSettings = - settings.createGameServerDeploymentOperationSettings.toBuilder(); - deleteGameServerDeploymentSettings = settings.deleteGameServerDeploymentSettings.toBuilder(); - deleteGameServerDeploymentOperationSettings = - settings.deleteGameServerDeploymentOperationSettings.toBuilder(); - updateGameServerDeploymentSettings = settings.updateGameServerDeploymentSettings.toBuilder(); - updateGameServerDeploymentOperationSettings = - settings.updateGameServerDeploymentOperationSettings.toBuilder(); - getGameServerDeploymentRolloutSettings = - settings.getGameServerDeploymentRolloutSettings.toBuilder(); - updateGameServerDeploymentRolloutSettings = - settings.updateGameServerDeploymentRolloutSettings.toBuilder(); - previewGameServerDeploymentRolloutSettings = - settings.previewGameServerDeploymentRolloutSettings.toBuilder(); - fetchDeploymentStateSettings = settings.fetchDeploymentStateSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listGameServerDeploymentsSettings, - getGameServerDeploymentSettings, - createGameServerDeploymentSettings, - deleteGameServerDeploymentSettings, - updateGameServerDeploymentSettings, - getGameServerDeploymentRolloutSettings, - updateGameServerDeploymentRolloutSettings, - previewGameServerDeploymentRolloutSettings, - fetchDeploymentStateSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listGameServerDeployments. */ - public PagedCallSettings.Builder< - ListGameServerDeploymentsRequest, - ListGameServerDeploymentsResponse, - ListGameServerDeploymentsPagedResponse> - listGameServerDeploymentsSettings() { - return listGameServerDeploymentsSettings; - } - - /** Returns the builder for the settings used for calls to getGameServerDeployment. */ - public UnaryCallSettings.Builder - getGameServerDeploymentSettings() { - return getGameServerDeploymentSettings; - } - - /** Returns the builder for the settings used for calls to createGameServerDeployment. */ - public UnaryCallSettings.Builder - createGameServerDeploymentSettings() { - return createGameServerDeploymentSettings; - } - - /** Returns the builder for the settings used for calls to createGameServerDeployment. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateGameServerDeploymentRequest, GameServerDeployment, Empty> - createGameServerDeploymentOperationSettings() { - return createGameServerDeploymentOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteGameServerDeployment. */ - public UnaryCallSettings.Builder - deleteGameServerDeploymentSettings() { - return deleteGameServerDeploymentSettings; - } - - /** Returns the builder for the settings used for calls to deleteGameServerDeployment. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteGameServerDeploymentOperationSettings() { - return deleteGameServerDeploymentOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateGameServerDeployment. */ - public UnaryCallSettings.Builder - updateGameServerDeploymentSettings() { - return updateGameServerDeploymentSettings; - } - - /** Returns the builder for the settings used for calls to updateGameServerDeployment. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateGameServerDeploymentRequest, GameServerDeployment, Empty> - updateGameServerDeploymentOperationSettings() { - return updateGameServerDeploymentOperationSettings; - } - - /** Returns the builder for the settings used for calls to getGameServerDeploymentRollout. */ - public UnaryCallSettings.Builder< - GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> - getGameServerDeploymentRolloutSettings() { - return getGameServerDeploymentRolloutSettings; - } - - /** Returns the builder for the settings used for calls to updateGameServerDeploymentRollout. */ - public UnaryCallSettings.Builder - updateGameServerDeploymentRolloutSettings() { - return updateGameServerDeploymentRolloutSettings; - } - - /** - * Returns the builder for the settings used for calls to previewGameServerDeploymentRollout. - */ - public UnaryCallSettings.Builder< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutSettings() { - return previewGameServerDeploymentRolloutSettings; - } - - /** Returns the builder for the settings used for calls to fetchDeploymentState. */ - public UnaryCallSettings.Builder - fetchDeploymentStateSettings() { - return fetchDeploymentStateSettings; - } - - @Override - public GameServerDeploymentsServiceStubSettings build() throws IOException { - return new GameServerDeploymentsServiceStubSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceCallableFactory.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceCallableFactory.java deleted file mode 100644 index d90c1c41..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceCallableFactory.java +++ /dev/null @@ -1,115 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC callable factory implementation for Game Services API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class GrpcGameServerClustersServiceCallableFactory implements GrpcStubCallableFactory { - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceStub.java deleted file mode 100644 index 3102db99..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceStub.java +++ /dev/null @@ -1,530 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.GameServerClustersServiceClient.ListGameServerClustersPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.GameServerCluster; -import com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse; -import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse; -import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse; -import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest; -import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse; -import com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC stub implementation for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public class GrpcGameServerClustersServiceStub extends GameServerClustersServiceStub { - - private static final MethodDescriptor< - ListGameServerClustersRequest, ListGameServerClustersResponse> - listGameServerClustersMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService/ListGameServerClusters") - .setRequestMarshaller( - ProtoUtils.marshaller(ListGameServerClustersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListGameServerClustersResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - getGameServerClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService/GetGameServerCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(GetGameServerClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(GameServerCluster.getDefaultInstance())) - .build(); - private static final MethodDescriptor - createGameServerClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService/CreateGameServerCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateGameServerClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - deleteGameServerClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService/DeleteGameServerCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteGameServerClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - updateGameServerClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService/UpdateGameServerCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateGameServerClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService/PreviewCreateGameServerCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(PreviewCreateGameServerClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - PreviewCreateGameServerClusterResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService/PreviewDeleteGameServerCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(PreviewDeleteGameServerClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - PreviewDeleteGameServerClusterResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService/PreviewUpdateGameServerCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(PreviewUpdateGameServerClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - PreviewUpdateGameServerClusterResponse.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - - private final UnaryCallable - listGameServerClustersCallable; - private final UnaryCallable - listGameServerClustersPagedCallable; - private final UnaryCallable - getGameServerClusterCallable; - private final UnaryCallable - createGameServerClusterCallable; - private final OperationCallable - createGameServerClusterOperationCallable; - private final UnaryCallable - deleteGameServerClusterCallable; - private final OperationCallable - deleteGameServerClusterOperationCallable; - private final UnaryCallable - updateGameServerClusterCallable; - private final OperationCallable - updateGameServerClusterOperationCallable; - private final UnaryCallable< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterCallable; - private final UnaryCallable< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterCallable; - private final UnaryCallable< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterCallable; - - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcGameServerClustersServiceStub create( - GameServerClustersServiceStubSettings settings) throws IOException { - return new GrpcGameServerClustersServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcGameServerClustersServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcGameServerClustersServiceStub( - GameServerClustersServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcGameServerClustersServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcGameServerClustersServiceStub( - GameServerClustersServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcGameServerClustersServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcGameServerClustersServiceStub( - GameServerClustersServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcGameServerClustersServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcGameServerClustersServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcGameServerClustersServiceStub( - GameServerClustersServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listGameServerClustersTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listGameServerClustersMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListGameServerClustersRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getGameServerClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGameServerClusterMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetGameServerClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - createGameServerClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGameServerClusterMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateGameServerClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - deleteGameServerClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGameServerClusterMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteGameServerClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - updateGameServerClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateGameServerClusterMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateGameServerClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "game_server_cluster.name", - String.valueOf(request.getGameServerCluster().getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - previewCreateGameServerClusterTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(previewCreateGameServerClusterMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - PreviewCreateGameServerClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - previewDeleteGameServerClusterTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(previewDeleteGameServerClusterMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - PreviewDeleteGameServerClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - previewUpdateGameServerClusterTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(previewUpdateGameServerClusterMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - PreviewUpdateGameServerClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "game_server_cluster.name", - String.valueOf(request.getGameServerCluster().getName())); - return params.build(); - } - }) - .build(); - - this.listGameServerClustersCallable = - callableFactory.createUnaryCallable( - listGameServerClustersTransportSettings, - settings.listGameServerClustersSettings(), - clientContext); - this.listGameServerClustersPagedCallable = - callableFactory.createPagedCallable( - listGameServerClustersTransportSettings, - settings.listGameServerClustersSettings(), - clientContext); - this.getGameServerClusterCallable = - callableFactory.createUnaryCallable( - getGameServerClusterTransportSettings, - settings.getGameServerClusterSettings(), - clientContext); - this.createGameServerClusterCallable = - callableFactory.createUnaryCallable( - createGameServerClusterTransportSettings, - settings.createGameServerClusterSettings(), - clientContext); - this.createGameServerClusterOperationCallable = - callableFactory.createOperationCallable( - createGameServerClusterTransportSettings, - settings.createGameServerClusterOperationSettings(), - clientContext, - this.operationsStub); - this.deleteGameServerClusterCallable = - callableFactory.createUnaryCallable( - deleteGameServerClusterTransportSettings, - settings.deleteGameServerClusterSettings(), - clientContext); - this.deleteGameServerClusterOperationCallable = - callableFactory.createOperationCallable( - deleteGameServerClusterTransportSettings, - settings.deleteGameServerClusterOperationSettings(), - clientContext, - this.operationsStub); - this.updateGameServerClusterCallable = - callableFactory.createUnaryCallable( - updateGameServerClusterTransportSettings, - settings.updateGameServerClusterSettings(), - clientContext); - this.updateGameServerClusterOperationCallable = - callableFactory.createOperationCallable( - updateGameServerClusterTransportSettings, - settings.updateGameServerClusterOperationSettings(), - clientContext, - this.operationsStub); - this.previewCreateGameServerClusterCallable = - callableFactory.createUnaryCallable( - previewCreateGameServerClusterTransportSettings, - settings.previewCreateGameServerClusterSettings(), - clientContext); - this.previewDeleteGameServerClusterCallable = - callableFactory.createUnaryCallable( - previewDeleteGameServerClusterTransportSettings, - settings.previewDeleteGameServerClusterSettings(), - clientContext); - this.previewUpdateGameServerClusterCallable = - callableFactory.createUnaryCallable( - previewUpdateGameServerClusterTransportSettings, - settings.previewUpdateGameServerClusterSettings(), - clientContext); - - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - public UnaryCallable - listGameServerClustersPagedCallable() { - return listGameServerClustersPagedCallable; - } - - public UnaryCallable - listGameServerClustersCallable() { - return listGameServerClustersCallable; - } - - public UnaryCallable - getGameServerClusterCallable() { - return getGameServerClusterCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createGameServerClusterOperationCallable() { - return createGameServerClusterOperationCallable; - } - - public UnaryCallable - createGameServerClusterCallable() { - return createGameServerClusterCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteGameServerClusterOperationCallable() { - return deleteGameServerClusterOperationCallable; - } - - public UnaryCallable - deleteGameServerClusterCallable() { - return deleteGameServerClusterCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateGameServerClusterOperationCallable() { - return updateGameServerClusterOperationCallable; - } - - public UnaryCallable - updateGameServerClusterCallable() { - return updateGameServerClusterCallable; - } - - public UnaryCallable< - PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> - previewCreateGameServerClusterCallable() { - return previewCreateGameServerClusterCallable; - } - - public UnaryCallable< - PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerClusterCallable() { - return previewDeleteGameServerClusterCallable; - } - - public UnaryCallable< - PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerClusterCallable() { - return previewUpdateGameServerClusterCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceCallableFactory.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceCallableFactory.java deleted file mode 100644 index 4fcc4cdb..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceCallableFactory.java +++ /dev/null @@ -1,115 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC callable factory implementation for Game Services API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class GrpcGameServerDeploymentsServiceCallableFactory implements GrpcStubCallableFactory { - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub.java deleted file mode 100644 index d9663385..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub.java +++ /dev/null @@ -1,564 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.GameServerDeploymentsServiceClient.ListGameServerDeploymentsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest; -import com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse; -import com.google.cloud.gaming.v1alpha.GameServerDeployment; -import com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout; -import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest; -import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse; -import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest; -import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse; -import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC stub implementation for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public class GrpcGameServerDeploymentsServiceStub extends GameServerDeploymentsServiceStub { - - private static final MethodDescriptor< - ListGameServerDeploymentsRequest, ListGameServerDeploymentsResponse> - listGameServerDeploymentsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/ListGameServerDeployments") - .setRequestMarshaller( - ProtoUtils.marshaller(ListGameServerDeploymentsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListGameServerDeploymentsResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - getGameServerDeploymentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/GetGameServerDeployment") - .setRequestMarshaller( - ProtoUtils.marshaller(GetGameServerDeploymentRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GameServerDeployment.getDefaultInstance())) - .build(); - private static final MethodDescriptor - createGameServerDeploymentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/CreateGameServerDeployment") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateGameServerDeploymentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - deleteGameServerDeploymentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/DeleteGameServerDeployment") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteGameServerDeploymentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - updateGameServerDeploymentMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/UpdateGameServerDeployment") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateGameServerDeploymentRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor< - GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> - getGameServerDeploymentRolloutMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/GetGameServerDeploymentRollout") - .setRequestMarshaller( - ProtoUtils.marshaller(GetGameServerDeploymentRolloutRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GameServerDeploymentRollout.getDefaultInstance())) - .build(); - private static final MethodDescriptor - updateGameServerDeploymentRolloutMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/UpdateGameServerDeploymentRollout") - .setRequestMarshaller( - ProtoUtils.marshaller( - UpdateGameServerDeploymentRolloutRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/PreviewGameServerDeploymentRollout") - .setRequestMarshaller( - ProtoUtils.marshaller( - PreviewGameServerDeploymentRolloutRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - PreviewGameServerDeploymentRolloutResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - fetchDeploymentStateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/FetchDeploymentState") - .setRequestMarshaller( - ProtoUtils.marshaller(FetchDeploymentStateRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(FetchDeploymentStateResponse.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - - private final UnaryCallable - listGameServerDeploymentsCallable; - private final UnaryCallable< - ListGameServerDeploymentsRequest, ListGameServerDeploymentsPagedResponse> - listGameServerDeploymentsPagedCallable; - private final UnaryCallable - getGameServerDeploymentCallable; - private final UnaryCallable - createGameServerDeploymentCallable; - private final OperationCallable - createGameServerDeploymentOperationCallable; - private final UnaryCallable - deleteGameServerDeploymentCallable; - private final OperationCallable - deleteGameServerDeploymentOperationCallable; - private final UnaryCallable - updateGameServerDeploymentCallable; - private final OperationCallable - updateGameServerDeploymentOperationCallable; - private final UnaryCallable - getGameServerDeploymentRolloutCallable; - private final UnaryCallable - updateGameServerDeploymentRolloutCallable; - private final UnaryCallable< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutCallable; - private final UnaryCallable - fetchDeploymentStateCallable; - - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcGameServerDeploymentsServiceStub create( - GameServerDeploymentsServiceStubSettings settings) throws IOException { - return new GrpcGameServerDeploymentsServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcGameServerDeploymentsServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcGameServerDeploymentsServiceStub( - GameServerDeploymentsServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcGameServerDeploymentsServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcGameServerDeploymentsServiceStub( - GameServerDeploymentsServiceStubSettings.newBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of GrpcGameServerDeploymentsServiceStub, using the given settings. This - * is protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcGameServerDeploymentsServiceStub( - GameServerDeploymentsServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcGameServerDeploymentsServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcGameServerDeploymentsServiceStub, using the given settings. This - * is protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcGameServerDeploymentsServiceStub( - GameServerDeploymentsServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listGameServerDeploymentsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listGameServerDeploymentsMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListGameServerDeploymentsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getGameServerDeploymentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGameServerDeploymentMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetGameServerDeploymentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - createGameServerDeploymentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGameServerDeploymentMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateGameServerDeploymentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - deleteGameServerDeploymentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGameServerDeploymentMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - DeleteGameServerDeploymentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - updateGameServerDeploymentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateGameServerDeploymentMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - UpdateGameServerDeploymentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "game_server_deployment.name", - String.valueOf(request.getGameServerDeployment().getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getGameServerDeploymentRolloutTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getGameServerDeploymentRolloutMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - GetGameServerDeploymentRolloutRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - updateGameServerDeploymentRolloutTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateGameServerDeploymentRolloutMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - UpdateGameServerDeploymentRolloutRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("rollout.name", String.valueOf(request.getRollout().getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(previewGameServerDeploymentRolloutMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - PreviewGameServerDeploymentRolloutRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("rollout.name", String.valueOf(request.getRollout().getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - fetchDeploymentStateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(fetchDeploymentStateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(FetchDeploymentStateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - - this.listGameServerDeploymentsCallable = - callableFactory.createUnaryCallable( - listGameServerDeploymentsTransportSettings, - settings.listGameServerDeploymentsSettings(), - clientContext); - this.listGameServerDeploymentsPagedCallable = - callableFactory.createPagedCallable( - listGameServerDeploymentsTransportSettings, - settings.listGameServerDeploymentsSettings(), - clientContext); - this.getGameServerDeploymentCallable = - callableFactory.createUnaryCallable( - getGameServerDeploymentTransportSettings, - settings.getGameServerDeploymentSettings(), - clientContext); - this.createGameServerDeploymentCallable = - callableFactory.createUnaryCallable( - createGameServerDeploymentTransportSettings, - settings.createGameServerDeploymentSettings(), - clientContext); - this.createGameServerDeploymentOperationCallable = - callableFactory.createOperationCallable( - createGameServerDeploymentTransportSettings, - settings.createGameServerDeploymentOperationSettings(), - clientContext, - this.operationsStub); - this.deleteGameServerDeploymentCallable = - callableFactory.createUnaryCallable( - deleteGameServerDeploymentTransportSettings, - settings.deleteGameServerDeploymentSettings(), - clientContext); - this.deleteGameServerDeploymentOperationCallable = - callableFactory.createOperationCallable( - deleteGameServerDeploymentTransportSettings, - settings.deleteGameServerDeploymentOperationSettings(), - clientContext, - this.operationsStub); - this.updateGameServerDeploymentCallable = - callableFactory.createUnaryCallable( - updateGameServerDeploymentTransportSettings, - settings.updateGameServerDeploymentSettings(), - clientContext); - this.updateGameServerDeploymentOperationCallable = - callableFactory.createOperationCallable( - updateGameServerDeploymentTransportSettings, - settings.updateGameServerDeploymentOperationSettings(), - clientContext, - this.operationsStub); - this.getGameServerDeploymentRolloutCallable = - callableFactory.createUnaryCallable( - getGameServerDeploymentRolloutTransportSettings, - settings.getGameServerDeploymentRolloutSettings(), - clientContext); - this.updateGameServerDeploymentRolloutCallable = - callableFactory.createUnaryCallable( - updateGameServerDeploymentRolloutTransportSettings, - settings.updateGameServerDeploymentRolloutSettings(), - clientContext); - this.previewGameServerDeploymentRolloutCallable = - callableFactory.createUnaryCallable( - previewGameServerDeploymentRolloutTransportSettings, - settings.previewGameServerDeploymentRolloutSettings(), - clientContext); - this.fetchDeploymentStateCallable = - callableFactory.createUnaryCallable( - fetchDeploymentStateTransportSettings, - settings.fetchDeploymentStateSettings(), - clientContext); - - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - public UnaryCallable - listGameServerDeploymentsPagedCallable() { - return listGameServerDeploymentsPagedCallable; - } - - public UnaryCallable - listGameServerDeploymentsCallable() { - return listGameServerDeploymentsCallable; - } - - public UnaryCallable - getGameServerDeploymentCallable() { - return getGameServerDeploymentCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createGameServerDeploymentOperationCallable() { - return createGameServerDeploymentOperationCallable; - } - - public UnaryCallable - createGameServerDeploymentCallable() { - return createGameServerDeploymentCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteGameServerDeploymentOperationCallable() { - return deleteGameServerDeploymentOperationCallable; - } - - public UnaryCallable - deleteGameServerDeploymentCallable() { - return deleteGameServerDeploymentCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateGameServerDeploymentOperationCallable() { - return updateGameServerDeploymentOperationCallable; - } - - public UnaryCallable - updateGameServerDeploymentCallable() { - return updateGameServerDeploymentCallable; - } - - public UnaryCallable - getGameServerDeploymentRolloutCallable() { - return getGameServerDeploymentRolloutCallable; - } - - public UnaryCallable - updateGameServerDeploymentRolloutCallable() { - return updateGameServerDeploymentRolloutCallable; - } - - public UnaryCallable< - PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRolloutCallable() { - return previewGameServerDeploymentRolloutCallable; - } - - public UnaryCallable - fetchDeploymentStateCallable() { - return fetchDeploymentStateCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceCallableFactory.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceCallableFactory.java deleted file mode 100644 index 2d512f23..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceCallableFactory.java +++ /dev/null @@ -1,115 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC callable factory implementation for Game Services API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class GrpcRealmsServiceCallableFactory implements GrpcStubCallableFactory { - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceStub.java deleted file mode 100644 index 77dd1600..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceStub.java +++ /dev/null @@ -1,364 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.RealmsServiceClient.ListRealmsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateRealmRequest; -import com.google.cloud.gaming.v1alpha.DeleteRealmRequest; -import com.google.cloud.gaming.v1alpha.GetRealmRequest; -import com.google.cloud.gaming.v1alpha.ListRealmsRequest; -import com.google.cloud.gaming.v1alpha.ListRealmsResponse; -import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest; -import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse; -import com.google.cloud.gaming.v1alpha.Realm; -import com.google.cloud.gaming.v1alpha.UpdateRealmRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC stub implementation for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public class GrpcRealmsServiceStub extends RealmsServiceStub { - - private static final MethodDescriptor - listRealmsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.gaming.v1alpha.RealmsService/ListRealms") - .setRequestMarshaller(ProtoUtils.marshaller(ListRealmsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListRealmsResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor getRealmMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.gaming.v1alpha.RealmsService/GetRealm") - .setRequestMarshaller(ProtoUtils.marshaller(GetRealmRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Realm.getDefaultInstance())) - .build(); - private static final MethodDescriptor createRealmMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.gaming.v1alpha.RealmsService/CreateRealm") - .setRequestMarshaller(ProtoUtils.marshaller(CreateRealmRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor deleteRealmMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.gaming.v1alpha.RealmsService/DeleteRealm") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteRealmRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor updateRealmMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.gaming.v1alpha.RealmsService/UpdateRealm") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateRealmRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - previewRealmUpdateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.gaming.v1alpha.RealmsService/PreviewRealmUpdate") - .setRequestMarshaller( - ProtoUtils.marshaller(PreviewRealmUpdateRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(PreviewRealmUpdateResponse.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - - private final UnaryCallable listRealmsCallable; - private final UnaryCallable listRealmsPagedCallable; - private final UnaryCallable getRealmCallable; - private final UnaryCallable createRealmCallable; - private final OperationCallable createRealmOperationCallable; - private final UnaryCallable deleteRealmCallable; - private final OperationCallable deleteRealmOperationCallable; - private final UnaryCallable updateRealmCallable; - private final OperationCallable updateRealmOperationCallable; - private final UnaryCallable - previewRealmUpdateCallable; - - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcRealmsServiceStub create(RealmsServiceStubSettings settings) - throws IOException { - return new GrpcRealmsServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcRealmsServiceStub create(ClientContext clientContext) throws IOException { - return new GrpcRealmsServiceStub(RealmsServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcRealmsServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcRealmsServiceStub( - RealmsServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcRealmsServiceStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcRealmsServiceStub(RealmsServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcRealmsServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcRealmsServiceStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcRealmsServiceStub( - RealmsServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings listRealmsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listRealmsMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListRealmsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings getRealmTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getRealmMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetRealmRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings createRealmTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createRealmMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateRealmRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings deleteRealmTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteRealmMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteRealmRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings updateRealmTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateRealmMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateRealmRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("realm.name", String.valueOf(request.getRealm().getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - previewRealmUpdateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(previewRealmUpdateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PreviewRealmUpdateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("realm.name", String.valueOf(request.getRealm().getName())); - return params.build(); - } - }) - .build(); - - this.listRealmsCallable = - callableFactory.createUnaryCallable( - listRealmsTransportSettings, settings.listRealmsSettings(), clientContext); - this.listRealmsPagedCallable = - callableFactory.createPagedCallable( - listRealmsTransportSettings, settings.listRealmsSettings(), clientContext); - this.getRealmCallable = - callableFactory.createUnaryCallable( - getRealmTransportSettings, settings.getRealmSettings(), clientContext); - this.createRealmCallable = - callableFactory.createUnaryCallable( - createRealmTransportSettings, settings.createRealmSettings(), clientContext); - this.createRealmOperationCallable = - callableFactory.createOperationCallable( - createRealmTransportSettings, - settings.createRealmOperationSettings(), - clientContext, - this.operationsStub); - this.deleteRealmCallable = - callableFactory.createUnaryCallable( - deleteRealmTransportSettings, settings.deleteRealmSettings(), clientContext); - this.deleteRealmOperationCallable = - callableFactory.createOperationCallable( - deleteRealmTransportSettings, - settings.deleteRealmOperationSettings(), - clientContext, - this.operationsStub); - this.updateRealmCallable = - callableFactory.createUnaryCallable( - updateRealmTransportSettings, settings.updateRealmSettings(), clientContext); - this.updateRealmOperationCallable = - callableFactory.createOperationCallable( - updateRealmTransportSettings, - settings.updateRealmOperationSettings(), - clientContext, - this.operationsStub); - this.previewRealmUpdateCallable = - callableFactory.createUnaryCallable( - previewRealmUpdateTransportSettings, - settings.previewRealmUpdateSettings(), - clientContext); - - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - public UnaryCallable listRealmsPagedCallable() { - return listRealmsPagedCallable; - } - - public UnaryCallable listRealmsCallable() { - return listRealmsCallable; - } - - public UnaryCallable getRealmCallable() { - return getRealmCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable createRealmOperationCallable() { - return createRealmOperationCallable; - } - - public UnaryCallable createRealmCallable() { - return createRealmCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable deleteRealmOperationCallable() { - return deleteRealmOperationCallable; - } - - public UnaryCallable deleteRealmCallable() { - return deleteRealmCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable updateRealmOperationCallable() { - return updateRealmOperationCallable; - } - - public UnaryCallable updateRealmCallable() { - return updateRealmCallable; - } - - public UnaryCallable - previewRealmUpdateCallable() { - return previewRealmUpdateCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStub.java deleted file mode 100644 index 80093fe4..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStub.java +++ /dev/null @@ -1,99 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.RealmsServiceClient.ListRealmsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateRealmRequest; -import com.google.cloud.gaming.v1alpha.DeleteRealmRequest; -import com.google.cloud.gaming.v1alpha.GetRealmRequest; -import com.google.cloud.gaming.v1alpha.ListRealmsRequest; -import com.google.cloud.gaming.v1alpha.ListRealmsResponse; -import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest; -import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse; -import com.google.cloud.gaming.v1alpha.Realm; -import com.google.cloud.gaming.v1alpha.UpdateRealmRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Base stub class for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public abstract class RealmsServiceStub implements BackgroundResource { - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable listRealmsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listRealmsPagedCallable()"); - } - - public UnaryCallable listRealmsCallable() { - throw new UnsupportedOperationException("Not implemented: listRealmsCallable()"); - } - - public UnaryCallable getRealmCallable() { - throw new UnsupportedOperationException("Not implemented: getRealmCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable createRealmOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createRealmOperationCallable()"); - } - - public UnaryCallable createRealmCallable() { - throw new UnsupportedOperationException("Not implemented: createRealmCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable deleteRealmOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteRealmOperationCallable()"); - } - - public UnaryCallable deleteRealmCallable() { - throw new UnsupportedOperationException("Not implemented: deleteRealmCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable updateRealmOperationCallable() { - throw new UnsupportedOperationException("Not implemented: updateRealmOperationCallable()"); - } - - public UnaryCallable updateRealmCallable() { - throw new UnsupportedOperationException("Not implemented: updateRealmCallable()"); - } - - public UnaryCallable - previewRealmUpdateCallable() { - throw new UnsupportedOperationException("Not implemented: previewRealmUpdateCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStubSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStubSettings.java deleted file mode 100644 index ac505e40..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStubSettings.java +++ /dev/null @@ -1,603 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.RealmsServiceClient.ListRealmsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateRealmRequest; -import com.google.cloud.gaming.v1alpha.DeleteRealmRequest; -import com.google.cloud.gaming.v1alpha.GetRealmRequest; -import com.google.cloud.gaming.v1alpha.ListRealmsRequest; -import com.google.cloud.gaming.v1alpha.ListRealmsResponse; -import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest; -import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse; -import com.google.cloud.gaming.v1alpha.Realm; -import com.google.cloud.gaming.v1alpha.UpdateRealmRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link RealmsServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getRealm to 30 seconds: - * - *

- * 
- * RealmsServiceStubSettings.Builder realmsServiceSettingsBuilder =
- *     RealmsServiceStubSettings.newBuilder();
- * realmsServiceSettingsBuilder
- *     .getRealmSettings()
- *     .setRetrySettings(
- *         realmsServiceSettingsBuilder.getRealmSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * RealmsServiceStubSettings realmsServiceSettings = realmsServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class RealmsServiceStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings - listRealmsSettings; - private final UnaryCallSettings getRealmSettings; - private final UnaryCallSettings createRealmSettings; - private final OperationCallSettings - createRealmOperationSettings; - private final UnaryCallSettings deleteRealmSettings; - private final OperationCallSettings - deleteRealmOperationSettings; - private final UnaryCallSettings updateRealmSettings; - private final OperationCallSettings - updateRealmOperationSettings; - private final UnaryCallSettings - previewRealmUpdateSettings; - - /** Returns the object with the settings used for calls to listRealms. */ - public PagedCallSettings - listRealmsSettings() { - return listRealmsSettings; - } - - /** Returns the object with the settings used for calls to getRealm. */ - public UnaryCallSettings getRealmSettings() { - return getRealmSettings; - } - - /** Returns the object with the settings used for calls to createRealm. */ - public UnaryCallSettings createRealmSettings() { - return createRealmSettings; - } - - /** Returns the object with the settings used for calls to createRealm. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings createRealmOperationSettings() { - return createRealmOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteRealm. */ - public UnaryCallSettings deleteRealmSettings() { - return deleteRealmSettings; - } - - /** Returns the object with the settings used for calls to deleteRealm. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings deleteRealmOperationSettings() { - return deleteRealmOperationSettings; - } - - /** Returns the object with the settings used for calls to updateRealm. */ - public UnaryCallSettings updateRealmSettings() { - return updateRealmSettings; - } - - /** Returns the object with the settings used for calls to updateRealm. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings updateRealmOperationSettings() { - return updateRealmOperationSettings; - } - - /** Returns the object with the settings used for calls to previewRealmUpdate. */ - public UnaryCallSettings - previewRealmUpdateSettings() { - return previewRealmUpdateSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public RealmsServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcRealmsServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); - } - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "gameservices.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(RealmsServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected RealmsServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listRealmsSettings = settingsBuilder.listRealmsSettings().build(); - getRealmSettings = settingsBuilder.getRealmSettings().build(); - createRealmSettings = settingsBuilder.createRealmSettings().build(); - createRealmOperationSettings = settingsBuilder.createRealmOperationSettings().build(); - deleteRealmSettings = settingsBuilder.deleteRealmSettings().build(); - deleteRealmOperationSettings = settingsBuilder.deleteRealmOperationSettings().build(); - updateRealmSettings = settingsBuilder.updateRealmSettings().build(); - updateRealmOperationSettings = settingsBuilder.updateRealmOperationSettings().build(); - previewRealmUpdateSettings = settingsBuilder.previewRealmUpdateSettings().build(); - } - - private static final PagedListDescriptor - LIST_REALMS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListRealmsRequest injectToken(ListRealmsRequest payload, String token) { - return ListRealmsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListRealmsRequest injectPageSize(ListRealmsRequest payload, int pageSize) { - return ListRealmsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListRealmsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListRealmsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListRealmsResponse payload) { - return payload.getRealmsList() != null - ? payload.getRealmsList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListRealmsRequest, ListRealmsResponse, ListRealmsPagedResponse> - LIST_REALMS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListRealmsRequest, ListRealmsResponse, ListRealmsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListRealmsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_REALMS_PAGE_STR_DESC, request, context); - return ListRealmsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Builder for RealmsServiceStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - - private final PagedCallSettings.Builder< - ListRealmsRequest, ListRealmsResponse, ListRealmsPagedResponse> - listRealmsSettings; - private final UnaryCallSettings.Builder getRealmSettings; - private final UnaryCallSettings.Builder createRealmSettings; - private final OperationCallSettings.Builder - createRealmOperationSettings; - private final UnaryCallSettings.Builder deleteRealmSettings; - private final OperationCallSettings.Builder - deleteRealmOperationSettings; - private final UnaryCallSettings.Builder updateRealmSettings; - private final OperationCallSettings.Builder - updateRealmOperationSettings; - private final UnaryCallSettings.Builder - previewRealmUpdateSettings; - - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "idempotent", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("default", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listRealmsSettings = PagedCallSettings.newBuilder(LIST_REALMS_PAGE_STR_FACT); - - getRealmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createRealmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createRealmOperationSettings = OperationCallSettings.newBuilder(); - - deleteRealmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - deleteRealmOperationSettings = OperationCallSettings.newBuilder(); - - updateRealmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateRealmOperationSettings = OperationCallSettings.newBuilder(); - - previewRealmUpdateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listRealmsSettings, - getRealmSettings, - createRealmSettings, - deleteRealmSettings, - updateRealmSettings, - previewRealmUpdateSettings); - - initDefaults(this); - } - - private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - - builder - .listRealmsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .getRealmSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .createRealmSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .deleteRealmSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .updateRealmSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .previewRealmUpdateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .createRealmOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Realm.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .deleteRealmOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .updateRealmOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Realm.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - protected Builder(RealmsServiceStubSettings settings) { - super(settings); - - listRealmsSettings = settings.listRealmsSettings.toBuilder(); - getRealmSettings = settings.getRealmSettings.toBuilder(); - createRealmSettings = settings.createRealmSettings.toBuilder(); - createRealmOperationSettings = settings.createRealmOperationSettings.toBuilder(); - deleteRealmSettings = settings.deleteRealmSettings.toBuilder(); - deleteRealmOperationSettings = settings.deleteRealmOperationSettings.toBuilder(); - updateRealmSettings = settings.updateRealmSettings.toBuilder(); - updateRealmOperationSettings = settings.updateRealmOperationSettings.toBuilder(); - previewRealmUpdateSettings = settings.previewRealmUpdateSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listRealmsSettings, - getRealmSettings, - createRealmSettings, - deleteRealmSettings, - updateRealmSettings, - previewRealmUpdateSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listRealms. */ - public PagedCallSettings.Builder - listRealmsSettings() { - return listRealmsSettings; - } - - /** Returns the builder for the settings used for calls to getRealm. */ - public UnaryCallSettings.Builder getRealmSettings() { - return getRealmSettings; - } - - /** Returns the builder for the settings used for calls to createRealm. */ - public UnaryCallSettings.Builder createRealmSettings() { - return createRealmSettings; - } - - /** Returns the builder for the settings used for calls to createRealm. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createRealmOperationSettings() { - return createRealmOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteRealm. */ - public UnaryCallSettings.Builder deleteRealmSettings() { - return deleteRealmSettings; - } - - /** Returns the builder for the settings used for calls to deleteRealm. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteRealmOperationSettings() { - return deleteRealmOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateRealm. */ - public UnaryCallSettings.Builder updateRealmSettings() { - return updateRealmSettings; - } - - /** Returns the builder for the settings used for calls to updateRealm. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateRealmOperationSettings() { - return updateRealmOperationSettings; - } - - /** Returns the builder for the settings used for calls to previewRealmUpdate. */ - public UnaryCallSettings.Builder - previewRealmUpdateSettings() { - return previewRealmUpdateSettings; - } - - @Override - public RealmsServiceStubSettings build() throws IOException { - return new RealmsServiceStubSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClientTest.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClientTest.java deleted file mode 100644 index d349d508..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClientTest.java +++ /dev/null @@ -1,502 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.GameServerClustersServiceClient.ListGameServerClustersPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.Status; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@javax.annotation.Generated("by GAPIC") -public class GameServerClustersServiceClientTest { - private static MockGameServerClustersService mockGameServerClustersService; - private static MockGameServerDeploymentsService mockGameServerDeploymentsService; - private static MockRealmsService mockRealmsService; - private static MockServiceHelper serviceHelper; - private GameServerClustersServiceClient client; - private LocalChannelProvider channelProvider; - - @BeforeClass - public static void startStaticServer() { - mockGameServerClustersService = new MockGameServerClustersService(); - mockGameServerDeploymentsService = new MockGameServerDeploymentsService(); - mockRealmsService = new MockRealmsService(); - serviceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList( - mockGameServerClustersService, - mockGameServerDeploymentsService, - mockRealmsService)); - serviceHelper.start(); - } - - @AfterClass - public static void stopServer() { - serviceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); - GameServerClustersServiceSettings settings = - GameServerClustersServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = GameServerClustersServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - @SuppressWarnings("all") - public void listGameServerClustersTest() { - String nextPageToken = ""; - GameServerCluster gameServerClustersElement = GameServerCluster.newBuilder().build(); - List gameServerClusters = Arrays.asList(gameServerClustersElement); - ListGameServerClustersResponse expectedResponse = - ListGameServerClustersResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllGameServerClusters(gameServerClusters) - .build(); - mockGameServerClustersService.addResponse(expectedResponse); - - String formattedParent = - GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]"); - - ListGameServerClustersPagedResponse pagedListResponse = - client.listGameServerClusters(formattedParent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGameServerClustersList().get(0), resources.get(0)); - - List actualRequests = mockGameServerClustersService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGameServerClustersRequest actualRequest = - (ListGameServerClustersRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listGameServerClustersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerClustersService.addException(exception); - - try { - String formattedParent = - GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]"); - - client.listGameServerClusters(formattedParent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void getGameServerClusterTest() { - String name2 = "name2-1052831874"; - String etag = "etag3123477"; - String description = "description-1724546052"; - GameServerCluster expectedResponse = - GameServerCluster.newBuilder() - .setName(name2) - .setEtag(etag) - .setDescription(description) - .build(); - mockGameServerClustersService.addResponse(expectedResponse); - - String formattedName = - GameServerClustersServiceClient.formatGameServerClusterName( - "[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]"); - - GameServerCluster actualResponse = client.getGameServerCluster(formattedName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerClustersService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGameServerClusterRequest actualRequest = (GetGameServerClusterRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getGameServerClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerClustersService.addException(exception); - - try { - String formattedName = - GameServerClustersServiceClient.formatGameServerClusterName( - "[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]"); - - client.getGameServerCluster(formattedName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void createGameServerClusterTest() throws Exception { - String name = "name3373707"; - String etag = "etag3123477"; - String description = "description-1724546052"; - GameServerCluster expectedResponse = - GameServerCluster.newBuilder() - .setName(name) - .setEtag(etag) - .setDescription(description) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGameServerClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerClustersService.addResponse(resultOperation); - - String formattedParent = - GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]"); - String gameServerClusterId = "gameServerClusterId-858763025"; - GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build(); - - GameServerCluster actualResponse = - client - .createGameServerClusterAsync(formattedParent, gameServerClusterId, gameServerCluster) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerClustersService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGameServerClusterRequest actualRequest = - (CreateGameServerClusterRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertEquals(gameServerClusterId, actualRequest.getGameServerClusterId()); - Assert.assertEquals(gameServerCluster, actualRequest.getGameServerCluster()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createGameServerClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerClustersService.addException(exception); - - try { - String formattedParent = - GameServerClustersServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]"); - String gameServerClusterId = "gameServerClusterId-858763025"; - GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build(); - - client - .createGameServerClusterAsync(formattedParent, gameServerClusterId, gameServerCluster) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void deleteGameServerClusterTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGameServerClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerClustersService.addResponse(resultOperation); - - String formattedName = - GameServerClustersServiceClient.formatGameServerClusterName( - "[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]"); - - Empty actualResponse = client.deleteGameServerClusterAsync(formattedName).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerClustersService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGameServerClusterRequest actualRequest = - (DeleteGameServerClusterRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void deleteGameServerClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerClustersService.addException(exception); - - try { - String formattedName = - GameServerClustersServiceClient.formatGameServerClusterName( - "[PROJECT]", "[LOCATION]", "[REALM]", "[GAME_SERVER_CLUSTER]"); - - client.deleteGameServerClusterAsync(formattedName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void updateGameServerClusterTest() throws Exception { - String name = "name3373707"; - String etag = "etag3123477"; - String description = "description-1724546052"; - GameServerCluster expectedResponse = - GameServerCluster.newBuilder() - .setName(name) - .setEtag(etag) - .setDescription(description) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateGameServerClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerClustersService.addResponse(resultOperation); - - GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - GameServerCluster actualResponse = - client.updateGameServerClusterAsync(gameServerCluster, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerClustersService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateGameServerClusterRequest actualRequest = - (UpdateGameServerClusterRequest) actualRequests.get(0); - - Assert.assertEquals(gameServerCluster, actualRequest.getGameServerCluster()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateGameServerClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerClustersService.addException(exception); - - try { - GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateGameServerClusterAsync(gameServerCluster, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void previewCreateGameServerClusterTest() { - String etag = "etag3123477"; - PreviewCreateGameServerClusterResponse expectedResponse = - PreviewCreateGameServerClusterResponse.newBuilder().setEtag(etag).build(); - mockGameServerClustersService.addResponse(expectedResponse); - - PreviewCreateGameServerClusterRequest request = - PreviewCreateGameServerClusterRequest.newBuilder().build(); - - PreviewCreateGameServerClusterResponse actualResponse = - client.previewCreateGameServerCluster(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerClustersService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PreviewCreateGameServerClusterRequest actualRequest = - (PreviewCreateGameServerClusterRequest) actualRequests.get(0); - - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void previewCreateGameServerClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerClustersService.addException(exception); - - try { - PreviewCreateGameServerClusterRequest request = - PreviewCreateGameServerClusterRequest.newBuilder().build(); - - client.previewCreateGameServerCluster(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void previewDeleteGameServerClusterTest() { - String etag = "etag3123477"; - PreviewDeleteGameServerClusterResponse expectedResponse = - PreviewDeleteGameServerClusterResponse.newBuilder().setEtag(etag).build(); - mockGameServerClustersService.addResponse(expectedResponse); - - PreviewDeleteGameServerClusterRequest request = - PreviewDeleteGameServerClusterRequest.newBuilder().build(); - - PreviewDeleteGameServerClusterResponse actualResponse = - client.previewDeleteGameServerCluster(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerClustersService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PreviewDeleteGameServerClusterRequest actualRequest = - (PreviewDeleteGameServerClusterRequest) actualRequests.get(0); - - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void previewDeleteGameServerClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerClustersService.addException(exception); - - try { - PreviewDeleteGameServerClusterRequest request = - PreviewDeleteGameServerClusterRequest.newBuilder().build(); - - client.previewDeleteGameServerCluster(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void previewUpdateGameServerClusterTest() { - String etag = "etag3123477"; - PreviewUpdateGameServerClusterResponse expectedResponse = - PreviewUpdateGameServerClusterResponse.newBuilder().setEtag(etag).build(); - mockGameServerClustersService.addResponse(expectedResponse); - - PreviewUpdateGameServerClusterRequest request = - PreviewUpdateGameServerClusterRequest.newBuilder().build(); - - PreviewUpdateGameServerClusterResponse actualResponse = - client.previewUpdateGameServerCluster(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerClustersService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PreviewUpdateGameServerClusterRequest actualRequest = - (PreviewUpdateGameServerClusterRequest) actualRequests.get(0); - - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void previewUpdateGameServerClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerClustersService.addException(exception); - - try { - PreviewUpdateGameServerClusterRequest request = - PreviewUpdateGameServerClusterRequest.newBuilder().build(); - - client.previewUpdateGameServerCluster(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClientTest.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClientTest.java deleted file mode 100644 index 178bdda0..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClientTest.java +++ /dev/null @@ -1,545 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.GameServerDeploymentsServiceClient.ListGameServerDeploymentsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.Status; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@javax.annotation.Generated("by GAPIC") -public class GameServerDeploymentsServiceClientTest { - private static MockGameServerClustersService mockGameServerClustersService; - private static MockGameServerDeploymentsService mockGameServerDeploymentsService; - private static MockRealmsService mockRealmsService; - private static MockServiceHelper serviceHelper; - private GameServerDeploymentsServiceClient client; - private LocalChannelProvider channelProvider; - - @BeforeClass - public static void startStaticServer() { - mockGameServerClustersService = new MockGameServerClustersService(); - mockGameServerDeploymentsService = new MockGameServerDeploymentsService(); - mockRealmsService = new MockRealmsService(); - serviceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList( - mockGameServerClustersService, - mockGameServerDeploymentsService, - mockRealmsService)); - serviceHelper.start(); - } - - @AfterClass - public static void stopServer() { - serviceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); - GameServerDeploymentsServiceSettings settings = - GameServerDeploymentsServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = GameServerDeploymentsServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - @SuppressWarnings("all") - public void listGameServerDeploymentsTest() { - String nextPageToken = ""; - GameServerDeployment gameServerDeploymentsElement = GameServerDeployment.newBuilder().build(); - List gameServerDeployments = Arrays.asList(gameServerDeploymentsElement); - ListGameServerDeploymentsResponse expectedResponse = - ListGameServerDeploymentsResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllGameServerDeployments(gameServerDeployments) - .build(); - mockGameServerDeploymentsService.addResponse(expectedResponse); - - String formattedParent = - GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - - ListGameServerDeploymentsPagedResponse pagedListResponse = - client.listGameServerDeployments(formattedParent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGameServerDeploymentsList().get(0), resources.get(0)); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGameServerDeploymentsRequest actualRequest = - (ListGameServerDeploymentsRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listGameServerDeploymentsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - String formattedParent = - GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - - client.listGameServerDeployments(formattedParent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void getGameServerDeploymentTest() { - String name2 = "name2-1052831874"; - String etag = "etag3123477"; - String description = "description-1724546052"; - GameServerDeployment expectedResponse = - GameServerDeployment.newBuilder() - .setName(name2) - .setEtag(etag) - .setDescription(description) - .build(); - mockGameServerDeploymentsService.addResponse(expectedResponse); - - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - GameServerDeployment actualResponse = client.getGameServerDeployment(formattedName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGameServerDeploymentRequest actualRequest = - (GetGameServerDeploymentRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getGameServerDeploymentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - client.getGameServerDeployment(formattedName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void createGameServerDeploymentTest() throws Exception { - String name = "name3373707"; - String etag = "etag3123477"; - String description = "description-1724546052"; - GameServerDeployment expectedResponse = - GameServerDeployment.newBuilder() - .setName(name) - .setEtag(etag) - .setDescription(description) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createGameServerDeploymentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerDeploymentsService.addResponse(resultOperation); - - String formattedParent = - GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - String deploymentId = "deploymentId51250389"; - GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build(); - - GameServerDeployment actualResponse = - client - .createGameServerDeploymentAsync(formattedParent, deploymentId, gameServerDeployment) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGameServerDeploymentRequest actualRequest = - (CreateGameServerDeploymentRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertEquals(deploymentId, actualRequest.getDeploymentId()); - Assert.assertEquals(gameServerDeployment, actualRequest.getGameServerDeployment()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createGameServerDeploymentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - String formattedParent = - GameServerDeploymentsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - String deploymentId = "deploymentId51250389"; - GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build(); - - client - .createGameServerDeploymentAsync(formattedParent, deploymentId, gameServerDeployment) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void deleteGameServerDeploymentTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteGameServerDeploymentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerDeploymentsService.addResponse(resultOperation); - - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - Empty actualResponse = client.deleteGameServerDeploymentAsync(formattedName).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGameServerDeploymentRequest actualRequest = - (DeleteGameServerDeploymentRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void deleteGameServerDeploymentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - client.deleteGameServerDeploymentAsync(formattedName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void updateGameServerDeploymentTest() throws Exception { - String name = "name3373707"; - String etag = "etag3123477"; - String description = "description-1724546052"; - GameServerDeployment expectedResponse = - GameServerDeployment.newBuilder() - .setName(name) - .setEtag(etag) - .setDescription(description) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateGameServerDeploymentTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerDeploymentsService.addResponse(resultOperation); - - GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - GameServerDeployment actualResponse = - client.updateGameServerDeploymentAsync(gameServerDeployment, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateGameServerDeploymentRequest actualRequest = - (UpdateGameServerDeploymentRequest) actualRequests.get(0); - - Assert.assertEquals(gameServerDeployment, actualRequest.getGameServerDeployment()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateGameServerDeploymentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateGameServerDeploymentAsync(gameServerDeployment, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void getGameServerDeploymentRolloutTest() { - String name = "name3373707"; - String defaultGameServerConfig = "defaultGameServerConfig-1758159633"; - String etag = "etag3123477"; - GameServerDeploymentRollout expectedResponse = - GameServerDeploymentRollout.newBuilder() - .setName(name) - .setDefaultGameServerConfig(defaultGameServerConfig) - .setEtag(etag) - .build(); - mockGameServerDeploymentsService.addResponse(expectedResponse); - - GetGameServerDeploymentRolloutRequest request = - GetGameServerDeploymentRolloutRequest.newBuilder().build(); - - GameServerDeploymentRollout actualResponse = client.getGameServerDeploymentRollout(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGameServerDeploymentRolloutRequest actualRequest = - (GetGameServerDeploymentRolloutRequest) actualRequests.get(0); - - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getGameServerDeploymentRolloutExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - GetGameServerDeploymentRolloutRequest request = - GetGameServerDeploymentRolloutRequest.newBuilder().build(); - - client.getGameServerDeploymentRollout(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void updateGameServerDeploymentRolloutTest() { - String name = "name3373707"; - boolean done = true; - Operation expectedResponse = Operation.newBuilder().setName(name).setDone(done).build(); - mockGameServerDeploymentsService.addResponse(expectedResponse); - - UpdateGameServerDeploymentRolloutRequest request = - UpdateGameServerDeploymentRolloutRequest.newBuilder().build(); - - Operation actualResponse = client.updateGameServerDeploymentRollout(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateGameServerDeploymentRolloutRequest actualRequest = - (UpdateGameServerDeploymentRolloutRequest) actualRequests.get(0); - - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateGameServerDeploymentRolloutExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - UpdateGameServerDeploymentRolloutRequest request = - UpdateGameServerDeploymentRolloutRequest.newBuilder().build(); - - client.updateGameServerDeploymentRollout(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void previewGameServerDeploymentRolloutTest() { - String etag = "etag3123477"; - PreviewGameServerDeploymentRolloutResponse expectedResponse = - PreviewGameServerDeploymentRolloutResponse.newBuilder().setEtag(etag).build(); - mockGameServerDeploymentsService.addResponse(expectedResponse); - - PreviewGameServerDeploymentRolloutRequest request = - PreviewGameServerDeploymentRolloutRequest.newBuilder().build(); - - PreviewGameServerDeploymentRolloutResponse actualResponse = - client.previewGameServerDeploymentRollout(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PreviewGameServerDeploymentRolloutRequest actualRequest = - (PreviewGameServerDeploymentRolloutRequest) actualRequests.get(0); - - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void previewGameServerDeploymentRolloutExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - PreviewGameServerDeploymentRolloutRequest request = - PreviewGameServerDeploymentRolloutRequest.newBuilder().build(); - - client.previewGameServerDeploymentRollout(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void fetchDeploymentStateTest() { - FetchDeploymentStateResponse expectedResponse = - FetchDeploymentStateResponse.newBuilder().build(); - mockGameServerDeploymentsService.addResponse(expectedResponse); - - FetchDeploymentStateRequest request = FetchDeploymentStateRequest.newBuilder().build(); - - FetchDeploymentStateResponse actualResponse = client.fetchDeploymentState(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - FetchDeploymentStateRequest actualRequest = (FetchDeploymentStateRequest) actualRequests.get(0); - - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void fetchDeploymentStateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - FetchDeploymentStateRequest request = FetchDeploymentStateRequest.newBuilder().build(); - - client.fetchDeploymentState(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersService.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersService.java deleted file mode 100644 index 031e87b3..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersService.java +++ /dev/null @@ -1,57 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockGameServerClustersService implements MockGrpcService { - private final MockGameServerClustersServiceImpl serviceImpl; - - public MockGameServerClustersService() { - serviceImpl = new MockGameServerClustersServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersServiceImpl.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersServiceImpl.java deleted file mode 100644 index 8d43a14e..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersServiceImpl.java +++ /dev/null @@ -1,183 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.cloud.gaming.v1alpha.GameServerClustersServiceGrpc.GameServerClustersServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockGameServerClustersServiceImpl extends GameServerClustersServiceImplBase { - private List requests; - private Queue responses; - - public MockGameServerClustersServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listGameServerClusters( - ListGameServerClustersRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListGameServerClustersResponse) { - requests.add(request); - responseObserver.onNext((ListGameServerClustersResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getGameServerCluster( - GetGameServerClusterRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof GameServerCluster) { - requests.add(request); - responseObserver.onNext((GameServerCluster) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void createGameServerCluster( - CreateGameServerClusterRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void previewCreateGameServerCluster( - PreviewCreateGameServerClusterRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof PreviewCreateGameServerClusterResponse) { - requests.add(request); - responseObserver.onNext((PreviewCreateGameServerClusterResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void deleteGameServerCluster( - DeleteGameServerClusterRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void previewDeleteGameServerCluster( - PreviewDeleteGameServerClusterRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof PreviewDeleteGameServerClusterResponse) { - requests.add(request); - responseObserver.onNext((PreviewDeleteGameServerClusterResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateGameServerCluster( - UpdateGameServerClusterRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void previewUpdateGameServerCluster( - PreviewUpdateGameServerClusterRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof PreviewUpdateGameServerClusterResponse) { - requests.add(request); - responseObserver.onNext((PreviewUpdateGameServerClusterResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsService.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsService.java deleted file mode 100644 index 8c1d3d2a..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsService.java +++ /dev/null @@ -1,57 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockGameServerDeploymentsService implements MockGrpcService { - private final MockGameServerDeploymentsServiceImpl serviceImpl; - - public MockGameServerDeploymentsService() { - serviceImpl = new MockGameServerDeploymentsServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsServiceImpl.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsServiceImpl.java deleted file mode 100644 index fd098d6e..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsServiceImpl.java +++ /dev/null @@ -1,200 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.cloud.gaming.v1alpha.GameServerDeploymentsServiceGrpc.GameServerDeploymentsServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockGameServerDeploymentsServiceImpl extends GameServerDeploymentsServiceImplBase { - private List requests; - private Queue responses; - - public MockGameServerDeploymentsServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listGameServerDeployments( - ListGameServerDeploymentsRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListGameServerDeploymentsResponse) { - requests.add(request); - responseObserver.onNext((ListGameServerDeploymentsResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getGameServerDeployment( - GetGameServerDeploymentRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof GameServerDeployment) { - requests.add(request); - responseObserver.onNext((GameServerDeployment) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void createGameServerDeployment( - CreateGameServerDeploymentRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void deleteGameServerDeployment( - DeleteGameServerDeploymentRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateGameServerDeployment( - UpdateGameServerDeploymentRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getGameServerDeploymentRollout( - GetGameServerDeploymentRolloutRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof GameServerDeploymentRollout) { - requests.add(request); - responseObserver.onNext((GameServerDeploymentRollout) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateGameServerDeploymentRollout( - UpdateGameServerDeploymentRolloutRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void previewGameServerDeploymentRollout( - PreviewGameServerDeploymentRolloutRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof PreviewGameServerDeploymentRolloutResponse) { - requests.add(request); - responseObserver.onNext((PreviewGameServerDeploymentRolloutResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void fetchDeploymentState( - FetchDeploymentStateRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof FetchDeploymentStateResponse) { - requests.add(request); - responseObserver.onNext((FetchDeploymentStateResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsService.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsService.java deleted file mode 100644 index 1b4c251b..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsService.java +++ /dev/null @@ -1,57 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockRealmsService implements MockGrpcService { - private final MockRealmsServiceImpl serviceImpl; - - public MockRealmsService() { - serviceImpl = new MockRealmsServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsServiceImpl.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsServiceImpl.java deleted file mode 100644 index d55028a9..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsServiceImpl.java +++ /dev/null @@ -1,146 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.cloud.gaming.v1alpha.RealmsServiceGrpc.RealmsServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockRealmsServiceImpl extends RealmsServiceImplBase { - private List requests; - private Queue responses; - - public MockRealmsServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listRealms( - ListRealmsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListRealmsResponse) { - requests.add(request); - responseObserver.onNext((ListRealmsResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getRealm(GetRealmRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Realm) { - requests.add(request); - responseObserver.onNext((Realm) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void createRealm(CreateRealmRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void deleteRealm(DeleteRealmRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateRealm(UpdateRealmRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void previewRealmUpdate( - PreviewRealmUpdateRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof PreviewRealmUpdateResponse) { - requests.add(request); - responseObserver.onNext((PreviewRealmUpdateResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/RealmsServiceClientTest.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/RealmsServiceClientTest.java deleted file mode 100644 index 586f243a..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/RealmsServiceClientTest.java +++ /dev/null @@ -1,399 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.RealmsServiceClient.ListRealmsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.Status; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@javax.annotation.Generated("by GAPIC") -public class RealmsServiceClientTest { - private static MockGameServerClustersService mockGameServerClustersService; - private static MockGameServerDeploymentsService mockGameServerDeploymentsService; - private static MockRealmsService mockRealmsService; - private static MockServiceHelper serviceHelper; - private RealmsServiceClient client; - private LocalChannelProvider channelProvider; - - @BeforeClass - public static void startStaticServer() { - mockGameServerClustersService = new MockGameServerClustersService(); - mockGameServerDeploymentsService = new MockGameServerDeploymentsService(); - mockRealmsService = new MockRealmsService(); - serviceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList( - mockGameServerClustersService, - mockGameServerDeploymentsService, - mockRealmsService)); - serviceHelper.start(); - } - - @AfterClass - public static void stopServer() { - serviceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); - RealmsServiceSettings settings = - RealmsServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = RealmsServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - @SuppressWarnings("all") - public void listRealmsTest() { - String nextPageToken = ""; - Realm realmsElement = Realm.newBuilder().build(); - List realms = Arrays.asList(realmsElement); - ListRealmsResponse expectedResponse = - ListRealmsResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllRealms(realms) - .build(); - mockRealmsService.addResponse(expectedResponse); - - String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - - ListRealmsPagedResponse pagedListResponse = client.listRealms(formattedParent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRealmsList().get(0), resources.get(0)); - - List actualRequests = mockRealmsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRealmsRequest actualRequest = (ListRealmsRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listRealmsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockRealmsService.addException(exception); - - try { - String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - - client.listRealms(formattedParent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void getRealmTest() { - String name2 = "name2-1052831874"; - String timeZone = "timeZone36848094"; - String etag = "etag3123477"; - String description = "description-1724546052"; - Realm expectedResponse = - Realm.newBuilder() - .setName(name2) - .setTimeZone(timeZone) - .setEtag(etag) - .setDescription(description) - .build(); - mockRealmsService.addResponse(expectedResponse); - - String formattedName = - RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]"); - - Realm actualResponse = client.getRealm(formattedName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockRealmsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRealmRequest actualRequest = (GetRealmRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getRealmExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockRealmsService.addException(exception); - - try { - String formattedName = - RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]"); - - client.getRealm(formattedName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void createRealmTest() throws Exception { - String name = "name3373707"; - String timeZone = "timeZone36848094"; - String etag = "etag3123477"; - String description = "description-1724546052"; - Realm expectedResponse = - Realm.newBuilder() - .setName(name) - .setTimeZone(timeZone) - .setEtag(etag) - .setDescription(description) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createRealmTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockRealmsService.addResponse(resultOperation); - - String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - String realmId = "realmId-859416373"; - Realm realm = Realm.newBuilder().build(); - - Realm actualResponse = client.createRealmAsync(formattedParent, realmId, realm).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockRealmsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateRealmRequest actualRequest = (CreateRealmRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertEquals(realmId, actualRequest.getRealmId()); - Assert.assertEquals(realm, actualRequest.getRealm()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createRealmExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockRealmsService.addException(exception); - - try { - String formattedParent = RealmsServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - String realmId = "realmId-859416373"; - Realm realm = Realm.newBuilder().build(); - - client.createRealmAsync(formattedParent, realmId, realm).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void deleteRealmTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteRealmTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockRealmsService.addResponse(resultOperation); - - String formattedName = - RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]"); - - Empty actualResponse = client.deleteRealmAsync(formattedName).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockRealmsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRealmRequest actualRequest = (DeleteRealmRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void deleteRealmExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockRealmsService.addException(exception); - - try { - String formattedName = - RealmsServiceClient.formatRealmName("[PROJECT]", "[LOCATION]", "[REALM]"); - - client.deleteRealmAsync(formattedName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void updateRealmTest() throws Exception { - String name = "name3373707"; - String timeZone = "timeZone36848094"; - String etag = "etag3123477"; - String description = "description-1724546052"; - Realm expectedResponse = - Realm.newBuilder() - .setName(name) - .setTimeZone(timeZone) - .setEtag(etag) - .setDescription(description) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateRealmTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockRealmsService.addResponse(resultOperation); - - Realm realm = Realm.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Realm actualResponse = client.updateRealmAsync(realm, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockRealmsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateRealmRequest actualRequest = (UpdateRealmRequest) actualRequests.get(0); - - Assert.assertEquals(realm, actualRequest.getRealm()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateRealmExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockRealmsService.addException(exception); - - try { - Realm realm = Realm.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateRealmAsync(realm, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void previewRealmUpdateTest() { - String etag = "etag3123477"; - PreviewRealmUpdateResponse expectedResponse = - PreviewRealmUpdateResponse.newBuilder().setEtag(etag).build(); - mockRealmsService.addResponse(expectedResponse); - - PreviewRealmUpdateRequest request = PreviewRealmUpdateRequest.newBuilder().build(); - - PreviewRealmUpdateResponse actualResponse = client.previewRealmUpdate(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockRealmsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PreviewRealmUpdateRequest actualRequest = (PreviewRealmUpdateRequest) actualRequests.get(0); - - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void previewRealmUpdateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockRealmsService.addException(exception); - - try { - PreviewRealmUpdateRequest request = PreviewRealmUpdateRequest.newBuilder().build(); - - client.previewRealmUpdate(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } -} diff --git a/grpc-google-cloud-gameservices-v1alpha/pom.xml b/grpc-google-cloud-gameservices-v1alpha/pom.xml deleted file mode 100644 index df04081b..00000000 --- a/grpc-google-cloud-gameservices-v1alpha/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-gameservices-v1alpha - 0.19.2-SNAPSHOT - grpc-google-cloud-gameservices-v1alpha - GRPC library for grpc-google-cloud-gameservices-v1alpha - - com.google.cloud - google-cloud-game-servers-parent - 0.19.2-SNAPSHOT - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-gameservices-v1alpha - - - com.google.api.grpc - proto-google-common-protos - - - com.google.guava - guava - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceGrpc.java deleted file mode 100644 index 1521be1d..00000000 --- a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceGrpc.java +++ /dev/null @@ -1,1363 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - * - * - *
- * The game server cluster maps to Kubernetes clusters running Agones and is
- * used to manage fleets within clusters.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/cloud/gaming/v1alpha/game_server_clusters_service.proto") -public final class GameServerClustersServiceGrpc { - - private GameServerClustersServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gaming.v1alpha.GameServerClustersService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListGameServerClustersMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> - METHOD_LIST_GAME_SERVER_CLUSTERS = getListGameServerClustersMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> - getListGameServerClustersMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> - getListGameServerClustersMethod() { - return getListGameServerClustersMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> - getListGameServerClustersMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> - getListGameServerClustersMethod; - if ((getListGameServerClustersMethod = - GameServerClustersServiceGrpc.getListGameServerClustersMethod) - == null) { - synchronized (GameServerClustersServiceGrpc.class) { - if ((getListGameServerClustersMethod = - GameServerClustersServiceGrpc.getListGameServerClustersMethod) - == null) { - GameServerClustersServiceGrpc.getListGameServerClustersMethod = - getListGameServerClustersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService", - "ListGameServerClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerClustersServiceMethodDescriptorSupplier( - "ListGameServerClusters")) - .build(); - } - } - } - return getListGameServerClustersMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetGameServerClusterMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.GameServerCluster> - METHOD_GET_GAME_SERVER_CLUSTER = getGetGameServerClusterMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.GameServerCluster> - getGetGameServerClusterMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.GameServerCluster> - getGetGameServerClusterMethod() { - return getGetGameServerClusterMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.GameServerCluster> - getGetGameServerClusterMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.GameServerCluster> - getGetGameServerClusterMethod; - if ((getGetGameServerClusterMethod = - GameServerClustersServiceGrpc.getGetGameServerClusterMethod) - == null) { - synchronized (GameServerClustersServiceGrpc.class) { - if ((getGetGameServerClusterMethod = - GameServerClustersServiceGrpc.getGetGameServerClusterMethod) - == null) { - GameServerClustersServiceGrpc.getGetGameServerClusterMethod = - getGetGameServerClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService", - "GetGameServerCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GameServerCluster - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerClustersServiceMethodDescriptorSupplier( - "GetGameServerCluster")) - .build(); - } - } - } - return getGetGameServerClusterMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateGameServerClusterMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest, - com.google.longrunning.Operation> - METHOD_CREATE_GAME_SERVER_CLUSTER = getCreateGameServerClusterMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest, - com.google.longrunning.Operation> - getCreateGameServerClusterMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest, - com.google.longrunning.Operation> - getCreateGameServerClusterMethod() { - return getCreateGameServerClusterMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest, - com.google.longrunning.Operation> - getCreateGameServerClusterMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest, - com.google.longrunning.Operation> - getCreateGameServerClusterMethod; - if ((getCreateGameServerClusterMethod = - GameServerClustersServiceGrpc.getCreateGameServerClusterMethod) - == null) { - synchronized (GameServerClustersServiceGrpc.class) { - if ((getCreateGameServerClusterMethod = - GameServerClustersServiceGrpc.getCreateGameServerClusterMethod) - == null) { - GameServerClustersServiceGrpc.getCreateGameServerClusterMethod = - getCreateGameServerClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService", - "CreateGameServerCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerClustersServiceMethodDescriptorSupplier( - "CreateGameServerCluster")) - .build(); - } - } - } - return getCreateGameServerClusterMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPreviewCreateGameServerClusterMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> - METHOD_PREVIEW_CREATE_GAME_SERVER_CLUSTER = getPreviewCreateGameServerClusterMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> - getPreviewCreateGameServerClusterMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> - getPreviewCreateGameServerClusterMethod() { - return getPreviewCreateGameServerClusterMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> - getPreviewCreateGameServerClusterMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> - getPreviewCreateGameServerClusterMethod; - if ((getPreviewCreateGameServerClusterMethod = - GameServerClustersServiceGrpc.getPreviewCreateGameServerClusterMethod) - == null) { - synchronized (GameServerClustersServiceGrpc.class) { - if ((getPreviewCreateGameServerClusterMethod = - GameServerClustersServiceGrpc.getPreviewCreateGameServerClusterMethod) - == null) { - GameServerClustersServiceGrpc.getPreviewCreateGameServerClusterMethod = - getPreviewCreateGameServerClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService", - "PreviewCreateGameServerCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerClustersServiceMethodDescriptorSupplier( - "PreviewCreateGameServerCluster")) - .build(); - } - } - } - return getPreviewCreateGameServerClusterMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteGameServerClusterMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest, - com.google.longrunning.Operation> - METHOD_DELETE_GAME_SERVER_CLUSTER = getDeleteGameServerClusterMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest, - com.google.longrunning.Operation> - getDeleteGameServerClusterMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest, - com.google.longrunning.Operation> - getDeleteGameServerClusterMethod() { - return getDeleteGameServerClusterMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest, - com.google.longrunning.Operation> - getDeleteGameServerClusterMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest, - com.google.longrunning.Operation> - getDeleteGameServerClusterMethod; - if ((getDeleteGameServerClusterMethod = - GameServerClustersServiceGrpc.getDeleteGameServerClusterMethod) - == null) { - synchronized (GameServerClustersServiceGrpc.class) { - if ((getDeleteGameServerClusterMethod = - GameServerClustersServiceGrpc.getDeleteGameServerClusterMethod) - == null) { - GameServerClustersServiceGrpc.getDeleteGameServerClusterMethod = - getDeleteGameServerClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService", - "DeleteGameServerCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerClustersServiceMethodDescriptorSupplier( - "DeleteGameServerCluster")) - .build(); - } - } - } - return getDeleteGameServerClusterMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPreviewDeleteGameServerClusterMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> - METHOD_PREVIEW_DELETE_GAME_SERVER_CLUSTER = getPreviewDeleteGameServerClusterMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> - getPreviewDeleteGameServerClusterMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> - getPreviewDeleteGameServerClusterMethod() { - return getPreviewDeleteGameServerClusterMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> - getPreviewDeleteGameServerClusterMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> - getPreviewDeleteGameServerClusterMethod; - if ((getPreviewDeleteGameServerClusterMethod = - GameServerClustersServiceGrpc.getPreviewDeleteGameServerClusterMethod) - == null) { - synchronized (GameServerClustersServiceGrpc.class) { - if ((getPreviewDeleteGameServerClusterMethod = - GameServerClustersServiceGrpc.getPreviewDeleteGameServerClusterMethod) - == null) { - GameServerClustersServiceGrpc.getPreviewDeleteGameServerClusterMethod = - getPreviewDeleteGameServerClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService", - "PreviewDeleteGameServerCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerClustersServiceMethodDescriptorSupplier( - "PreviewDeleteGameServerCluster")) - .build(); - } - } - } - return getPreviewDeleteGameServerClusterMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateGameServerClusterMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest, - com.google.longrunning.Operation> - METHOD_UPDATE_GAME_SERVER_CLUSTER = getUpdateGameServerClusterMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest, - com.google.longrunning.Operation> - getUpdateGameServerClusterMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest, - com.google.longrunning.Operation> - getUpdateGameServerClusterMethod() { - return getUpdateGameServerClusterMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest, - com.google.longrunning.Operation> - getUpdateGameServerClusterMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest, - com.google.longrunning.Operation> - getUpdateGameServerClusterMethod; - if ((getUpdateGameServerClusterMethod = - GameServerClustersServiceGrpc.getUpdateGameServerClusterMethod) - == null) { - synchronized (GameServerClustersServiceGrpc.class) { - if ((getUpdateGameServerClusterMethod = - GameServerClustersServiceGrpc.getUpdateGameServerClusterMethod) - == null) { - GameServerClustersServiceGrpc.getUpdateGameServerClusterMethod = - getUpdateGameServerClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService", - "UpdateGameServerCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerClustersServiceMethodDescriptorSupplier( - "UpdateGameServerCluster")) - .build(); - } - } - } - return getUpdateGameServerClusterMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPreviewUpdateGameServerClusterMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> - METHOD_PREVIEW_UPDATE_GAME_SERVER_CLUSTER = getPreviewUpdateGameServerClusterMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> - getPreviewUpdateGameServerClusterMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> - getPreviewUpdateGameServerClusterMethod() { - return getPreviewUpdateGameServerClusterMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> - getPreviewUpdateGameServerClusterMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> - getPreviewUpdateGameServerClusterMethod; - if ((getPreviewUpdateGameServerClusterMethod = - GameServerClustersServiceGrpc.getPreviewUpdateGameServerClusterMethod) - == null) { - synchronized (GameServerClustersServiceGrpc.class) { - if ((getPreviewUpdateGameServerClusterMethod = - GameServerClustersServiceGrpc.getPreviewUpdateGameServerClusterMethod) - == null) { - GameServerClustersServiceGrpc.getPreviewUpdateGameServerClusterMethod = - getPreviewUpdateGameServerClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerClustersService", - "PreviewUpdateGameServerCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerClustersServiceMethodDescriptorSupplier( - "PreviewUpdateGameServerCluster")) - .build(); - } - } - } - return getPreviewUpdateGameServerClusterMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static GameServerClustersServiceStub newStub(io.grpc.Channel channel) { - return new GameServerClustersServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GameServerClustersServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new GameServerClustersServiceBlockingStub(channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GameServerClustersServiceFutureStub newFutureStub(io.grpc.Channel channel) { - return new GameServerClustersServiceFutureStub(channel); - } - - /** - * - * - *
-   * The game server cluster maps to Kubernetes clusters running Agones and is
-   * used to manage fleets within clusters.
-   * 
- */ - public abstract static class GameServerClustersServiceImplBase - implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists game server clusters in a given project and location.
-     * 
- */ - public void listGameServerClusters( - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getListGameServerClustersMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single game server cluster.
-     * 
- */ - public void getGameServerCluster( - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getGetGameServerClusterMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Creates a new game server cluster in a given project and location.
-     * 
- */ - public void createGameServerCluster( - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateGameServerClusterMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Previews creation of a new game server cluster in a given project and
-     * location.
-     * 
- */ - public void previewCreateGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> - responseObserver) { - asyncUnimplementedUnaryCall( - getPreviewCreateGameServerClusterMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single game server cluster.
-     * 
- */ - public void deleteGameServerCluster( - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteGameServerClusterMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Previews deletion of a single game server cluster.
-     * 
- */ - public void previewDeleteGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> - responseObserver) { - asyncUnimplementedUnaryCall( - getPreviewDeleteGameServerClusterMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Patches a single game server cluster.
-     * 
- */ - public void updateGameServerCluster( - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateGameServerClusterMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Previews updating a GameServerCluster.
-     * 
- */ - public void previewUpdateGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> - responseObserver) { - asyncUnimplementedUnaryCall( - getPreviewUpdateGameServerClusterMethodHelper(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListGameServerClustersMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse>( - this, METHODID_LIST_GAME_SERVER_CLUSTERS))) - .addMethod( - getGetGameServerClusterMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.GameServerCluster>( - this, METHODID_GET_GAME_SERVER_CLUSTER))) - .addMethod( - getCreateGameServerClusterMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_GAME_SERVER_CLUSTER))) - .addMethod( - getPreviewCreateGameServerClusterMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse>( - this, METHODID_PREVIEW_CREATE_GAME_SERVER_CLUSTER))) - .addMethod( - getDeleteGameServerClusterMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_GAME_SERVER_CLUSTER))) - .addMethod( - getPreviewDeleteGameServerClusterMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse>( - this, METHODID_PREVIEW_DELETE_GAME_SERVER_CLUSTER))) - .addMethod( - getUpdateGameServerClusterMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_GAME_SERVER_CLUSTER))) - .addMethod( - getPreviewUpdateGameServerClusterMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse>( - this, METHODID_PREVIEW_UPDATE_GAME_SERVER_CLUSTER))) - .build(); - } - } - - /** - * - * - *
-   * The game server cluster maps to Kubernetes clusters running Agones and is
-   * used to manage fleets within clusters.
-   * 
- */ - public static final class GameServerClustersServiceStub - extends io.grpc.stub.AbstractStub { - private GameServerClustersServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private GameServerClustersServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GameServerClustersServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GameServerClustersServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists game server clusters in a given project and location.
-     * 
- */ - public void listGameServerClusters( - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListGameServerClustersMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single game server cluster.
-     * 
- */ - public void getGameServerCluster( - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetGameServerClusterMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new game server cluster in a given project and location.
-     * 
- */ - public void createGameServerCluster( - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateGameServerClusterMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Previews creation of a new game server cluster in a given project and
-     * location.
-     * 
- */ - public void previewCreateGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPreviewCreateGameServerClusterMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single game server cluster.
-     * 
- */ - public void deleteGameServerCluster( - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteGameServerClusterMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Previews deletion of a single game server cluster.
-     * 
- */ - public void previewDeleteGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPreviewDeleteGameServerClusterMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Patches a single game server cluster.
-     * 
- */ - public void updateGameServerCluster( - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateGameServerClusterMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Previews updating a GameServerCluster.
-     * 
- */ - public void previewUpdateGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPreviewUpdateGameServerClusterMethodHelper(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The game server cluster maps to Kubernetes clusters running Agones and is
-   * used to manage fleets within clusters.
-   * 
- */ - public static final class GameServerClustersServiceBlockingStub - extends io.grpc.stub.AbstractStub { - private GameServerClustersServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private GameServerClustersServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GameServerClustersServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GameServerClustersServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists game server clusters in a given project and location.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse listGameServerClusters( - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest request) { - return blockingUnaryCall( - getChannel(), getListGameServerClustersMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single game server cluster.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster( - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest request) { - return blockingUnaryCall( - getChannel(), getGetGameServerClusterMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new game server cluster in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createGameServerCluster( - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest request) { - return blockingUnaryCall( - getChannel(), getCreateGameServerClusterMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Previews creation of a new game server cluster in a given project and
-     * location.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - previewCreateGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest request) { - return blockingUnaryCall( - getChannel(), getPreviewCreateGameServerClusterMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single game server cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteGameServerCluster( - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteGameServerClusterMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Previews deletion of a single game server cluster.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - previewDeleteGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest request) { - return blockingUnaryCall( - getChannel(), getPreviewDeleteGameServerClusterMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Patches a single game server cluster.
-     * 
- */ - public com.google.longrunning.Operation updateGameServerCluster( - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest request) { - return blockingUnaryCall( - getChannel(), getUpdateGameServerClusterMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Previews updating a GameServerCluster.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - previewUpdateGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest request) { - return blockingUnaryCall( - getChannel(), getPreviewUpdateGameServerClusterMethodHelper(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The game server cluster maps to Kubernetes clusters running Agones and is
-   * used to manage fleets within clusters.
-   * 
- */ - public static final class GameServerClustersServiceFutureStub - extends io.grpc.stub.AbstractStub { - private GameServerClustersServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private GameServerClustersServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GameServerClustersServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GameServerClustersServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists game server clusters in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> - listGameServerClusters( - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest request) { - return futureUnaryCall( - getChannel().newCall(getListGameServerClustersMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single game server cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.GameServerCluster> - getGameServerCluster(com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetGameServerClusterMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new game server cluster in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGameServerCluster( - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateGameServerClusterMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Previews creation of a new game server cluster in a given project and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> - previewCreateGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getPreviewCreateGameServerClusterMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Deletes a single game server cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGameServerCluster( - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getDeleteGameServerClusterMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Previews deletion of a single game server cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> - previewDeleteGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getPreviewDeleteGameServerClusterMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Patches a single game server cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateGameServerCluster( - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateGameServerClusterMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Previews updating a GameServerCluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> - previewUpdateGameServerCluster( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getPreviewUpdateGameServerClusterMethodHelper(), getCallOptions()), - request); - } - } - - private static final int METHODID_LIST_GAME_SERVER_CLUSTERS = 0; - private static final int METHODID_GET_GAME_SERVER_CLUSTER = 1; - private static final int METHODID_CREATE_GAME_SERVER_CLUSTER = 2; - private static final int METHODID_PREVIEW_CREATE_GAME_SERVER_CLUSTER = 3; - private static final int METHODID_DELETE_GAME_SERVER_CLUSTER = 4; - private static final int METHODID_PREVIEW_DELETE_GAME_SERVER_CLUSTER = 5; - private static final int METHODID_UPDATE_GAME_SERVER_CLUSTER = 6; - private static final int METHODID_PREVIEW_UPDATE_GAME_SERVER_CLUSTER = 7; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final GameServerClustersServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GameServerClustersServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_GAME_SERVER_CLUSTERS: - serviceImpl.listGameServerClusters( - (com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse>) - responseObserver); - break; - case METHODID_GET_GAME_SERVER_CLUSTER: - serviceImpl.getGameServerCluster( - (com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_GAME_SERVER_CLUSTER: - serviceImpl.createGameServerCluster( - (com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PREVIEW_CREATE_GAME_SERVER_CLUSTER: - serviceImpl.previewCreateGameServerCluster( - (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse>) - responseObserver); - break; - case METHODID_DELETE_GAME_SERVER_CLUSTER: - serviceImpl.deleteGameServerCluster( - (com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PREVIEW_DELETE_GAME_SERVER_CLUSTER: - serviceImpl.previewDeleteGameServerCluster( - (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse>) - responseObserver); - break; - case METHODID_UPDATE_GAME_SERVER_CLUSTER: - serviceImpl.updateGameServerCluster( - (com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PREVIEW_UPDATE_GAME_SERVER_CLUSTER: - serviceImpl.previewUpdateGameServerCluster( - (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class GameServerClustersServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GameServerClustersServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClustersServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GameServerClustersService"); - } - } - - private static final class GameServerClustersServiceFileDescriptorSupplier - extends GameServerClustersServiceBaseDescriptorSupplier { - GameServerClustersServiceFileDescriptorSupplier() {} - } - - private static final class GameServerClustersServiceMethodDescriptorSupplier - extends GameServerClustersServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GameServerClustersServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (GameServerClustersServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GameServerClustersServiceFileDescriptorSupplier()) - .addMethod(getListGameServerClustersMethodHelper()) - .addMethod(getGetGameServerClusterMethodHelper()) - .addMethod(getCreateGameServerClusterMethodHelper()) - .addMethod(getPreviewCreateGameServerClusterMethodHelper()) - .addMethod(getDeleteGameServerClusterMethodHelper()) - .addMethod(getPreviewDeleteGameServerClusterMethodHelper()) - .addMethod(getUpdateGameServerClusterMethodHelper()) - .addMethod(getPreviewUpdateGameServerClusterMethodHelper()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceGrpc.java deleted file mode 100644 index 4c45be12..00000000 --- a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceGrpc.java +++ /dev/null @@ -1,805 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - * - * - *
- * The game server config is used to configure the set of game
- * servers in Agones Fleets.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/cloud/gaming/v1alpha/game_server_configs_service.proto") -public final class GameServerConfigsServiceGrpc { - - private GameServerConfigsServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gaming.v1alpha.GameServerConfigsService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListGameServerConfigsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> - METHOD_LIST_GAME_SERVER_CONFIGS = getListGameServerConfigsMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> - getListGameServerConfigsMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> - getListGameServerConfigsMethod() { - return getListGameServerConfigsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> - getListGameServerConfigsMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> - getListGameServerConfigsMethod; - if ((getListGameServerConfigsMethod = - GameServerConfigsServiceGrpc.getListGameServerConfigsMethod) - == null) { - synchronized (GameServerConfigsServiceGrpc.class) { - if ((getListGameServerConfigsMethod = - GameServerConfigsServiceGrpc.getListGameServerConfigsMethod) - == null) { - GameServerConfigsServiceGrpc.getListGameServerConfigsMethod = - getListGameServerConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerConfigsService", - "ListGameServerConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerConfigsServiceMethodDescriptorSupplier( - "ListGameServerConfigs")) - .build(); - } - } - } - return getListGameServerConfigsMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetGameServerConfigMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, - com.google.cloud.gaming.v1alpha.GameServerConfig> - METHOD_GET_GAME_SERVER_CONFIG = getGetGameServerConfigMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, - com.google.cloud.gaming.v1alpha.GameServerConfig> - getGetGameServerConfigMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, - com.google.cloud.gaming.v1alpha.GameServerConfig> - getGetGameServerConfigMethod() { - return getGetGameServerConfigMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, - com.google.cloud.gaming.v1alpha.GameServerConfig> - getGetGameServerConfigMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, - com.google.cloud.gaming.v1alpha.GameServerConfig> - getGetGameServerConfigMethod; - if ((getGetGameServerConfigMethod = GameServerConfigsServiceGrpc.getGetGameServerConfigMethod) - == null) { - synchronized (GameServerConfigsServiceGrpc.class) { - if ((getGetGameServerConfigMethod = - GameServerConfigsServiceGrpc.getGetGameServerConfigMethod) - == null) { - GameServerConfigsServiceGrpc.getGetGameServerConfigMethod = - getGetGameServerConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerConfigsService", - "GetGameServerConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GameServerConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerConfigsServiceMethodDescriptorSupplier( - "GetGameServerConfig")) - .build(); - } - } - } - return getGetGameServerConfigMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateGameServerConfigMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, - com.google.longrunning.Operation> - METHOD_CREATE_GAME_SERVER_CONFIG = getCreateGameServerConfigMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, - com.google.longrunning.Operation> - getCreateGameServerConfigMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, - com.google.longrunning.Operation> - getCreateGameServerConfigMethod() { - return getCreateGameServerConfigMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, - com.google.longrunning.Operation> - getCreateGameServerConfigMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, - com.google.longrunning.Operation> - getCreateGameServerConfigMethod; - if ((getCreateGameServerConfigMethod = - GameServerConfigsServiceGrpc.getCreateGameServerConfigMethod) - == null) { - synchronized (GameServerConfigsServiceGrpc.class) { - if ((getCreateGameServerConfigMethod = - GameServerConfigsServiceGrpc.getCreateGameServerConfigMethod) - == null) { - GameServerConfigsServiceGrpc.getCreateGameServerConfigMethod = - getCreateGameServerConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerConfigsService", - "CreateGameServerConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerConfigsServiceMethodDescriptorSupplier( - "CreateGameServerConfig")) - .build(); - } - } - } - return getCreateGameServerConfigMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteGameServerConfigMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, - com.google.longrunning.Operation> - METHOD_DELETE_GAME_SERVER_CONFIG = getDeleteGameServerConfigMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, - com.google.longrunning.Operation> - getDeleteGameServerConfigMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, - com.google.longrunning.Operation> - getDeleteGameServerConfigMethod() { - return getDeleteGameServerConfigMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, - com.google.longrunning.Operation> - getDeleteGameServerConfigMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, - com.google.longrunning.Operation> - getDeleteGameServerConfigMethod; - if ((getDeleteGameServerConfigMethod = - GameServerConfigsServiceGrpc.getDeleteGameServerConfigMethod) - == null) { - synchronized (GameServerConfigsServiceGrpc.class) { - if ((getDeleteGameServerConfigMethod = - GameServerConfigsServiceGrpc.getDeleteGameServerConfigMethod) - == null) { - GameServerConfigsServiceGrpc.getDeleteGameServerConfigMethod = - getDeleteGameServerConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerConfigsService", - "DeleteGameServerConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerConfigsServiceMethodDescriptorSupplier( - "DeleteGameServerConfig")) - .build(); - } - } - } - return getDeleteGameServerConfigMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static GameServerConfigsServiceStub newStub(io.grpc.Channel channel) { - return new GameServerConfigsServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GameServerConfigsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new GameServerConfigsServiceBlockingStub(channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GameServerConfigsServiceFutureStub newFutureStub(io.grpc.Channel channel) { - return new GameServerConfigsServiceFutureStub(channel); - } - - /** - * - * - *
-   * The game server config is used to configure the set of game
-   * servers in Agones Fleets.
-   * 
- */ - public abstract static class GameServerConfigsServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists game server configs in a given project, location, and game server
-     * deployment.
-     * 
- */ - public void listGameServerConfigs( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getListGameServerConfigsMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single game server config.
-     * 
- */ - public void getGameServerConfig( - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getGetGameServerConfigMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Creates a new game server config in a given project, location, and game
-     * server deployment. Game server configs are immutable. A game server config
-     * is not applied until it is rolled out which is managed
-     * by updating the game server rollout resource.
-     * 
- */ - public void createGameServerConfig( - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateGameServerConfigMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single game server config. The deletion will fail if the game
-     * server config is referenced in a game server rollout.
-     * 
- */ - public void deleteGameServerConfig( - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteGameServerConfigMethodHelper(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListGameServerConfigsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse>( - this, METHODID_LIST_GAME_SERVER_CONFIGS))) - .addMethod( - getGetGameServerConfigMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, - com.google.cloud.gaming.v1alpha.GameServerConfig>( - this, METHODID_GET_GAME_SERVER_CONFIG))) - .addMethod( - getCreateGameServerConfigMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_GAME_SERVER_CONFIG))) - .addMethod( - getDeleteGameServerConfigMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_GAME_SERVER_CONFIG))) - .build(); - } - } - - /** - * - * - *
-   * The game server config is used to configure the set of game
-   * servers in Agones Fleets.
-   * 
- */ - public static final class GameServerConfigsServiceStub - extends io.grpc.stub.AbstractStub { - private GameServerConfigsServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private GameServerConfigsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GameServerConfigsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GameServerConfigsServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists game server configs in a given project, location, and game server
-     * deployment.
-     * 
- */ - public void listGameServerConfigs( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListGameServerConfigsMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single game server config.
-     * 
- */ - public void getGameServerConfig( - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetGameServerConfigMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new game server config in a given project, location, and game
-     * server deployment. Game server configs are immutable. A game server config
-     * is not applied until it is rolled out which is managed
-     * by updating the game server rollout resource.
-     * 
- */ - public void createGameServerConfig( - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateGameServerConfigMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single game server config. The deletion will fail if the game
-     * server config is referenced in a game server rollout.
-     * 
- */ - public void deleteGameServerConfig( - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteGameServerConfigMethodHelper(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The game server config is used to configure the set of game
-   * servers in Agones Fleets.
-   * 
- */ - public static final class GameServerConfigsServiceBlockingStub - extends io.grpc.stub.AbstractStub { - private GameServerConfigsServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private GameServerConfigsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GameServerConfigsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GameServerConfigsServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists game server configs in a given project, location, and game server
-     * deployment.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse listGameServerConfigs( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest request) { - return blockingUnaryCall( - getChannel(), getListGameServerConfigsMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single game server config.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfig( - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest request) { - return blockingUnaryCall( - getChannel(), getGetGameServerConfigMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new game server config in a given project, location, and game
-     * server deployment. Game server configs are immutable. A game server config
-     * is not applied until it is rolled out which is managed
-     * by updating the game server rollout resource.
-     * 
- */ - public com.google.longrunning.Operation createGameServerConfig( - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest request) { - return blockingUnaryCall( - getChannel(), getCreateGameServerConfigMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single game server config. The deletion will fail if the game
-     * server config is referenced in a game server rollout.
-     * 
- */ - public com.google.longrunning.Operation deleteGameServerConfig( - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteGameServerConfigMethodHelper(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The game server config is used to configure the set of game
-   * servers in Agones Fleets.
-   * 
- */ - public static final class GameServerConfigsServiceFutureStub - extends io.grpc.stub.AbstractStub { - private GameServerConfigsServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private GameServerConfigsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GameServerConfigsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GameServerConfigsServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists game server configs in a given project, location, and game server
-     * deployment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> - listGameServerConfigs( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest request) { - return futureUnaryCall( - getChannel().newCall(getListGameServerConfigsMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single game server config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.GameServerConfig> - getGameServerConfig(com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetGameServerConfigMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new game server config in a given project, location, and game
-     * server deployment. Game server configs are immutable. A game server config
-     * is not applied until it is rolled out which is managed
-     * by updating the game server rollout resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGameServerConfig( - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateGameServerConfigMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single game server config. The deletion will fail if the game
-     * server config is referenced in a game server rollout.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGameServerConfig( - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest request) { - return futureUnaryCall( - getChannel().newCall(getDeleteGameServerConfigMethodHelper(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_GAME_SERVER_CONFIGS = 0; - private static final int METHODID_GET_GAME_SERVER_CONFIG = 1; - private static final int METHODID_CREATE_GAME_SERVER_CONFIG = 2; - private static final int METHODID_DELETE_GAME_SERVER_CONFIG = 3; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final GameServerConfigsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GameServerConfigsServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_GAME_SERVER_CONFIGS: - serviceImpl.listGameServerConfigs( - (com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse>) - responseObserver); - break; - case METHODID_GET_GAME_SERVER_CONFIG: - serviceImpl.getGameServerConfig( - (com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_GAME_SERVER_CONFIG: - serviceImpl.createGameServerConfig( - (com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GAME_SERVER_CONFIG: - serviceImpl.deleteGameServerConfig( - (com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class GameServerConfigsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GameServerConfigsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigsServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GameServerConfigsService"); - } - } - - private static final class GameServerConfigsServiceFileDescriptorSupplier - extends GameServerConfigsServiceBaseDescriptorSupplier { - GameServerConfigsServiceFileDescriptorSupplier() {} - } - - private static final class GameServerConfigsServiceMethodDescriptorSupplier - extends GameServerConfigsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GameServerConfigsServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (GameServerConfigsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GameServerConfigsServiceFileDescriptorSupplier()) - .addMethod(getListGameServerConfigsMethodHelper()) - .addMethod(getGetGameServerConfigMethodHelper()) - .addMethod(getCreateGameServerConfigMethodHelper()) - .addMethod(getDeleteGameServerConfigMethodHelper()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc.java deleted file mode 100644 index 4b02ca13..00000000 --- a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc.java +++ /dev/null @@ -1,1522 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - * - * - *
- * The game server deployment is used to control the deployment of game server
- * software to Agones fleets.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/cloud/gaming/v1alpha/game_server_deployments_service.proto") -public final class GameServerDeploymentsServiceGrpc { - - private GameServerDeploymentsServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.gaming.v1alpha.GameServerDeploymentsService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListGameServerDeploymentsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> - METHOD_LIST_GAME_SERVER_DEPLOYMENTS = getListGameServerDeploymentsMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> - getListGameServerDeploymentsMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> - getListGameServerDeploymentsMethod() { - return getListGameServerDeploymentsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> - getListGameServerDeploymentsMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> - getListGameServerDeploymentsMethod; - if ((getListGameServerDeploymentsMethod = - GameServerDeploymentsServiceGrpc.getListGameServerDeploymentsMethod) - == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getListGameServerDeploymentsMethod = - GameServerDeploymentsServiceGrpc.getListGameServerDeploymentsMethod) - == null) { - GameServerDeploymentsServiceGrpc.getListGameServerDeploymentsMethod = - getListGameServerDeploymentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "ListGameServerDeployments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier( - "ListGameServerDeployments")) - .build(); - } - } - } - return getListGameServerDeploymentsMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetGameServerDeploymentMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest, - com.google.cloud.gaming.v1alpha.GameServerDeployment> - METHOD_GET_GAME_SERVER_DEPLOYMENT = getGetGameServerDeploymentMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest, - com.google.cloud.gaming.v1alpha.GameServerDeployment> - getGetGameServerDeploymentMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest, - com.google.cloud.gaming.v1alpha.GameServerDeployment> - getGetGameServerDeploymentMethod() { - return getGetGameServerDeploymentMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest, - com.google.cloud.gaming.v1alpha.GameServerDeployment> - getGetGameServerDeploymentMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest, - com.google.cloud.gaming.v1alpha.GameServerDeployment> - getGetGameServerDeploymentMethod; - if ((getGetGameServerDeploymentMethod = - GameServerDeploymentsServiceGrpc.getGetGameServerDeploymentMethod) - == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getGetGameServerDeploymentMethod = - GameServerDeploymentsServiceGrpc.getGetGameServerDeploymentMethod) - == null) { - GameServerDeploymentsServiceGrpc.getGetGameServerDeploymentMethod = - getGetGameServerDeploymentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "GetGameServerDeployment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GameServerDeployment - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier( - "GetGameServerDeployment")) - .build(); - } - } - } - return getGetGameServerDeploymentMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateGameServerDeploymentMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest, - com.google.longrunning.Operation> - METHOD_CREATE_GAME_SERVER_DEPLOYMENT = getCreateGameServerDeploymentMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest, - com.google.longrunning.Operation> - getCreateGameServerDeploymentMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest, - com.google.longrunning.Operation> - getCreateGameServerDeploymentMethod() { - return getCreateGameServerDeploymentMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest, - com.google.longrunning.Operation> - getCreateGameServerDeploymentMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest, - com.google.longrunning.Operation> - getCreateGameServerDeploymentMethod; - if ((getCreateGameServerDeploymentMethod = - GameServerDeploymentsServiceGrpc.getCreateGameServerDeploymentMethod) - == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getCreateGameServerDeploymentMethod = - GameServerDeploymentsServiceGrpc.getCreateGameServerDeploymentMethod) - == null) { - GameServerDeploymentsServiceGrpc.getCreateGameServerDeploymentMethod = - getCreateGameServerDeploymentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "CreateGameServerDeployment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier( - "CreateGameServerDeployment")) - .build(); - } - } - } - return getCreateGameServerDeploymentMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteGameServerDeploymentMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest, - com.google.longrunning.Operation> - METHOD_DELETE_GAME_SERVER_DEPLOYMENT = getDeleteGameServerDeploymentMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest, - com.google.longrunning.Operation> - getDeleteGameServerDeploymentMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest, - com.google.longrunning.Operation> - getDeleteGameServerDeploymentMethod() { - return getDeleteGameServerDeploymentMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest, - com.google.longrunning.Operation> - getDeleteGameServerDeploymentMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest, - com.google.longrunning.Operation> - getDeleteGameServerDeploymentMethod; - if ((getDeleteGameServerDeploymentMethod = - GameServerDeploymentsServiceGrpc.getDeleteGameServerDeploymentMethod) - == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getDeleteGameServerDeploymentMethod = - GameServerDeploymentsServiceGrpc.getDeleteGameServerDeploymentMethod) - == null) { - GameServerDeploymentsServiceGrpc.getDeleteGameServerDeploymentMethod = - getDeleteGameServerDeploymentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "DeleteGameServerDeployment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier( - "DeleteGameServerDeployment")) - .build(); - } - } - } - return getDeleteGameServerDeploymentMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateGameServerDeploymentMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest, - com.google.longrunning.Operation> - METHOD_UPDATE_GAME_SERVER_DEPLOYMENT = getUpdateGameServerDeploymentMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest, - com.google.longrunning.Operation> - getUpdateGameServerDeploymentMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest, - com.google.longrunning.Operation> - getUpdateGameServerDeploymentMethod() { - return getUpdateGameServerDeploymentMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest, - com.google.longrunning.Operation> - getUpdateGameServerDeploymentMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest, - com.google.longrunning.Operation> - getUpdateGameServerDeploymentMethod; - if ((getUpdateGameServerDeploymentMethod = - GameServerDeploymentsServiceGrpc.getUpdateGameServerDeploymentMethod) - == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getUpdateGameServerDeploymentMethod = - GameServerDeploymentsServiceGrpc.getUpdateGameServerDeploymentMethod) - == null) { - GameServerDeploymentsServiceGrpc.getUpdateGameServerDeploymentMethod = - getUpdateGameServerDeploymentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "UpdateGameServerDeployment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier( - "UpdateGameServerDeployment")) - .build(); - } - } - } - return getUpdateGameServerDeploymentMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetGameServerDeploymentRolloutMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> - METHOD_GET_GAME_SERVER_DEPLOYMENT_ROLLOUT = getGetGameServerDeploymentRolloutMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> - getGetGameServerDeploymentRolloutMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> - getGetGameServerDeploymentRolloutMethod() { - return getGetGameServerDeploymentRolloutMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> - getGetGameServerDeploymentRolloutMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> - getGetGameServerDeploymentRolloutMethod; - if ((getGetGameServerDeploymentRolloutMethod = - GameServerDeploymentsServiceGrpc.getGetGameServerDeploymentRolloutMethod) - == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getGetGameServerDeploymentRolloutMethod = - GameServerDeploymentsServiceGrpc.getGetGameServerDeploymentRolloutMethod) - == null) { - GameServerDeploymentsServiceGrpc.getGetGameServerDeploymentRolloutMethod = - getGetGameServerDeploymentRolloutMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "GetGameServerDeploymentRollout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier( - "GetGameServerDeploymentRollout")) - .build(); - } - } - } - return getGetGameServerDeploymentRolloutMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateGameServerDeploymentRolloutMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, - com.google.longrunning.Operation> - METHOD_UPDATE_GAME_SERVER_DEPLOYMENT_ROLLOUT = - getUpdateGameServerDeploymentRolloutMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, - com.google.longrunning.Operation> - getUpdateGameServerDeploymentRolloutMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, - com.google.longrunning.Operation> - getUpdateGameServerDeploymentRolloutMethod() { - return getUpdateGameServerDeploymentRolloutMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, - com.google.longrunning.Operation> - getUpdateGameServerDeploymentRolloutMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, - com.google.longrunning.Operation> - getUpdateGameServerDeploymentRolloutMethod; - if ((getUpdateGameServerDeploymentRolloutMethod = - GameServerDeploymentsServiceGrpc.getUpdateGameServerDeploymentRolloutMethod) - == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getUpdateGameServerDeploymentRolloutMethod = - GameServerDeploymentsServiceGrpc.getUpdateGameServerDeploymentRolloutMethod) - == null) { - GameServerDeploymentsServiceGrpc.getUpdateGameServerDeploymentRolloutMethod = - getUpdateGameServerDeploymentRolloutMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "UpdateGameServerDeploymentRollout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha - .UpdateGameServerDeploymentRolloutRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier( - "UpdateGameServerDeploymentRollout")) - .build(); - } - } - } - return getUpdateGameServerDeploymentRolloutMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPreviewGameServerDeploymentRolloutMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> - METHOD_PREVIEW_GAME_SERVER_DEPLOYMENT_ROLLOUT = - getPreviewGameServerDeploymentRolloutMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> - getPreviewGameServerDeploymentRolloutMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> - getPreviewGameServerDeploymentRolloutMethod() { - return getPreviewGameServerDeploymentRolloutMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> - getPreviewGameServerDeploymentRolloutMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> - getPreviewGameServerDeploymentRolloutMethod; - if ((getPreviewGameServerDeploymentRolloutMethod = - GameServerDeploymentsServiceGrpc.getPreviewGameServerDeploymentRolloutMethod) - == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getPreviewGameServerDeploymentRolloutMethod = - GameServerDeploymentsServiceGrpc.getPreviewGameServerDeploymentRolloutMethod) - == null) { - GameServerDeploymentsServiceGrpc.getPreviewGameServerDeploymentRolloutMethod = - getPreviewGameServerDeploymentRolloutMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "PreviewGameServerDeploymentRollout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha - .PreviewGameServerDeploymentRolloutRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha - .PreviewGameServerDeploymentRolloutResponse.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier( - "PreviewGameServerDeploymentRollout")) - .build(); - } - } - } - return getPreviewGameServerDeploymentRolloutMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getFetchDeploymentStateMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> - METHOD_FETCH_DEPLOYMENT_STATE = getFetchDeploymentStateMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> - getFetchDeploymentStateMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> - getFetchDeploymentStateMethod() { - return getFetchDeploymentStateMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> - getFetchDeploymentStateMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> - getFetchDeploymentStateMethod; - if ((getFetchDeploymentStateMethod = - GameServerDeploymentsServiceGrpc.getFetchDeploymentStateMethod) - == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getFetchDeploymentStateMethod = - GameServerDeploymentsServiceGrpc.getFetchDeploymentStateMethod) - == null) { - GameServerDeploymentsServiceGrpc.getFetchDeploymentStateMethod = - getFetchDeploymentStateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "FetchDeploymentState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier( - "FetchDeploymentState")) - .build(); - } - } - } - return getFetchDeploymentStateMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static GameServerDeploymentsServiceStub newStub(io.grpc.Channel channel) { - return new GameServerDeploymentsServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GameServerDeploymentsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new GameServerDeploymentsServiceBlockingStub(channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GameServerDeploymentsServiceFutureStub newFutureStub(io.grpc.Channel channel) { - return new GameServerDeploymentsServiceFutureStub(channel); - } - - /** - * - * - *
-   * The game server deployment is used to control the deployment of game server
-   * software to Agones fleets.
-   * 
- */ - public abstract static class GameServerDeploymentsServiceImplBase - implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists game server deployments in a given project and location.
-     * 
- */ - public void listGameServerDeployments( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> - responseObserver) { - asyncUnimplementedUnaryCall(getListGameServerDeploymentsMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single game server deployment.
-     * 
- */ - public void getGameServerDeployment( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getGetGameServerDeploymentMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Creates a new game server deployment in a given project and location.
-     * 
- */ - public void createGameServerDeployment( - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateGameServerDeploymentMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single game server deployment.
-     * 
- */ - public void deleteGameServerDeployment( - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteGameServerDeploymentMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Patches a game server deployment.
-     * 
- */ - public void updateGameServerDeployment( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateGameServerDeploymentMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Gets details a single game server deployment rollout.
-     * 
- */ - public void getGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall( - getGetGameServerDeploymentRolloutMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Patches a single game server deployment rollout.
-     * 
- */ - public void updateGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall( - getUpdateGameServerDeploymentRolloutMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Previews the game server deployment rollout. This API does not mutate the
-     * rollout resource.
-     * 
- */ - public void previewGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> - responseObserver) { - asyncUnimplementedUnaryCall( - getPreviewGameServerDeploymentRolloutMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Retrieves information about the current state of the deployment, e.g. it
-     * gathers all the fleets and autoscalars for this deployment.
-     * This includes fleets running older version of the deployment.
-     * 
- */ - public void fetchDeploymentState( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getFetchDeploymentStateMethodHelper(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListGameServerDeploymentsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse>( - this, METHODID_LIST_GAME_SERVER_DEPLOYMENTS))) - .addMethod( - getGetGameServerDeploymentMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest, - com.google.cloud.gaming.v1alpha.GameServerDeployment>( - this, METHODID_GET_GAME_SERVER_DEPLOYMENT))) - .addMethod( - getCreateGameServerDeploymentMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_GAME_SERVER_DEPLOYMENT))) - .addMethod( - getDeleteGameServerDeploymentMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_GAME_SERVER_DEPLOYMENT))) - .addMethod( - getUpdateGameServerDeploymentMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_GAME_SERVER_DEPLOYMENT))) - .addMethod( - getGetGameServerDeploymentRolloutMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout>( - this, METHODID_GET_GAME_SERVER_DEPLOYMENT_ROLLOUT))) - .addMethod( - getUpdateGameServerDeploymentRolloutMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_GAME_SERVER_DEPLOYMENT_ROLLOUT))) - .addMethod( - getPreviewGameServerDeploymentRolloutMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse>( - this, METHODID_PREVIEW_GAME_SERVER_DEPLOYMENT_ROLLOUT))) - .addMethod( - getFetchDeploymentStateMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse>( - this, METHODID_FETCH_DEPLOYMENT_STATE))) - .build(); - } - } - - /** - * - * - *
-   * The game server deployment is used to control the deployment of game server
-   * software to Agones fleets.
-   * 
- */ - public static final class GameServerDeploymentsServiceStub - extends io.grpc.stub.AbstractStub { - private GameServerDeploymentsServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private GameServerDeploymentsServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GameServerDeploymentsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GameServerDeploymentsServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists game server deployments in a given project and location.
-     * 
- */ - public void listGameServerDeployments( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListGameServerDeploymentsMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single game server deployment.
-     * 
- */ - public void getGameServerDeployment( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetGameServerDeploymentMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new game server deployment in a given project and location.
-     * 
- */ - public void createGameServerDeployment( - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateGameServerDeploymentMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single game server deployment.
-     * 
- */ - public void deleteGameServerDeployment( - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteGameServerDeploymentMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Patches a game server deployment.
-     * 
- */ - public void updateGameServerDeployment( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateGameServerDeploymentMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details a single game server deployment rollout.
-     * 
- */ - public void getGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetGameServerDeploymentRolloutMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Patches a single game server deployment rollout.
-     * 
- */ - public void updateGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel() - .newCall(getUpdateGameServerDeploymentRolloutMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Previews the game server deployment rollout. This API does not mutate the
-     * rollout resource.
-     * 
- */ - public void previewGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> - responseObserver) { - asyncUnaryCall( - getChannel() - .newCall(getPreviewGameServerDeploymentRolloutMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves information about the current state of the deployment, e.g. it
-     * gathers all the fleets and autoscalars for this deployment.
-     * This includes fleets running older version of the deployment.
-     * 
- */ - public void fetchDeploymentState( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getFetchDeploymentStateMethodHelper(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The game server deployment is used to control the deployment of game server
-   * software to Agones fleets.
-   * 
- */ - public static final class GameServerDeploymentsServiceBlockingStub - extends io.grpc.stub.AbstractStub { - private GameServerDeploymentsServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private GameServerDeploymentsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GameServerDeploymentsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GameServerDeploymentsServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists game server deployments in a given project and location.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse - listGameServerDeployments( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest request) { - return blockingUnaryCall( - getChannel(), getListGameServerDeploymentsMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single game server deployment.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest request) { - return blockingUnaryCall( - getChannel(), getGetGameServerDeploymentMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new game server deployment in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createGameServerDeployment( - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest request) { - return blockingUnaryCall( - getChannel(), getCreateGameServerDeploymentMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single game server deployment.
-     * 
- */ - public com.google.longrunning.Operation deleteGameServerDeployment( - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteGameServerDeploymentMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Patches a game server deployment.
-     * 
- */ - public com.google.longrunning.Operation updateGameServerDeployment( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest request) { - return blockingUnaryCall( - getChannel(), getUpdateGameServerDeploymentMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details a single game server deployment rollout.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout - getGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest request) { - return blockingUnaryCall( - getChannel(), getGetGameServerDeploymentRolloutMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Patches a single game server deployment rollout.
-     * 
- */ - public com.google.longrunning.Operation updateGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request) { - return blockingUnaryCall( - getChannel(), - getUpdateGameServerDeploymentRolloutMethodHelper(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Previews the game server deployment rollout. This API does not mutate the
-     * rollout resource.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - previewGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest request) { - return blockingUnaryCall( - getChannel(), - getPreviewGameServerDeploymentRolloutMethodHelper(), - getCallOptions(), - request); - } - - /** - * - * - *
-     * Retrieves information about the current state of the deployment, e.g. it
-     * gathers all the fleets and autoscalars for this deployment.
-     * This includes fleets running older version of the deployment.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse fetchDeploymentState( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest request) { - return blockingUnaryCall( - getChannel(), getFetchDeploymentStateMethodHelper(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The game server deployment is used to control the deployment of game server
-   * software to Agones fleets.
-   * 
- */ - public static final class GameServerDeploymentsServiceFutureStub - extends io.grpc.stub.AbstractStub { - private GameServerDeploymentsServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private GameServerDeploymentsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GameServerDeploymentsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GameServerDeploymentsServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists game server deployments in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> - listGameServerDeployments( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest request) { - return futureUnaryCall( - getChannel().newCall(getListGameServerDeploymentsMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Gets details of a single game server deployment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.GameServerDeployment> - getGameServerDeployment( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetGameServerDeploymentMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Creates a new game server deployment in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGameServerDeployment( - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateGameServerDeploymentMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Deletes a single game server deployment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGameServerDeployment( - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest request) { - return futureUnaryCall( - getChannel().newCall(getDeleteGameServerDeploymentMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Patches a game server deployment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateGameServerDeployment( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateGameServerDeploymentMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Gets details a single game server deployment rollout.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> - getGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetGameServerDeploymentRolloutMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Patches a single game server deployment rollout.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request) { - return futureUnaryCall( - getChannel() - .newCall(getUpdateGameServerDeploymentRolloutMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Previews the game server deployment rollout. This API does not mutate the
-     * rollout resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> - previewGameServerDeploymentRollout( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest request) { - return futureUnaryCall( - getChannel() - .newCall(getPreviewGameServerDeploymentRolloutMethodHelper(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Retrieves information about the current state of the deployment, e.g. it
-     * gathers all the fleets and autoscalars for this deployment.
-     * This includes fleets running older version of the deployment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> - fetchDeploymentState(com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest request) { - return futureUnaryCall( - getChannel().newCall(getFetchDeploymentStateMethodHelper(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_GAME_SERVER_DEPLOYMENTS = 0; - private static final int METHODID_GET_GAME_SERVER_DEPLOYMENT = 1; - private static final int METHODID_CREATE_GAME_SERVER_DEPLOYMENT = 2; - private static final int METHODID_DELETE_GAME_SERVER_DEPLOYMENT = 3; - private static final int METHODID_UPDATE_GAME_SERVER_DEPLOYMENT = 4; - private static final int METHODID_GET_GAME_SERVER_DEPLOYMENT_ROLLOUT = 5; - private static final int METHODID_UPDATE_GAME_SERVER_DEPLOYMENT_ROLLOUT = 6; - private static final int METHODID_PREVIEW_GAME_SERVER_DEPLOYMENT_ROLLOUT = 7; - private static final int METHODID_FETCH_DEPLOYMENT_STATE = 8; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final GameServerDeploymentsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GameServerDeploymentsServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_GAME_SERVER_DEPLOYMENTS: - serviceImpl.listGameServerDeployments( - (com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse>) - responseObserver); - break; - case METHODID_GET_GAME_SERVER_DEPLOYMENT: - serviceImpl.getGameServerDeployment( - (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_GAME_SERVER_DEPLOYMENT: - serviceImpl.createGameServerDeployment( - (com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GAME_SERVER_DEPLOYMENT: - serviceImpl.deleteGameServerDeployment( - (com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_GAME_SERVER_DEPLOYMENT: - serviceImpl.updateGameServerDeployment( - (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GAME_SERVER_DEPLOYMENT_ROLLOUT: - serviceImpl.getGameServerDeploymentRollout( - (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout>) - responseObserver); - break; - case METHODID_UPDATE_GAME_SERVER_DEPLOYMENT_ROLLOUT: - serviceImpl.updateGameServerDeploymentRollout( - (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PREVIEW_GAME_SERVER_DEPLOYMENT_ROLLOUT: - serviceImpl.previewGameServerDeploymentRollout( - (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse>) - responseObserver); - break; - case METHODID_FETCH_DEPLOYMENT_STATE: - serviceImpl.fetchDeploymentState( - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class GameServerDeploymentsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GameServerDeploymentsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeploymentsServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GameServerDeploymentsService"); - } - } - - private static final class GameServerDeploymentsServiceFileDescriptorSupplier - extends GameServerDeploymentsServiceBaseDescriptorSupplier { - GameServerDeploymentsServiceFileDescriptorSupplier() {} - } - - private static final class GameServerDeploymentsServiceMethodDescriptorSupplier - extends GameServerDeploymentsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GameServerDeploymentsServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GameServerDeploymentsServiceFileDescriptorSupplier()) - .addMethod(getListGameServerDeploymentsMethodHelper()) - .addMethod(getGetGameServerDeploymentMethodHelper()) - .addMethod(getCreateGameServerDeploymentMethodHelper()) - .addMethod(getDeleteGameServerDeploymentMethodHelper()) - .addMethod(getUpdateGameServerDeploymentMethodHelper()) - .addMethod(getGetGameServerDeploymentRolloutMethodHelper()) - .addMethod(getUpdateGameServerDeploymentRolloutMethodHelper()) - .addMethod(getPreviewGameServerDeploymentRolloutMethodHelper()) - .addMethod(getFetchDeploymentStateMethodHelper()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceGrpc.java deleted file mode 100644 index d50d5919..00000000 --- a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceGrpc.java +++ /dev/null @@ -1,981 +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 - * - * 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. - */ -package com.google.cloud.gaming.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - * - * - *
- * Realm provides grouping of game server clusters that are serving a particular
- * gamer population.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/cloud/gaming/v1alpha/realms_service.proto") -public final class RealmsServiceGrpc { - - private RealmsServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gaming.v1alpha.RealmsService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListRealmsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListRealmsRequest, - com.google.cloud.gaming.v1alpha.ListRealmsResponse> - METHOD_LIST_REALMS = getListRealmsMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListRealmsRequest, - com.google.cloud.gaming.v1alpha.ListRealmsResponse> - getListRealmsMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListRealmsRequest, - com.google.cloud.gaming.v1alpha.ListRealmsResponse> - getListRealmsMethod() { - return getListRealmsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListRealmsRequest, - com.google.cloud.gaming.v1alpha.ListRealmsResponse> - getListRealmsMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.ListRealmsRequest, - com.google.cloud.gaming.v1alpha.ListRealmsResponse> - getListRealmsMethod; - if ((getListRealmsMethod = RealmsServiceGrpc.getListRealmsMethod) == null) { - synchronized (RealmsServiceGrpc.class) { - if ((getListRealmsMethod = RealmsServiceGrpc.getListRealmsMethod) == null) { - RealmsServiceGrpc.getListRealmsMethod = - getListRealmsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.RealmsService", "ListRealms")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListRealmsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListRealmsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new RealmsServiceMethodDescriptorSupplier("ListRealms")) - .build(); - } - } - } - return getListRealmsMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetRealmMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetRealmRequest, com.google.cloud.gaming.v1alpha.Realm> - METHOD_GET_REALM = getGetRealmMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetRealmRequest, com.google.cloud.gaming.v1alpha.Realm> - getGetRealmMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetRealmRequest, com.google.cloud.gaming.v1alpha.Realm> - getGetRealmMethod() { - return getGetRealmMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetRealmRequest, com.google.cloud.gaming.v1alpha.Realm> - getGetRealmMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetRealmRequest, com.google.cloud.gaming.v1alpha.Realm> - getGetRealmMethod; - if ((getGetRealmMethod = RealmsServiceGrpc.getGetRealmMethod) == null) { - synchronized (RealmsServiceGrpc.class) { - if ((getGetRealmMethod = RealmsServiceGrpc.getGetRealmMethod) == null) { - RealmsServiceGrpc.getGetRealmMethod = - getGetRealmMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.RealmsService", "GetRealm")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GetRealmRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance())) - .setSchemaDescriptor(new RealmsServiceMethodDescriptorSupplier("GetRealm")) - .build(); - } - } - } - return getGetRealmMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateRealmMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateRealmRequest, com.google.longrunning.Operation> - METHOD_CREATE_REALM = getCreateRealmMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateRealmRequest, com.google.longrunning.Operation> - getCreateRealmMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateRealmRequest, com.google.longrunning.Operation> - getCreateRealmMethod() { - return getCreateRealmMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateRealmRequest, com.google.longrunning.Operation> - getCreateRealmMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateRealmRequest, com.google.longrunning.Operation> - getCreateRealmMethod; - if ((getCreateRealmMethod = RealmsServiceGrpc.getCreateRealmMethod) == null) { - synchronized (RealmsServiceGrpc.class) { - if ((getCreateRealmMethod = RealmsServiceGrpc.getCreateRealmMethod) == null) { - RealmsServiceGrpc.getCreateRealmMethod = - getCreateRealmMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.RealmsService", "CreateRealm")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.CreateRealmRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new RealmsServiceMethodDescriptorSupplier("CreateRealm")) - .build(); - } - } - } - return getCreateRealmMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteRealmMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteRealmRequest, com.google.longrunning.Operation> - METHOD_DELETE_REALM = getDeleteRealmMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteRealmRequest, com.google.longrunning.Operation> - getDeleteRealmMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteRealmRequest, com.google.longrunning.Operation> - getDeleteRealmMethod() { - return getDeleteRealmMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteRealmRequest, com.google.longrunning.Operation> - getDeleteRealmMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteRealmRequest, com.google.longrunning.Operation> - getDeleteRealmMethod; - if ((getDeleteRealmMethod = RealmsServiceGrpc.getDeleteRealmMethod) == null) { - synchronized (RealmsServiceGrpc.class) { - if ((getDeleteRealmMethod = RealmsServiceGrpc.getDeleteRealmMethod) == null) { - RealmsServiceGrpc.getDeleteRealmMethod = - getDeleteRealmMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.RealmsService", "DeleteRealm")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.DeleteRealmRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new RealmsServiceMethodDescriptorSupplier("DeleteRealm")) - .build(); - } - } - } - return getDeleteRealmMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateRealmMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateRealmRequest, com.google.longrunning.Operation> - METHOD_UPDATE_REALM = getUpdateRealmMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateRealmRequest, com.google.longrunning.Operation> - getUpdateRealmMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateRealmRequest, com.google.longrunning.Operation> - getUpdateRealmMethod() { - return getUpdateRealmMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateRealmRequest, com.google.longrunning.Operation> - getUpdateRealmMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateRealmRequest, com.google.longrunning.Operation> - getUpdateRealmMethod; - if ((getUpdateRealmMethod = RealmsServiceGrpc.getUpdateRealmMethod) == null) { - synchronized (RealmsServiceGrpc.class) { - if ((getUpdateRealmMethod = RealmsServiceGrpc.getUpdateRealmMethod) == null) { - RealmsServiceGrpc.getUpdateRealmMethod = - getUpdateRealmMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.RealmsService", "UpdateRealm")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.UpdateRealmRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new RealmsServiceMethodDescriptorSupplier("UpdateRealm")) - .build(); - } - } - } - return getUpdateRealmMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPreviewRealmUpdateMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> - METHOD_PREVIEW_REALM_UPDATE = getPreviewRealmUpdateMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> - getPreviewRealmUpdateMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> - getPreviewRealmUpdateMethod() { - return getPreviewRealmUpdateMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> - getPreviewRealmUpdateMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> - getPreviewRealmUpdateMethod; - if ((getPreviewRealmUpdateMethod = RealmsServiceGrpc.getPreviewRealmUpdateMethod) == null) { - synchronized (RealmsServiceGrpc.class) { - if ((getPreviewRealmUpdateMethod = RealmsServiceGrpc.getPreviewRealmUpdateMethod) == null) { - RealmsServiceGrpc.getPreviewRealmUpdateMethod = - getPreviewRealmUpdateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.RealmsService", "PreviewRealmUpdate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RealmsServiceMethodDescriptorSupplier("PreviewRealmUpdate")) - .build(); - } - } - } - return getPreviewRealmUpdateMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static RealmsServiceStub newStub(io.grpc.Channel channel) { - return new RealmsServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static RealmsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new RealmsServiceBlockingStub(channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static RealmsServiceFutureStub newFutureStub(io.grpc.Channel channel) { - return new RealmsServiceFutureStub(channel); - } - - /** - * - * - *
-   * Realm provides grouping of game server clusters that are serving a particular
-   * gamer population.
-   * 
- */ - public abstract static class RealmsServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists realms in a given project and location.
-     * 
- */ - public void listRealms( - com.google.cloud.gaming.v1alpha.ListRealmsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getListRealmsMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single realm.
-     * 
- */ - public void getRealm( - com.google.cloud.gaming.v1alpha.GetRealmRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetRealmMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Realm in a given project and location.
-     * 
- */ - public void createRealm( - com.google.cloud.gaming.v1alpha.CreateRealmRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateRealmMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single realm.
-     * 
- */ - public void deleteRealm( - com.google.cloud.gaming.v1alpha.DeleteRealmRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteRealmMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Patches a single Realm.
-     * 
- */ - public void updateRealm( - com.google.cloud.gaming.v1alpha.UpdateRealmRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateRealmMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Previews patches to a single Realm.
-     * 
- */ - public void previewRealmUpdate( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getPreviewRealmUpdateMethodHelper(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListRealmsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.ListRealmsRequest, - com.google.cloud.gaming.v1alpha.ListRealmsResponse>( - this, METHODID_LIST_REALMS))) - .addMethod( - getGetRealmMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.GetRealmRequest, - com.google.cloud.gaming.v1alpha.Realm>(this, METHODID_GET_REALM))) - .addMethod( - getCreateRealmMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.CreateRealmRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_REALM))) - .addMethod( - getDeleteRealmMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.DeleteRealmRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_REALM))) - .addMethod( - getUpdateRealmMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.UpdateRealmRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_REALM))) - .addMethod( - getPreviewRealmUpdateMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse>( - this, METHODID_PREVIEW_REALM_UPDATE))) - .build(); - } - } - - /** - * - * - *
-   * Realm provides grouping of game server clusters that are serving a particular
-   * gamer population.
-   * 
- */ - public static final class RealmsServiceStub extends io.grpc.stub.AbstractStub { - private RealmsServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private RealmsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RealmsServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RealmsServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists realms in a given project and location.
-     * 
- */ - public void listRealms( - com.google.cloud.gaming.v1alpha.ListRealmsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListRealmsMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single realm.
-     * 
- */ - public void getRealm( - com.google.cloud.gaming.v1alpha.GetRealmRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetRealmMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Realm in a given project and location.
-     * 
- */ - public void createRealm( - com.google.cloud.gaming.v1alpha.CreateRealmRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateRealmMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single realm.
-     * 
- */ - public void deleteRealm( - com.google.cloud.gaming.v1alpha.DeleteRealmRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteRealmMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Patches a single Realm.
-     * 
- */ - public void updateRealm( - com.google.cloud.gaming.v1alpha.UpdateRealmRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateRealmMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Previews patches to a single Realm.
-     * 
- */ - public void previewRealmUpdate( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getPreviewRealmUpdateMethodHelper(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Realm provides grouping of game server clusters that are serving a particular
-   * gamer population.
-   * 
- */ - public static final class RealmsServiceBlockingStub - extends io.grpc.stub.AbstractStub { - private RealmsServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private RealmsServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RealmsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RealmsServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists realms in a given project and location.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.ListRealmsResponse listRealms( - com.google.cloud.gaming.v1alpha.ListRealmsRequest request) { - return blockingUnaryCall( - getChannel(), getListRealmsMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single realm.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.Realm getRealm( - com.google.cloud.gaming.v1alpha.GetRealmRequest request) { - return blockingUnaryCall(getChannel(), getGetRealmMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Realm in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createRealm( - com.google.cloud.gaming.v1alpha.CreateRealmRequest request) { - return blockingUnaryCall( - getChannel(), getCreateRealmMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single realm.
-     * 
- */ - public com.google.longrunning.Operation deleteRealm( - com.google.cloud.gaming.v1alpha.DeleteRealmRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteRealmMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Patches a single Realm.
-     * 
- */ - public com.google.longrunning.Operation updateRealm( - com.google.cloud.gaming.v1alpha.UpdateRealmRequest request) { - return blockingUnaryCall( - getChannel(), getUpdateRealmMethodHelper(), getCallOptions(), request); - } - - /** - * - * - *
-     * Previews patches to a single Realm.
-     * 
- */ - public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse previewRealmUpdate( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest request) { - return blockingUnaryCall( - getChannel(), getPreviewRealmUpdateMethodHelper(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Realm provides grouping of game server clusters that are serving a particular
-   * gamer population.
-   * 
- */ - public static final class RealmsServiceFutureStub - extends io.grpc.stub.AbstractStub { - private RealmsServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private RealmsServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RealmsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RealmsServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists realms in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.ListRealmsResponse> - listRealms(com.google.cloud.gaming.v1alpha.ListRealmsRequest request) { - return futureUnaryCall( - getChannel().newCall(getListRealmsMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single realm.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getRealm(com.google.cloud.gaming.v1alpha.GetRealmRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetRealmMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Realm in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createRealm(com.google.cloud.gaming.v1alpha.CreateRealmRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateRealmMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single realm.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRealm(com.google.cloud.gaming.v1alpha.DeleteRealmRequest request) { - return futureUnaryCall( - getChannel().newCall(getDeleteRealmMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Patches a single Realm.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateRealm(com.google.cloud.gaming.v1alpha.UpdateRealmRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateRealmMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Previews patches to a single Realm.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> - previewRealmUpdate(com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest request) { - return futureUnaryCall( - getChannel().newCall(getPreviewRealmUpdateMethodHelper(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_REALMS = 0; - private static final int METHODID_GET_REALM = 1; - private static final int METHODID_CREATE_REALM = 2; - private static final int METHODID_DELETE_REALM = 3; - private static final int METHODID_UPDATE_REALM = 4; - private static final int METHODID_PREVIEW_REALM_UPDATE = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final RealmsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(RealmsServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_REALMS: - serviceImpl.listRealms( - (com.google.cloud.gaming.v1alpha.ListRealmsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_REALM: - serviceImpl.getRealm( - (com.google.cloud.gaming.v1alpha.GetRealmRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_REALM: - serviceImpl.createRealm( - (com.google.cloud.gaming.v1alpha.CreateRealmRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_REALM: - serviceImpl.deleteRealm( - (com.google.cloud.gaming.v1alpha.DeleteRealmRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_REALM: - serviceImpl.updateRealm( - (com.google.cloud.gaming.v1alpha.UpdateRealmRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PREVIEW_REALM_UPDATE: - serviceImpl.previewRealmUpdate( - (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class RealmsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - RealmsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gaming.v1alpha.RealmsServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("RealmsService"); - } - } - - private static final class RealmsServiceFileDescriptorSupplier - extends RealmsServiceBaseDescriptorSupplier { - RealmsServiceFileDescriptorSupplier() {} - } - - private static final class RealmsServiceMethodDescriptorSupplier - extends RealmsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - RealmsServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (RealmsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RealmsServiceFileDescriptorSupplier()) - .addMethod(getListRealmsMethodHelper()) - .addMethod(getGetRealmMethodHelper()) - .addMethod(getCreateRealmMethodHelper()) - .addMethod(getDeleteRealmMethodHelper()) - .addMethod(getUpdateRealmMethodHelper()) - .addMethod(getPreviewRealmUpdateMethodHelper()) - .build(); - } - } - } - return result; - } -} diff --git a/pom.xml b/pom.xml index c3b71e4e..0b4c8553 100644 --- a/pom.xml +++ b/pom.xml @@ -67,21 +67,6 @@ - - com.google.api.grpc - proto-google-cloud-gameservices-v1alpha - 0.19.2-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-gameservices-v1alpha - 0.19.2-SNAPSHOT - - - com.google.cloud - google-cloud-gameservices - 0.19.2-SNAPSHOT - com.google.api.grpc proto-google-cloud-game-servers-v1beta @@ -133,10 +118,6 @@ - proto-google-cloud-gameservices-v1alpha - grpc-google-cloud-gameservices-v1alpha - google-cloud-gameservices - google-cloud-gameservices-bom proto-google-cloud-game-servers-v1beta grpc-google-cloud-game-servers-v1beta google-cloud-game-servers diff --git a/proto-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml b/proto-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml deleted file mode 100644 index 370a50ad..00000000 --- a/proto-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/cloud/gaming/v1alpha/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/gaming/v1alpha/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/gaming/v1alpha/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-cloud-gameservices-v1alpha/pom.xml b/proto-google-cloud-gameservices-v1alpha/pom.xml deleted file mode 100644 index a49587cb..00000000 --- a/proto-google-cloud-gameservices-v1alpha/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-gameservices-v1alpha - 0.19.2-SNAPSHOT - proto-google-cloud-gameservices-v1alpha - PROTO library for proto-google-cloud-gameservices-v1alpha - - com.google.cloud - google-cloud-game-servers-parent - 0.19.2-SNAPSHOT - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java deleted file mode 100644 index 792fe47b..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java +++ /dev/null @@ -1,333 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public final class Common { - private Common() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_OperationStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_LabelSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_RealmSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_Schedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FleetDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_DeployedState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_SpecSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_TargetDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_TargetState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n(google/cloud/gaming/v1alpha/common.pro" - + "to\022\033google.cloud.gaming.v1alpha\032\037google/" - + "api/field_behavior.proto\032\036google/protobu" - + "f/duration.proto\032\037google/protobuf/timest" - + "amp.proto\032\034google/api/annotations.proto\"" - + "\344\003\n\021OperationMetadata\0224\n\013create_time\030\001 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010e" - + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(" - + "\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026r" - + "equested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_" - + "version\030\007 \001(\tB\003\340A\003\022\030\n\013unreachable\030\010 \003(\tB" - + "\003\340A\003\022b\n\020operation_status\030\t \003(\0132C.google." - + "cloud.gaming.v1alpha.OperationMetadata.O" - + "perationStatusEntryB\003\340A\003\032d\n\024OperationSta" - + "tusEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.g" - + "oogle.cloud.gaming.v1alpha.OperationStat" - + "us:\0028\001\"\363\001\n\017OperationStatus\022\021\n\004done\030\001 \001(\010" - + "B\003\340A\003\022J\n\nerror_code\030\002 \001(\01626.google.cloud" - + ".gaming.v1alpha.OperationStatus.ErrorCod" - + "e\022\025\n\rerror_message\030\003 \001(\t\"j\n\tErrorCode\022\032\n" - + "\026ERROR_CODE_UNSPECIFIED\020\000\022\022\n\016INTERNAL_ER" - + "ROR\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\026\n\022CLUSTER_" - + "CONNECTION\020\003\"\206\001\n\rLabelSelector\022F\n\006labels" - + "\030\001 \003(\01326.google.cloud.gaming.v1alpha.Lab" - + "elSelector.LabelsEntry\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\037\n\rRealmSe" - + "lector\022\016\n\006realms\030\001 \003(\t\"\261\001\n\010Schedule\022.\n\ns" - + "tart_time\030\001 \001(\0132\032.google.protobuf.Timest" - + "amp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf." - + "Timestamp\0224\n\021cron_job_duration\030\003 \001(\0132\031.g" - + "oogle.protobuf.Duration\022\021\n\tcron_spec\030\004 \001" - + "(\t\"\211\002\n\014FleetDetails\022 \n\030game_server_clust" - + "er_name\030\001 \001(\t\022\022\n\nfleet_name\030\002 \001(\t\022\037\n\027gam" - + "e_server_config_name\030\003 \001(\t\022W\n\022autoscaler" - + "_details\030\004 \001(\0132;.google.cloud.gaming.v1a" - + "lpha.FleetDetails.AutoscalerDetails\032I\n\021A" - + "utoscalerDetails\022\027\n\017autoscaler_name\030\001 \001(" - + "\t\022\033\n\023scaling_config_name\030\002 \001(\t\"N\n\rDeploy" - + "edState\0229\n\006fleets\030\001 \003(\0132).google.cloud.g" - + "aming.v1alpha.FleetDetails:\002\030\001\";\n\nSpecSo" - + "urce\022\037\n\027game_server_config_name\030\001 \001(\t\022\014\n" - + "\004name\030\002 \001(\t\"\306\004\n\rTargetDetails\022 \n\030game_se" - + "rver_cluster_name\030\001 \001(\t\022#\n\033game_server_d" - + "eployment_name\030\002 \001(\t\022T\n\rfleet_details\030\003 " - + "\003(\0132=.google.cloud.gaming.v1alpha.Target" - + "Details.TargetFleetDetails\032\227\003\n\022TargetFle" - + "etDetails\022X\n\005fleet\030\001 \001(\0132I.google.cloud." - + "gaming.v1alpha.TargetDetails.TargetFleet" - + "Details.TargetFleet\022g\n\nautoscaler\030\002 \001(\0132" - + "S.google.cloud.gaming.v1alpha.TargetDeta" - + "ils.TargetFleetDetails.TargetFleetAutosc" - + "aler\032Y\n\013TargetFleet\022\014\n\004name\030\001 \001(\t\022<\n\013spe" - + "c_source\030\002 \001(\0132\'.google.cloud.gaming.v1a" - + "lpha.SpecSource\032c\n\025TargetFleetAutoscaler" - + "\022\014\n\004name\030\001 \001(\t\022<\n\013spec_source\030\002 \001(\0132\'.go" - + "ogle.cloud.gaming.v1alpha.SpecSource\"J\n\013" - + "TargetState\022;\n\007details\030\001 \003(\0132*.google.cl" - + "oud.gaming.v1alpha.TargetDetailsBf\n\037com." - + "google.cloud.gaming.v1alphaP\001ZAgoogle.go" - + "lang.org/genproto/googleapis/cloud/gamin" - + "g/v1alpha;gamingb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - "Unreachable", - "OperationStatus", - }); - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_descriptor = - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gaming_v1alpha_OperationStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor, - new java.lang.String[] { - "Done", "ErrorCode", "ErrorMessage", - }); - internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gaming_v1alpha_LabelSelector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor, - new java.lang.String[] { - "Labels", - }); - internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_descriptor = - internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gaming_v1alpha_RealmSelector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor, - new java.lang.String[] { - "Realms", - }); - internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gaming_v1alpha_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", "CronJobDuration", "CronSpec", - }); - internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gaming_v1alpha_FleetDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor, - new java.lang.String[] { - "GameServerClusterName", "FleetName", "GameServerConfigName", "AutoscalerDetails", - }); - internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor = - internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor, - new java.lang.String[] { - "AutoscalerName", "ScalingConfigName", - }); - internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gaming_v1alpha_DeployedState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor, - new java.lang.String[] { - "Fleets", - }); - internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gaming_v1alpha_SpecSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor, - new java.lang.String[] { - "GameServerConfigName", "Name", - }); - internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gaming_v1alpha_TargetDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor, - new java.lang.String[] { - "GameServerClusterName", "GameServerDeploymentName", "FleetDetails", - }); - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor = - internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor, - new java.lang.String[] { - "Fleet", "Autoscaler", - }); - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor = - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor, - new java.lang.String[] { - "Name", "SpecSource", - }); - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor = - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor, - new java.lang.String[] { - "Name", "SpecSource", - }); - internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gaming_v1alpha_TargetState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor, - new java.lang.String[] { - "Details", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequest.java deleted file mode 100644 index 885c624a..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequest.java +++ /dev/null @@ -1,1142 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerClustersService.CreateGameServerCluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateGameServerClusterRequest} - */ -public final class CreateGameServerClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) - CreateGameServerClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateGameServerClusterRequest.newBuilder() to construct. - private CreateGameServerClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateGameServerClusterRequest() { - parent_ = ""; - gameServerClusterId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateGameServerClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateGameServerClusterRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - gameServerClusterId_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder subBuilder = null; - if (gameServerCluster_ != null) { - subBuilder = gameServerCluster_.toBuilder(); - } - gameServerCluster_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerCluster.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameServerCluster_); - gameServerCluster_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAME_SERVER_CLUSTER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object gameServerClusterId_; - /** - * - * - *
-   * Required. The ID of the game server cluster resource to be created.
-   * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The gameServerClusterId. - */ - public java.lang.String getGameServerClusterId() { - java.lang.Object ref = gameServerClusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerClusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the game server cluster resource to be created.
-   * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for gameServerClusterId. - */ - public com.google.protobuf.ByteString getGameServerClusterIdBytes() { - java.lang.Object ref = gameServerClusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerClusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAME_SERVER_CLUSTER_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - public boolean hasGameServerCluster() { - return gameServerCluster_ != null; - } - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder - getGameServerClusterOrBuilder() { - return getGameServerCluster(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!getGameServerClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gameServerClusterId_); - } - if (gameServerCluster_ != null) { - output.writeMessage(3, getGameServerCluster()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!getGameServerClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gameServerClusterId_); - } - if (gameServerCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGameServerCluster()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest other = - (com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getGameServerClusterId().equals(other.getGameServerClusterId())) return false; - if (hasGameServerCluster() != other.hasGameServerCluster()) return false; - if (hasGameServerCluster()) { - if (!getGameServerCluster().equals(other.getGameServerCluster())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + GAME_SERVER_CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getGameServerClusterId().hashCode(); - if (hasGameServerCluster()) { - hash = (37 * hash) + GAME_SERVER_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getGameServerCluster().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerClustersService.CreateGameServerCluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateGameServerClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - gameServerClusterId_ = ""; - - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = null; - } else { - gameServerCluster_ = null; - gameServerClusterBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest build() { - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest buildPartial() { - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest result = - new com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest(this); - result.parent_ = parent_; - result.gameServerClusterId_ = gameServerClusterId_; - if (gameServerClusterBuilder_ == null) { - result.gameServerCluster_ = gameServerCluster_; - } else { - result.gameServerCluster_ = gameServerClusterBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getGameServerClusterId().isEmpty()) { - gameServerClusterId_ = other.gameServerClusterId_; - onChanged(); - } - if (other.hasGameServerCluster()) { - mergeGameServerCluster(other.getGameServerCluster()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object gameServerClusterId_ = ""; - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The gameServerClusterId. - */ - public java.lang.String getGameServerClusterId() { - java.lang.Object ref = gameServerClusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerClusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for gameServerClusterId. - */ - public com.google.protobuf.ByteString getGameServerClusterIdBytes() { - java.lang.Object ref = gameServerClusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerClusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The gameServerClusterId to set. - * @return This builder for chaining. - */ - public Builder setGameServerClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameServerClusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearGameServerClusterId() { - - gameServerClusterId_ = getDefaultInstance().getGameServerClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for gameServerClusterId to set. - * @return This builder for chaining. - */ - public Builder setGameServerClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameServerClusterId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - gameServerClusterBuilder_; - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - public boolean hasGameServerCluster() { - return gameServerClusterBuilder_ != null || gameServerCluster_ != null; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { - if (gameServerClusterBuilder_ == null) { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } else { - return gameServerClusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gameServerCluster_ = value; - onChanged(); - } else { - gameServerClusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerCluster( - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = builderForValue.build(); - onChanged(); - } else { - gameServerClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClusterBuilder_ == null) { - if (gameServerCluster_ != null) { - gameServerCluster_ = - com.google.cloud.gaming.v1alpha.GameServerCluster.newBuilder(gameServerCluster_) - .mergeFrom(value) - .buildPartial(); - } else { - gameServerCluster_ = value; - } - onChanged(); - } else { - gameServerClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGameServerCluster() { - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = null; - onChanged(); - } else { - gameServerCluster_ = null; - gameServerClusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerClusterBuilder() { - - onChanged(); - return getGameServerClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder - getGameServerClusterOrBuilder() { - if (gameServerClusterBuilder_ != null) { - return gameServerClusterBuilder_.getMessageOrBuilder(); - } else { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - getGameServerClusterFieldBuilder() { - if (gameServerClusterBuilder_ == null) { - gameServerClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder>( - getGameServerCluster(), getParentForChildren(), isClean()); - gameServerCluster_ = null; - } - return gameServerClusterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) - private static final com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest(); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGameServerClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateGameServerClusterRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequestOrBuilder.java deleted file mode 100644 index 9b3bd2c9..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequestOrBuilder.java +++ /dev/null @@ -1,122 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface CreateGameServerClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ID of the game server cluster resource to be created.
-   * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The gameServerClusterId. - */ - java.lang.String getGameServerClusterId(); - /** - * - * - *
-   * Required. The ID of the game server cluster resource to be created.
-   * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for gameServerClusterId. - */ - com.google.protobuf.ByteString getGameServerClusterIdBytes(); - - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - boolean hasGameServerCluster(); - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster(); - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequest.java deleted file mode 100644 index 7857f703..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequest.java +++ /dev/null @@ -1,1139 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for
- * GameServerConfigsService.CreateGameServerConfig.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateGameServerConfigRequest} - */ -public final class CreateGameServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) - CreateGameServerConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateGameServerConfigRequest.newBuilder() to construct. - private CreateGameServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateGameServerConfigRequest() { - parent_ = ""; - configId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateGameServerConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateGameServerConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - configId_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder subBuilder = null; - if (gameServerConfig_ != null) { - subBuilder = gameServerConfig_.toBuilder(); - } - gameServerConfig_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameServerConfig_); - gameServerConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.class, - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object configId_; - /** - * - * - *
-   * Required. The ID of the game server config resource to be created.
-   * 
- * - * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The configId. - */ - public java.lang.String getConfigId() { - java.lang.Object ref = configId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - configId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the game server config resource to be created.
-   * 
- * - * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for configId. - */ - public com.google.protobuf.ByteString getConfigIdBytes() { - java.lang.Object ref = configId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - configId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAME_SERVER_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.GameServerConfig gameServerConfig_; - /** - * - * - *
-   * Required. The game server config resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerConfig field is set. - */ - public boolean hasGameServerConfig() { - return gameServerConfig_ != null; - } - /** - * - * - *
-   * Required. The game server config resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerConfig. - */ - public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfig() { - return gameServerConfig_ == null - ? com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance() - : gameServerConfig_; - } - /** - * - * - *
-   * Required. The game server config resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigOrBuilder() { - return getGameServerConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!getConfigIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, configId_); - } - if (gameServerConfig_ != null) { - output.writeMessage(3, getGameServerConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!getConfigIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configId_); - } - if (gameServerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGameServerConfig()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest other = - (com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getConfigId().equals(other.getConfigId())) return false; - if (hasGameServerConfig() != other.hasGameServerConfig()) return false; - if (hasGameServerConfig()) { - if (!getGameServerConfig().equals(other.getGameServerConfig())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + CONFIG_ID_FIELD_NUMBER; - hash = (53 * hash) + getConfigId().hashCode(); - if (hasGameServerConfig()) { - hash = (37 * hash) + GAME_SERVER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGameServerConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for
-   * GameServerConfigsService.CreateGameServerConfig.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateGameServerConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.class, - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - configId_ = ""; - - if (gameServerConfigBuilder_ == null) { - gameServerConfig_ = null; - } else { - gameServerConfig_ = null; - gameServerConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest build() { - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest buildPartial() { - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest result = - new com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest(this); - result.parent_ = parent_; - result.configId_ = configId_; - if (gameServerConfigBuilder_ == null) { - result.gameServerConfig_ = gameServerConfig_; - } else { - result.gameServerConfig_ = gameServerConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getConfigId().isEmpty()) { - configId_ = other.configId_; - onChanged(); - } - if (other.hasGameServerConfig()) { - mergeGameServerConfig(other.getGameServerConfig()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object configId_ = ""; - /** - * - * - *
-     * Required. The ID of the game server config resource to be created.
-     * 
- * - * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The configId. - */ - public java.lang.String getConfigId() { - java.lang.Object ref = configId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - configId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the game server config resource to be created.
-     * 
- * - * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for configId. - */ - public com.google.protobuf.ByteString getConfigIdBytes() { - java.lang.Object ref = configId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - configId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the game server config resource to be created.
-     * 
- * - * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The configId to set. - * @return This builder for chaining. - */ - public Builder setConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - configId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the game server config resource to be created.
-     * 
- * - * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearConfigId() { - - configId_ = getDefaultInstance().getConfigId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the game server config resource to be created.
-     * 
- * - * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for configId to set. - * @return This builder for chaining. - */ - public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - configId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerConfig gameServerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerConfig, - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, - com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder> - gameServerConfigBuilder_; - /** - * - * - *
-     * Required. The game server config resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerConfig field is set. - */ - public boolean hasGameServerConfig() { - return gameServerConfigBuilder_ != null || gameServerConfig_ != null; - } - /** - * - * - *
-     * Required. The game server config resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerConfig. - */ - public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfig() { - if (gameServerConfigBuilder_ == null) { - return gameServerConfig_ == null - ? com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance() - : gameServerConfig_; - } else { - return gameServerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server config resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerConfig(com.google.cloud.gaming.v1alpha.GameServerConfig value) { - if (gameServerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gameServerConfig_ = value; - onChanged(); - } else { - gameServerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server config resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerConfig( - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder builderForValue) { - if (gameServerConfigBuilder_ == null) { - gameServerConfig_ = builderForValue.build(); - onChanged(); - } else { - gameServerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server config resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGameServerConfig(com.google.cloud.gaming.v1alpha.GameServerConfig value) { - if (gameServerConfigBuilder_ == null) { - if (gameServerConfig_ != null) { - gameServerConfig_ = - com.google.cloud.gaming.v1alpha.GameServerConfig.newBuilder(gameServerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - gameServerConfig_ = value; - } - onChanged(); - } else { - gameServerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server config resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGameServerConfig() { - if (gameServerConfigBuilder_ == null) { - gameServerConfig_ = null; - onChanged(); - } else { - gameServerConfig_ = null; - gameServerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server config resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfig.Builder getGameServerConfigBuilder() { - - onChanged(); - return getGameServerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server config resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder - getGameServerConfigOrBuilder() { - if (gameServerConfigBuilder_ != null) { - return gameServerConfigBuilder_.getMessageOrBuilder(); - } else { - return gameServerConfig_ == null - ? com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance() - : gameServerConfig_; - } - } - /** - * - * - *
-     * Required. The game server config resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerConfig, - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, - com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder> - getGameServerConfigFieldBuilder() { - if (gameServerConfigBuilder_ == null) { - gameServerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerConfig, - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, - com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder>( - getGameServerConfig(), getParentForChildren(), isClean()); - gameServerConfig_ = null; - } - return gameServerConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) - private static final com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest(); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGameServerConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateGameServerConfigRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequestOrBuilder.java deleted file mode 100644 index ac449b46..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequestOrBuilder.java +++ /dev/null @@ -1,122 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -public interface CreateGameServerConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ID of the game server config resource to be created.
-   * 
- * - * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The configId. - */ - java.lang.String getConfigId(); - /** - * - * - *
-   * Required. The ID of the game server config resource to be created.
-   * 
- * - * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for configId. - */ - com.google.protobuf.ByteString getConfigIdBytes(); - - /** - * - * - *
-   * Required. The game server config resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerConfig field is set. - */ - boolean hasGameServerConfig(); - /** - * - * - *
-   * Required. The game server config resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerConfig. - */ - com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfig(); - /** - * - * - *
-   * Required. The game server config resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequest.java deleted file mode 100644 index 9019d583..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequest.java +++ /dev/null @@ -1,1149 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerDeploymentsService.CreateGameServerDeployment.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest} - */ -public final class CreateGameServerDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) - CreateGameServerDeploymentRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateGameServerDeploymentRequest.newBuilder() to construct. - private CreateGameServerDeploymentRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateGameServerDeploymentRequest() { - parent_ = ""; - deploymentId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateGameServerDeploymentRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateGameServerDeploymentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - deploymentId_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder subBuilder = null; - if (gameServerDeployment_ != null) { - subBuilder = gameServerDeployment_.toBuilder(); - } - gameServerDeployment_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerDeployment.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameServerDeployment_); - gameServerDeployment_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest.class, - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPLOYMENT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deploymentId_; - /** - * - * - *
-   * Required. The ID of the game server deployment resource to be created.
-   * 
- * - * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The deploymentId. - */ - public java.lang.String getDeploymentId() { - java.lang.Object ref = deploymentId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deploymentId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the game server deployment resource to be created.
-   * 
- * - * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for deploymentId. - */ - public com.google.protobuf.ByteString getDeploymentIdBytes() { - java.lang.Object ref = deploymentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - deploymentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAME_SERVER_DEPLOYMENT_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.GameServerDeployment gameServerDeployment_; - /** - * - * - *
-   * Required. The game server deployment resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerDeployment field is set. - */ - public boolean hasGameServerDeployment() { - return gameServerDeployment_ != null; - } - /** - * - * - *
-   * Required. The game server deployment resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerDeployment. - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment() { - return gameServerDeployment_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance() - : gameServerDeployment_; - } - /** - * - * - *
-   * Required. The game server deployment resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder - getGameServerDeploymentOrBuilder() { - return getGameServerDeployment(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!getDeploymentIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deploymentId_); - } - if (gameServerDeployment_ != null) { - output.writeMessage(3, getGameServerDeployment()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!getDeploymentIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deploymentId_); - } - if (gameServerDeployment_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGameServerDeployment()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest other = - (com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getDeploymentId().equals(other.getDeploymentId())) return false; - if (hasGameServerDeployment() != other.hasGameServerDeployment()) return false; - if (hasGameServerDeployment()) { - if (!getGameServerDeployment().equals(other.getGameServerDeployment())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getDeploymentId().hashCode(); - if (hasGameServerDeployment()) { - hash = (37 * hash) + GAME_SERVER_DEPLOYMENT_FIELD_NUMBER; - hash = (53 * hash) + getGameServerDeployment().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerDeploymentsService.CreateGameServerDeployment.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest.class, - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - deploymentId_ = ""; - - if (gameServerDeploymentBuilder_ == null) { - gameServerDeployment_ = null; - } else { - gameServerDeployment_ = null; - gameServerDeploymentBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest build() { - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest buildPartial() { - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest result = - new com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest(this); - result.parent_ = parent_; - result.deploymentId_ = deploymentId_; - if (gameServerDeploymentBuilder_ == null) { - result.gameServerDeployment_ = gameServerDeployment_; - } else { - result.gameServerDeployment_ = gameServerDeploymentBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getDeploymentId().isEmpty()) { - deploymentId_ = other.deploymentId_; - onChanged(); - } - if (other.hasGameServerDeployment()) { - mergeGameServerDeployment(other.getGameServerDeployment()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object deploymentId_ = ""; - /** - * - * - *
-     * Required. The ID of the game server deployment resource to be created.
-     * 
- * - * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The deploymentId. - */ - public java.lang.String getDeploymentId() { - java.lang.Object ref = deploymentId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deploymentId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the game server deployment resource to be created.
-     * 
- * - * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for deploymentId. - */ - public com.google.protobuf.ByteString getDeploymentIdBytes() { - java.lang.Object ref = deploymentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - deploymentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the game server deployment resource to be created.
-     * 
- * - * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The deploymentId to set. - * @return This builder for chaining. - */ - public Builder setDeploymentId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deploymentId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the game server deployment resource to be created.
-     * 
- * - * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDeploymentId() { - - deploymentId_ = getDefaultInstance().getDeploymentId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the game server deployment resource to be created.
-     * 
- * - * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for deploymentId to set. - * @return This builder for chaining. - */ - public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deploymentId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerDeployment gameServerDeployment_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeployment, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder> - gameServerDeploymentBuilder_; - /** - * - * - *
-     * Required. The game server deployment resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerDeployment field is set. - */ - public boolean hasGameServerDeployment() { - return gameServerDeploymentBuilder_ != null || gameServerDeployment_ != null; - } - /** - * - * - *
-     * Required. The game server deployment resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerDeployment. - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment() { - if (gameServerDeploymentBuilder_ == null) { - return gameServerDeployment_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance() - : gameServerDeployment_; - } else { - return gameServerDeploymentBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server deployment resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerDeployment( - com.google.cloud.gaming.v1alpha.GameServerDeployment value) { - if (gameServerDeploymentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gameServerDeployment_ = value; - onChanged(); - } else { - gameServerDeploymentBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerDeployment( - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder builderForValue) { - if (gameServerDeploymentBuilder_ == null) { - gameServerDeployment_ = builderForValue.build(); - onChanged(); - } else { - gameServerDeploymentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGameServerDeployment( - com.google.cloud.gaming.v1alpha.GameServerDeployment value) { - if (gameServerDeploymentBuilder_ == null) { - if (gameServerDeployment_ != null) { - gameServerDeployment_ = - com.google.cloud.gaming.v1alpha.GameServerDeployment.newBuilder(gameServerDeployment_) - .mergeFrom(value) - .buildPartial(); - } else { - gameServerDeployment_ = value; - } - onChanged(); - } else { - gameServerDeploymentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGameServerDeployment() { - if (gameServerDeploymentBuilder_ == null) { - gameServerDeployment_ = null; - onChanged(); - } else { - gameServerDeployment_ = null; - gameServerDeploymentBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder - getGameServerDeploymentBuilder() { - - onChanged(); - return getGameServerDeploymentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server deployment resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder - getGameServerDeploymentOrBuilder() { - if (gameServerDeploymentBuilder_ != null) { - return gameServerDeploymentBuilder_.getMessageOrBuilder(); - } else { - return gameServerDeployment_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance() - : gameServerDeployment_; - } - } - /** - * - * - *
-     * Required. The game server deployment resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeployment, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder> - getGameServerDeploymentFieldBuilder() { - if (gameServerDeploymentBuilder_ == null) { - gameServerDeploymentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeployment, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder>( - getGameServerDeployment(), getParentForChildren(), isClean()); - gameServerDeployment_ = null; - } - return gameServerDeploymentBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) - private static final com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest(); - } - - public static com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGameServerDeploymentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateGameServerDeploymentRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequestOrBuilder.java deleted file mode 100644 index f9dafd80..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequestOrBuilder.java +++ /dev/null @@ -1,122 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface CreateGameServerDeploymentRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ID of the game server deployment resource to be created.
-   * 
- * - * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The deploymentId. - */ - java.lang.String getDeploymentId(); - /** - * - * - *
-   * Required. The ID of the game server deployment resource to be created.
-   * 
- * - * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for deploymentId. - */ - com.google.protobuf.ByteString getDeploymentIdBytes(); - - /** - * - * - *
-   * Required. The game server deployment resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerDeployment field is set. - */ - boolean hasGameServerDeployment(); - /** - * - * - *
-   * Required. The game server deployment resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerDeployment. - */ - com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment(); - /** - * - * - *
-   * Required. The game server deployment resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeploymentOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequest.java deleted file mode 100644 index fc8d5ff2..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequest.java +++ /dev/null @@ -1,1112 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for RealmsService.CreateRealm.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateRealmRequest} - */ -public final class CreateRealmRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CreateRealmRequest) - CreateRealmRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateRealmRequest.newBuilder() to construct. - private CreateRealmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateRealmRequest() { - parent_ = ""; - realmId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateRealmRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateRealmRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - realmId_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.Realm.Builder subBuilder = null; - if (realm_ != null) { - subBuilder = realm_.toBuilder(); - } - realm_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.Realm.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(realm_); - realm_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateRealmRequest.class, - com.google.cloud.gaming.v1alpha.CreateRealmRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REALM_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object realmId_; - /** - * - * - *
-   * Required. The ID of the realm resource to be created.
-   * 
- * - * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The realmId. - */ - public java.lang.String getRealmId() { - java.lang.Object ref = realmId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - realmId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the realm resource to be created.
-   * 
- * - * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for realmId. - */ - public com.google.protobuf.ByteString getRealmIdBytes() { - java.lang.Object ref = realmId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - realmId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REALM_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.Realm realm_; - /** - * - * - *
-   * Required. The realm resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the realm field is set. - */ - public boolean hasRealm() { - return realm_ != null; - } - /** - * - * - *
-   * Required. The realm resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The realm. - */ - public com.google.cloud.gaming.v1alpha.Realm getRealm() { - return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; - } - /** - * - * - *
-   * Required. The realm resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { - return getRealm(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!getRealmIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, realmId_); - } - if (realm_ != null) { - output.writeMessage(3, getRealm()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!getRealmIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, realmId_); - } - if (realm_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRealm()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.CreateRealmRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.CreateRealmRequest other = - (com.google.cloud.gaming.v1alpha.CreateRealmRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getRealmId().equals(other.getRealmId())) return false; - if (hasRealm() != other.hasRealm()) return false; - if (hasRealm()) { - if (!getRealm().equals(other.getRealm())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + REALM_ID_FIELD_NUMBER; - hash = (53 * hash) + getRealmId().hashCode(); - if (hasRealm()) { - hash = (37 * hash) + REALM_FIELD_NUMBER; - hash = (53 * hash) + getRealm().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.CreateRealmRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for RealmsService.CreateRealm.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateRealmRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.CreateRealmRequest) - com.google.cloud.gaming.v1alpha.CreateRealmRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateRealmRequest.class, - com.google.cloud.gaming.v1alpha.CreateRealmRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.CreateRealmRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - realmId_ = ""; - - if (realmBuilder_ == null) { - realm_ = null; - } else { - realm_ = null; - realmBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateRealmRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.CreateRealmRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateRealmRequest build() { - com.google.cloud.gaming.v1alpha.CreateRealmRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateRealmRequest buildPartial() { - com.google.cloud.gaming.v1alpha.CreateRealmRequest result = - new com.google.cloud.gaming.v1alpha.CreateRealmRequest(this); - result.parent_ = parent_; - result.realmId_ = realmId_; - if (realmBuilder_ == null) { - result.realm_ = realm_; - } else { - result.realm_ = realmBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.CreateRealmRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.CreateRealmRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.CreateRealmRequest other) { - if (other == com.google.cloud.gaming.v1alpha.CreateRealmRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getRealmId().isEmpty()) { - realmId_ = other.realmId_; - onChanged(); - } - if (other.hasRealm()) { - mergeRealm(other.getRealm()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.CreateRealmRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.CreateRealmRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object realmId_ = ""; - /** - * - * - *
-     * Required. The ID of the realm resource to be created.
-     * 
- * - * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The realmId. - */ - public java.lang.String getRealmId() { - java.lang.Object ref = realmId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - realmId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the realm resource to be created.
-     * 
- * - * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for realmId. - */ - public com.google.protobuf.ByteString getRealmIdBytes() { - java.lang.Object ref = realmId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - realmId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the realm resource to be created.
-     * 
- * - * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The realmId to set. - * @return This builder for chaining. - */ - public Builder setRealmId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - realmId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the realm resource to be created.
-     * 
- * - * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRealmId() { - - realmId_ = getDefaultInstance().getRealmId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the realm resource to be created.
-     * 
- * - * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for realmId to set. - * @return This builder for chaining. - */ - public Builder setRealmIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - realmId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.Realm realm_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder> - realmBuilder_; - /** - * - * - *
-     * Required. The realm resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the realm field is set. - */ - public boolean hasRealm() { - return realmBuilder_ != null || realm_ != null; - } - /** - * - * - *
-     * Required. The realm resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The realm. - */ - public com.google.cloud.gaming.v1alpha.Realm getRealm() { - if (realmBuilder_ == null) { - return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; - } else { - return realmBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The realm resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm value) { - if (realmBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - realm_ = value; - onChanged(); - } else { - realmBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The realm resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm.Builder builderForValue) { - if (realmBuilder_ == null) { - realm_ = builderForValue.build(); - onChanged(); - } else { - realmBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The realm resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRealm(com.google.cloud.gaming.v1alpha.Realm value) { - if (realmBuilder_ == null) { - if (realm_ != null) { - realm_ = - com.google.cloud.gaming.v1alpha.Realm.newBuilder(realm_) - .mergeFrom(value) - .buildPartial(); - } else { - realm_ = value; - } - onChanged(); - } else { - realmBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The realm resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRealm() { - if (realmBuilder_ == null) { - realm_ = null; - onChanged(); - } else { - realm_ = null; - realmBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The realm resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.Realm.Builder getRealmBuilder() { - - onChanged(); - return getRealmFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The realm resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { - if (realmBuilder_ != null) { - return realmBuilder_.getMessageOrBuilder(); - } else { - return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; - } - } - /** - * - * - *
-     * Required. The realm resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder> - getRealmFieldBuilder() { - if (realmBuilder_ == null) { - realmBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder>( - getRealm(), getParentForChildren(), isClean()); - realm_ = null; - } - return realmBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.CreateRealmRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CreateRealmRequest) - private static final com.google.cloud.gaming.v1alpha.CreateRealmRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CreateRealmRequest(); - } - - public static com.google.cloud.gaming.v1alpha.CreateRealmRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRealmRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRealmRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateRealmRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequestOrBuilder.java deleted file mode 100644 index 2b42a7c3..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequestOrBuilder.java +++ /dev/null @@ -1,119 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public interface CreateRealmRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.CreateRealmRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ID of the realm resource to be created.
-   * 
- * - * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The realmId. - */ - java.lang.String getRealmId(); - /** - * - * - *
-   * Required. The ID of the realm resource to be created.
-   * 
- * - * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for realmId. - */ - com.google.protobuf.ByteString getRealmIdBytes(); - - /** - * - * - *
-   * Required. The realm resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the realm field is set. - */ - boolean hasRealm(); - /** - * - * - *
-   * Required. The realm resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The realm. - */ - com.google.cloud.gaming.v1alpha.Realm getRealm(); - /** - * - * - *
-   * Required. The realm resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequest.java deleted file mode 100644 index 46806496..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequest.java +++ /dev/null @@ -1,663 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerClustersService.DeleteGameServerCluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest} - */ -public final class DeleteGameServerClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) - DeleteGameServerClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteGameServerClusterRequest.newBuilder() to construct. - private DeleteGameServerClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteGameServerClusterRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteGameServerClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteGameServerClusterRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest other = - (com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerClustersService.DeleteGameServerCluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest build() { - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest buildPartial() { - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest result = - new com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) - private static final com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest(); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGameServerClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGameServerClusterRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequestOrBuilder.java deleted file mode 100644 index fec2efc6..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequestOrBuilder.java +++ /dev/null @@ -1,56 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface DeleteGameServerClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequest.java deleted file mode 100644 index 1ed3e230..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequest.java +++ /dev/null @@ -1,662 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for
- * GameServerConfigsService.DeleteGameServerConfig.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest} - */ -public final class DeleteGameServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) - DeleteGameServerConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteGameServerConfigRequest.newBuilder() to construct. - private DeleteGameServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteGameServerConfigRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteGameServerConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteGameServerConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.class, - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the game server config to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the game server config to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest other = - (com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for
-   * GameServerConfigsService.DeleteGameServerConfig.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.class, - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest build() { - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest buildPartial() { - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest result = - new com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the game server config to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server config to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server config to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server config to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server config to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) - private static final com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest(); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGameServerConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGameServerConfigRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequestOrBuilder.java deleted file mode 100644 index 96a53a83..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -public interface DeleteGameServerConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the game server config to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the game server config to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequest.java deleted file mode 100644 index aa90308b..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequest.java +++ /dev/null @@ -1,666 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerDeploymentsService.DeleteGameServerDeployment.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest} - */ -public final class DeleteGameServerDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) - DeleteGameServerDeploymentRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteGameServerDeploymentRequest.newBuilder() to construct. - private DeleteGameServerDeploymentRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteGameServerDeploymentRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteGameServerDeploymentRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteGameServerDeploymentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest.class, - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the game server deployment to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the game server deployment to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest other = - (com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerDeploymentsService.DeleteGameServerDeployment.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest.class, - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest build() { - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest buildPartial() { - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest result = - new com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) - private static final com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest(); - } - - public static com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGameServerDeploymentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGameServerDeploymentRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequestOrBuilder.java deleted file mode 100644 index 81439114..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequestOrBuilder.java +++ /dev/null @@ -1,56 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface DeleteGameServerDeploymentRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the game server deployment to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the game server deployment to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequest.java deleted file mode 100644 index 8939c119..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequest.java +++ /dev/null @@ -1,655 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for RealmsService.DeleteRealm.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteRealmRequest} - */ -public final class DeleteRealmRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeleteRealmRequest) - DeleteRealmRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteRealmRequest.newBuilder() to construct. - private DeleteRealmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteRealmRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteRealmRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteRealmRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteRealmRequest.class, - com.google.cloud.gaming.v1alpha.DeleteRealmRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the realm to delete, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the realm to delete, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.DeleteRealmRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.DeleteRealmRequest other = - (com.google.cloud.gaming.v1alpha.DeleteRealmRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.DeleteRealmRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for RealmsService.DeleteRealm.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteRealmRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeleteRealmRequest) - com.google.cloud.gaming.v1alpha.DeleteRealmRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteRealmRequest.class, - com.google.cloud.gaming.v1alpha.DeleteRealmRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.DeleteRealmRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteRealmRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.DeleteRealmRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteRealmRequest build() { - com.google.cloud.gaming.v1alpha.DeleteRealmRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteRealmRequest buildPartial() { - com.google.cloud.gaming.v1alpha.DeleteRealmRequest result = - new com.google.cloud.gaming.v1alpha.DeleteRealmRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.DeleteRealmRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.DeleteRealmRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.DeleteRealmRequest other) { - if (other == com.google.cloud.gaming.v1alpha.DeleteRealmRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.DeleteRealmRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.DeleteRealmRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the realm to delete, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the realm to delete, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the realm to delete, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the realm to delete, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the realm to delete, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.DeleteRealmRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeleteRealmRequest) - private static final com.google.cloud.gaming.v1alpha.DeleteRealmRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeleteRealmRequest(); - } - - public static com.google.cloud.gaming.v1alpha.DeleteRealmRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRealmRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteRealmRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteRealmRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequestOrBuilder.java deleted file mode 100644 index 97f33ace..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequestOrBuilder.java +++ /dev/null @@ -1,56 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public interface DeleteRealmRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeleteRealmRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the realm to delete, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the realm to delete, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedState.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedState.java deleted file mode 100644 index eebb62d4..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedState.java +++ /dev/null @@ -1,943 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Encapsulates the expected deployed state.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeployedState} - */ -@java.lang.Deprecated -public final class DeployedState extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeployedState) - DeployedStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeployedState.newBuilder() to construct. - private DeployedState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeployedState() { - fleets_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeployedState(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeployedState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fleets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fleets_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.FleetDetails.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fleets_ = java.util.Collections.unmodifiableList(fleets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_DeployedState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeployedState.class, - com.google.cloud.gaming.v1alpha.DeployedState.Builder.class); - } - - public static final int FLEETS_FIELD_NUMBER = 1; - private java.util.List fleets_; - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public java.util.List getFleetsList() { - return fleets_; - } - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public java.util.List - getFleetsOrBuilderList() { - return fleets_; - } - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public int getFleetsCount() { - return fleets_.size(); - } - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public com.google.cloud.gaming.v1alpha.FleetDetails getFleets(int index) { - return fleets_.get(index); - } - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder getFleetsOrBuilder(int index) { - return fleets_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < fleets_.size(); i++) { - output.writeMessage(1, fleets_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < fleets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fleets_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.DeployedState)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.DeployedState other = - (com.google.cloud.gaming.v1alpha.DeployedState) obj; - - if (!getFleetsList().equals(other.getFleetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getFleetsCount() > 0) { - hash = (37 * hash) + FLEETS_FIELD_NUMBER; - hash = (53 * hash) + getFleetsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.DeployedState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Encapsulates the expected deployed state.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeployedState} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeployedState) - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_DeployedState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeployedState.class, - com.google.cloud.gaming.v1alpha.DeployedState.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.DeployedState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFleetsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (fleetsBuilder_ == null) { - fleets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - fleetsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeployedState getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeployedState build() { - com.google.cloud.gaming.v1alpha.DeployedState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeployedState buildPartial() { - com.google.cloud.gaming.v1alpha.DeployedState result = - new com.google.cloud.gaming.v1alpha.DeployedState(this); - int from_bitField0_ = bitField0_; - if (fleetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - fleets_ = java.util.Collections.unmodifiableList(fleets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fleets_ = fleets_; - } else { - result.fleets_ = fleetsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.DeployedState) { - return mergeFrom((com.google.cloud.gaming.v1alpha.DeployedState) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.DeployedState other) { - if (other == com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance()) return this; - if (fleetsBuilder_ == null) { - if (!other.fleets_.isEmpty()) { - if (fleets_.isEmpty()) { - fleets_ = other.fleets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFleetsIsMutable(); - fleets_.addAll(other.fleets_); - } - onChanged(); - } - } else { - if (!other.fleets_.isEmpty()) { - if (fleetsBuilder_.isEmpty()) { - fleetsBuilder_.dispose(); - fleetsBuilder_ = null; - fleets_ = other.fleets_; - bitField0_ = (bitField0_ & ~0x00000001); - fleetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFleetsFieldBuilder() - : null; - } else { - fleetsBuilder_.addAllMessages(other.fleets_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.DeployedState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.DeployedState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List fleets_ = - java.util.Collections.emptyList(); - - private void ensureFleetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fleets_ = new java.util.ArrayList(fleets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetDetails, - com.google.cloud.gaming.v1alpha.FleetDetails.Builder, - com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder> - fleetsBuilder_; - - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public java.util.List getFleetsList() { - if (fleetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(fleets_); - } else { - return fleetsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public int getFleetsCount() { - if (fleetsBuilder_ == null) { - return fleets_.size(); - } else { - return fleetsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public com.google.cloud.gaming.v1alpha.FleetDetails getFleets(int index) { - if (fleetsBuilder_ == null) { - return fleets_.get(index); - } else { - return fleetsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public Builder setFleets(int index, com.google.cloud.gaming.v1alpha.FleetDetails value) { - if (fleetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFleetsIsMutable(); - fleets_.set(index, value); - onChanged(); - } else { - fleetsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public Builder setFleets( - int index, com.google.cloud.gaming.v1alpha.FleetDetails.Builder builderForValue) { - if (fleetsBuilder_ == null) { - ensureFleetsIsMutable(); - fleets_.set(index, builderForValue.build()); - onChanged(); - } else { - fleetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public Builder addFleets(com.google.cloud.gaming.v1alpha.FleetDetails value) { - if (fleetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFleetsIsMutable(); - fleets_.add(value); - onChanged(); - } else { - fleetsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public Builder addFleets(int index, com.google.cloud.gaming.v1alpha.FleetDetails value) { - if (fleetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFleetsIsMutable(); - fleets_.add(index, value); - onChanged(); - } else { - fleetsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public Builder addFleets(com.google.cloud.gaming.v1alpha.FleetDetails.Builder builderForValue) { - if (fleetsBuilder_ == null) { - ensureFleetsIsMutable(); - fleets_.add(builderForValue.build()); - onChanged(); - } else { - fleetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public Builder addFleets( - int index, com.google.cloud.gaming.v1alpha.FleetDetails.Builder builderForValue) { - if (fleetsBuilder_ == null) { - ensureFleetsIsMutable(); - fleets_.add(index, builderForValue.build()); - onChanged(); - } else { - fleetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public Builder addAllFleets( - java.lang.Iterable values) { - if (fleetsBuilder_ == null) { - ensureFleetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fleets_); - onChanged(); - } else { - fleetsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public Builder clearFleets() { - if (fleetsBuilder_ == null) { - fleets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - fleetsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public Builder removeFleets(int index) { - if (fleetsBuilder_ == null) { - ensureFleetsIsMutable(); - fleets_.remove(index); - onChanged(); - } else { - fleetsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public com.google.cloud.gaming.v1alpha.FleetDetails.Builder getFleetsBuilder(int index) { - return getFleetsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder getFleetsOrBuilder(int index) { - if (fleetsBuilder_ == null) { - return fleets_.get(index); - } else { - return fleetsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public java.util.List - getFleetsOrBuilderList() { - if (fleetsBuilder_ != null) { - return fleetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fleets_); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public com.google.cloud.gaming.v1alpha.FleetDetails.Builder addFleetsBuilder() { - return getFleetsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.FleetDetails.getDefaultInstance()); - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public com.google.cloud.gaming.v1alpha.FleetDetails.Builder addFleetsBuilder(int index) { - return getFleetsFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.FleetDetails.getDefaultInstance()); - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - public java.util.List - getFleetsBuilderList() { - return getFleetsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetDetails, - com.google.cloud.gaming.v1alpha.FleetDetails.Builder, - com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder> - getFleetsFieldBuilder() { - if (fleetsBuilder_ == null) { - fleetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetDetails, - com.google.cloud.gaming.v1alpha.FleetDetails.Builder, - com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder>( - fleets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - fleets_ = null; - } - return fleetsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.DeployedState) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeployedState) - private static final com.google.cloud.gaming.v1alpha.DeployedState DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeployedState(); - } - - public static com.google.cloud.gaming.v1alpha.DeployedState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeployedState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployedState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeployedState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedStateOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedStateOrBuilder.java deleted file mode 100644 index 88ed1bdf..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedStateOrBuilder.java +++ /dev/null @@ -1,78 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -@java.lang.Deprecated -public interface DeployedStateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeployedState) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - java.util.List getFleetsList(); - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - com.google.cloud.gaming.v1alpha.FleetDetails getFleets(int index); - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - int getFleetsCount(); - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - java.util.List - getFleetsOrBuilderList(); - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; - */ - com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder getFleetsOrBuilder(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequest.java deleted file mode 100644 index 1b9ad260..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequest.java +++ /dev/null @@ -1,642 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerDeploymentsService.FetchDeploymentState.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FetchDeploymentStateRequest} - */ -public final class FetchDeploymentStateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) - FetchDeploymentStateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchDeploymentStateRequest.newBuilder() to construct. - private FetchDeploymentStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchDeploymentStateRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchDeploymentStateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FetchDeploymentStateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the game server deployment, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the game server deployment, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest other = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerDeploymentsService.FetchDeploymentState.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FetchDeploymentStateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest build() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest buildPartial() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest result = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest other) { - if (other == com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) - private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest(); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchDeploymentStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchDeploymentStateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequestOrBuilder.java deleted file mode 100644 index d878d2ab..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequestOrBuilder.java +++ /dev/null @@ -1,52 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface FetchDeploymentStateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the game server deployment, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the game server deployment, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponse.java deleted file mode 100644 index e41620f3..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponse.java +++ /dev/null @@ -1,6676 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for GameServerDeploymentsService.FetchDeploymentState.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FetchDeploymentStateResponse} - */ -public final class FetchDeploymentStateResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) - FetchDeploymentStateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use FetchDeploymentStateResponse.newBuilder() to construct. - private FetchDeploymentStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FetchDeploymentStateResponse() { - details_ = java.util.Collections.emptyList(); - unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FetchDeploymentStateResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FetchDeploymentStateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = - new java.util.ArrayList< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails>(); - mutable_bitField0_ |= 0x00000001; - } - details_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unavailable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unavailable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = java.util.Collections.unmodifiableList(details_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unavailable_ = unavailable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.Builder.class); - } - - public interface DeployedFleetDetailsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Information about the agones fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - * - * @return Whether the fleet field is set. - */ - boolean hasFleet(); - /** - * - * - *
-     * Information about the agones fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - * - * @return The fleet. - */ - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - getFleet(); - /** - * - * - *
-     * Information about the agones fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - */ - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetOrBuilder - getFleetOrBuilder(); - - /** - * - * - *
-     * Information about the agones autoscaler for that fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - * - * @return Whether the autoscaler field is set. - */ - boolean hasAutoscaler(); - /** - * - * - *
-     * Information about the agones autoscaler for that fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - * - * @return The autoscaler. - */ - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - getAutoscaler(); - /** - * - * - *
-     * Information about the agones autoscaler for that fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - */ - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscalerOrBuilder - getAutoscalerOrBuilder(); - } - /** - * - * - *
-   * Details of the deployed fleet.
-   * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails} - */ - public static final class DeployedFleetDetails extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) - DeployedFleetDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeployedFleetDetails.newBuilder() to construct. - private DeployedFleetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeployedFleetDetails() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeployedFleetDetails(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeployedFleetDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.Builder - subBuilder = null; - if (fleet_ != null) { - subBuilder = fleet_.toBuilder(); - } - fleet_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fleet_); - fleet_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.Builder - subBuilder = null; - if (autoscaler_ != null) { - subBuilder = autoscaler_.toBuilder(); - } - autoscaler_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoscaler_); - autoscaler_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Builder.class); - } - - public interface FleetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * The name of the Agones game server fleet.
-       * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-       * The name of the Agones game server fleet.
-       * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-       * The Agones fleet spec.
-       * This is sent because it is possible that we may no longer have the
-       * corresponding game server config in our systems.
-       * 
- * - * string agones_spec = 2; - * - * @return The agonesSpec. - */ - java.lang.String getAgonesSpec(); - /** - * - * - *
-       * The Agones fleet spec.
-       * This is sent because it is possible that we may no longer have the
-       * corresponding game server config in our systems.
-       * 
- * - * string agones_spec = 2; - * - * @return The bytes for agonesSpec. - */ - com.google.protobuf.ByteString getAgonesSpecBytes(); - - /** - * - * - *
-       * The cluster name.
-       * 
- * - * string cluster = 3; - * - * @return The cluster. - */ - java.lang.String getCluster(); - /** - * - * - *
-       * The cluster name.
-       * 
- * - * string cluster = 3; - * - * @return The bytes for cluster. - */ - com.google.protobuf.ByteString getClusterBytes(); - - /** - * - * - *
-       * The source spec that is used to create the fleet.
-       * The game server config and fleet config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return Whether the specSource field is set. - */ - boolean hasSpecSource(); - /** - * - * - *
-       * The source spec that is used to create the fleet.
-       * The game server config and fleet config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return The specSource. - */ - com.google.cloud.gaming.v1alpha.SpecSource getSpecSource(); - /** - * - * - *
-       * The source spec that is used to create the fleet.
-       * The game server config and fleet config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder(); - - /** - * - * - *
-       * The current status of the fleet.
-       * Includes count of game servers in various states.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-       * The current status of the fleet.
-       * Includes count of game servers in various states.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - * - * @return The status. - */ - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus - getStatus(); - /** - * - * - *
-       * The current status of the fleet.
-       * Includes count of game servers in various states.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - */ - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatusOrBuilder - getStatusOrBuilder(); - } - /** - * - * - *
-     * Fleet specification and details.
-     * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet} - */ - public static final class Fleet extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) - FleetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Fleet.newBuilder() to construct. - private Fleet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Fleet() { - name_ = ""; - agonesSpec_ = ""; - cluster_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Fleet(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Fleet( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - agonesSpec_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - cluster_ = s; - break; - } - case 34: - { - com.google.cloud.gaming.v1alpha.SpecSource.Builder subBuilder = null; - if (specSource_ != null) { - subBuilder = specSource_.toBuilder(); - } - specSource_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.SpecSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(specSource_); - specSource_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.Builder - subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.Builder.class); - } - - public interface FleetStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-         * The number of available servers.
-         * The are no players connected to this servers.
-         * 
- * - * int64 available_count = 1; - * - * @return The availableCount. - */ - long getAvailableCount(); - - /** - * - * - *
-         * The number of allocated servers.
-         * These are servers allocated to game sessions.
-         * 
- * - * int64 allocated_count = 2; - * - * @return The allocatedCount. - */ - long getAllocatedCount(); - - /** - * - * - *
-         * The number of reserved servers.
-         * Reserved instances won't be deleted on scale down, but won't cause
-         * an autoscaler to scale up.
-         * 
- * - * int64 reserved_count = 3; - * - * @return The reservedCount. - */ - long getReservedCount(); - - /** - * - * - *
-         * The total number of current GameServer replicas.
-         * 
- * - * int64 replica_count = 4; - * - * @return The replicaCount. - */ - long getReplicaCount(); - } - /** - * - * - *
-       * FleetStatus has details about the fleets like how many are running,
-       * how many allocated and so on.
-       * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus} - */ - public static final class FleetStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) - FleetStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use FleetStatus.newBuilder() to construct. - private FleetStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FleetStatus() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FleetStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FleetStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - availableCount_ = input.readInt64(); - break; - } - case 16: - { - allocatedCount_ = input.readInt64(); - break; - } - case 24: - { - reservedCount_ = input.readInt64(); - break; - } - case 32: - { - replicaCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.Builder.class); - } - - public static final int AVAILABLE_COUNT_FIELD_NUMBER = 1; - private long availableCount_; - /** - * - * - *
-         * The number of available servers.
-         * The are no players connected to this servers.
-         * 
- * - * int64 available_count = 1; - * - * @return The availableCount. - */ - public long getAvailableCount() { - return availableCount_; - } - - public static final int ALLOCATED_COUNT_FIELD_NUMBER = 2; - private long allocatedCount_; - /** - * - * - *
-         * The number of allocated servers.
-         * These are servers allocated to game sessions.
-         * 
- * - * int64 allocated_count = 2; - * - * @return The allocatedCount. - */ - public long getAllocatedCount() { - return allocatedCount_; - } - - public static final int RESERVED_COUNT_FIELD_NUMBER = 3; - private long reservedCount_; - /** - * - * - *
-         * The number of reserved servers.
-         * Reserved instances won't be deleted on scale down, but won't cause
-         * an autoscaler to scale up.
-         * 
- * - * int64 reserved_count = 3; - * - * @return The reservedCount. - */ - public long getReservedCount() { - return reservedCount_; - } - - public static final int REPLICA_COUNT_FIELD_NUMBER = 4; - private long replicaCount_; - /** - * - * - *
-         * The total number of current GameServer replicas.
-         * 
- * - * int64 replica_count = 4; - * - * @return The replicaCount. - */ - public long getReplicaCount() { - return replicaCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (availableCount_ != 0L) { - output.writeInt64(1, availableCount_); - } - if (allocatedCount_ != 0L) { - output.writeInt64(2, allocatedCount_); - } - if (reservedCount_ != 0L) { - output.writeInt64(3, reservedCount_); - } - if (replicaCount_ != 0L) { - output.writeInt64(4, replicaCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (availableCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, availableCount_); - } - if (allocatedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, allocatedCount_); - } - if (reservedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, reservedCount_); - } - if (replicaCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, replicaCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus - other = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus) - obj; - - if (getAvailableCount() != other.getAvailableCount()) return false; - if (getAllocatedCount() != other.getAllocatedCount()) return false; - if (getReservedCount() != other.getReservedCount()) return false; - if (getReplicaCount() != other.getReplicaCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVAILABLE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAvailableCount()); - hash = (37 * hash) + ALLOCATED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAllocatedCount()); - hash = (37 * hash) + RESERVED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedCount()); - hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReplicaCount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-         * FleetStatus has details about the fleets like how many are running,
-         * how many allocated and so on.
-         * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - availableCount_ = 0L; - - allocatedCount_ = 0L; - - reservedCount_ = 0L; - - replicaCount_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus - build() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus - buildPartial() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus - result = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus(this); - result.availableCount_ = availableCount_; - result.allocatedCount_ = allocatedCount_; - result.reservedCount_ = reservedCount_; - result.replicaCount_ = replicaCount_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus - other) { - if (other - == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.getDefaultInstance()) return this; - if (other.getAvailableCount() != 0L) { - setAvailableCount(other.getAvailableCount()); - } - if (other.getAllocatedCount() != 0L) { - setAllocatedCount(other.getAllocatedCount()); - } - if (other.getReservedCount() != 0L) { - setReservedCount(other.getReservedCount()); - } - if (other.getReplicaCount() != 0L) { - setReplicaCount(other.getReplicaCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long availableCount_; - /** - * - * - *
-           * The number of available servers.
-           * The are no players connected to this servers.
-           * 
- * - * int64 available_count = 1; - * - * @return The availableCount. - */ - public long getAvailableCount() { - return availableCount_; - } - /** - * - * - *
-           * The number of available servers.
-           * The are no players connected to this servers.
-           * 
- * - * int64 available_count = 1; - * - * @param value The availableCount to set. - * @return This builder for chaining. - */ - public Builder setAvailableCount(long value) { - - availableCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-           * The number of available servers.
-           * The are no players connected to this servers.
-           * 
- * - * int64 available_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearAvailableCount() { - - availableCount_ = 0L; - onChanged(); - return this; - } - - private long allocatedCount_; - /** - * - * - *
-           * The number of allocated servers.
-           * These are servers allocated to game sessions.
-           * 
- * - * int64 allocated_count = 2; - * - * @return The allocatedCount. - */ - public long getAllocatedCount() { - return allocatedCount_; - } - /** - * - * - *
-           * The number of allocated servers.
-           * These are servers allocated to game sessions.
-           * 
- * - * int64 allocated_count = 2; - * - * @param value The allocatedCount to set. - * @return This builder for chaining. - */ - public Builder setAllocatedCount(long value) { - - allocatedCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-           * The number of allocated servers.
-           * These are servers allocated to game sessions.
-           * 
- * - * int64 allocated_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearAllocatedCount() { - - allocatedCount_ = 0L; - onChanged(); - return this; - } - - private long reservedCount_; - /** - * - * - *
-           * The number of reserved servers.
-           * Reserved instances won't be deleted on scale down, but won't cause
-           * an autoscaler to scale up.
-           * 
- * - * int64 reserved_count = 3; - * - * @return The reservedCount. - */ - public long getReservedCount() { - return reservedCount_; - } - /** - * - * - *
-           * The number of reserved servers.
-           * Reserved instances won't be deleted on scale down, but won't cause
-           * an autoscaler to scale up.
-           * 
- * - * int64 reserved_count = 3; - * - * @param value The reservedCount to set. - * @return This builder for chaining. - */ - public Builder setReservedCount(long value) { - - reservedCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-           * The number of reserved servers.
-           * Reserved instances won't be deleted on scale down, but won't cause
-           * an autoscaler to scale up.
-           * 
- * - * int64 reserved_count = 3; - * - * @return This builder for chaining. - */ - public Builder clearReservedCount() { - - reservedCount_ = 0L; - onChanged(); - return this; - } - - private long replicaCount_; - /** - * - * - *
-           * The total number of current GameServer replicas.
-           * 
- * - * int64 replica_count = 4; - * - * @return The replicaCount. - */ - public long getReplicaCount() { - return replicaCount_; - } - /** - * - * - *
-           * The total number of current GameServer replicas.
-           * 
- * - * int64 replica_count = 4; - * - * @param value The replicaCount to set. - * @return This builder for chaining. - */ - public Builder setReplicaCount(long value) { - - replicaCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-           * The total number of current GameServer replicas.
-           * 
- * - * int64 replica_count = 4; - * - * @return This builder for chaining. - */ - public Builder clearReplicaCount() { - - replicaCount_ = 0L; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) - private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus(); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FleetStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FleetStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-       * The name of the Agones game server fleet.
-       * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-       * The name of the Agones game server fleet.
-       * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AGONES_SPEC_FIELD_NUMBER = 2; - private volatile java.lang.Object agonesSpec_; - /** - * - * - *
-       * The Agones fleet spec.
-       * This is sent because it is possible that we may no longer have the
-       * corresponding game server config in our systems.
-       * 
- * - * string agones_spec = 2; - * - * @return The agonesSpec. - */ - public java.lang.String getAgonesSpec() { - java.lang.Object ref = agonesSpec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - agonesSpec_ = s; - return s; - } - } - /** - * - * - *
-       * The Agones fleet spec.
-       * This is sent because it is possible that we may no longer have the
-       * corresponding game server config in our systems.
-       * 
- * - * string agones_spec = 2; - * - * @return The bytes for agonesSpec. - */ - public com.google.protobuf.ByteString getAgonesSpecBytes() { - java.lang.Object ref = agonesSpec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - agonesSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_FIELD_NUMBER = 3; - private volatile java.lang.Object cluster_; - /** - * - * - *
-       * The cluster name.
-       * 
- * - * string cluster = 3; - * - * @return The cluster. - */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; - } - } - /** - * - * - *
-       * The cluster name.
-       * 
- * - * string cluster = 3; - * - * @return The bytes for cluster. - */ - public com.google.protobuf.ByteString getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPEC_SOURCE_FIELD_NUMBER = 4; - private com.google.cloud.gaming.v1alpha.SpecSource specSource_; - /** - * - * - *
-       * The source spec that is used to create the fleet.
-       * The game server config and fleet config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return Whether the specSource field is set. - */ - public boolean hasSpecSource() { - return specSource_ != null; - } - /** - * - * - *
-       * The source spec that is used to create the fleet.
-       * The game server config and fleet config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return The specSource. - */ - public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } - /** - * - * - *
-       * The source spec that is used to create the fleet.
-       * The game server config and fleet config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { - return getSpecSource(); - } - - public static final int STATUS_FIELD_NUMBER = 5; - private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus - status_; - /** - * - * - *
-       * The current status of the fleet.
-       * Includes count of game servers in various states.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-       * The current status of the fleet.
-       * Includes count of game servers in various states.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - * - * @return The status. - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus - getStatus() { - return status_ == null - ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.getDefaultInstance() - : status_; - } - /** - * - * - *
-       * The current status of the fleet.
-       * Includes count of game servers in various states.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatusOrBuilder - getStatusOrBuilder() { - return getStatus(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getAgonesSpecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, agonesSpec_); - } - if (!getClusterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cluster_); - } - if (specSource_ != null) { - output.writeMessage(4, getSpecSource()); - } - if (status_ != null) { - output.writeMessage(5, getStatus()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getAgonesSpecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, agonesSpec_); - } - if (!getClusterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cluster_); - } - if (specSource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpecSource()); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStatus()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - other = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet) - obj; - - if (!getName().equals(other.getName())) return false; - if (!getAgonesSpec().equals(other.getAgonesSpec())) return false; - if (!getCluster().equals(other.getCluster())) return false; - if (hasSpecSource() != other.hasSpecSource()) return false; - if (hasSpecSource()) { - if (!getSpecSource().equals(other.getSpecSource())) return false; - } - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + AGONES_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getAgonesSpec().hashCode(); - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - if (hasSpecSource()) { - hash = (37 * hash) + SPEC_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSpecSource().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * Fleet specification and details.
-       * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - agonesSpec_ = ""; - - cluster_ = ""; - - if (specSourceBuilder_ == null) { - specSource_ = null; - } else { - specSource_ = null; - specSourceBuilder_ = null; - } - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet - build() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet - buildPartial() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - result = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet(this); - result.name_ = name_; - result.agonesSpec_ = agonesSpec_; - result.cluster_ = cluster_; - if (specSourceBuilder_ == null) { - result.specSource_ = specSource_; - } else { - result.specSource_ = specSourceBuilder_.build(); - } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - other) { - if (other - == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getAgonesSpec().isEmpty()) { - agonesSpec_ = other.agonesSpec_; - onChanged(); - } - if (!other.getCluster().isEmpty()) { - cluster_ = other.cluster_; - onChanged(); - } - if (other.hasSpecSource()) { - mergeSpecSource(other.getSpecSource()); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object agonesSpec_ = ""; - /** - * - * - *
-         * The Agones fleet spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string agones_spec = 2; - * - * @return The agonesSpec. - */ - public java.lang.String getAgonesSpec() { - java.lang.Object ref = agonesSpec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - agonesSpec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The Agones fleet spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string agones_spec = 2; - * - * @return The bytes for agonesSpec. - */ - public com.google.protobuf.ByteString getAgonesSpecBytes() { - java.lang.Object ref = agonesSpec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - agonesSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The Agones fleet spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string agones_spec = 2; - * - * @param value The agonesSpec to set. - * @return This builder for chaining. - */ - public Builder setAgonesSpec(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - agonesSpec_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * The Agones fleet spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string agones_spec = 2; - * - * @return This builder for chaining. - */ - public Builder clearAgonesSpec() { - - agonesSpec_ = getDefaultInstance().getAgonesSpec(); - onChanged(); - return this; - } - /** - * - * - *
-         * The Agones fleet spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string agones_spec = 2; - * - * @param value The bytes for agonesSpec to set. - * @return This builder for chaining. - */ - public Builder setAgonesSpecBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - agonesSpec_ = value; - onChanged(); - return this; - } - - private java.lang.Object cluster_ = ""; - /** - * - * - *
-         * The cluster name.
-         * 
- * - * string cluster = 3; - * - * @return The cluster. - */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The cluster name.
-         * 
- * - * string cluster = 3; - * - * @return The bytes for cluster. - */ - public com.google.protobuf.ByteString getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The cluster name.
-         * 
- * - * string cluster = 3; - * - * @param value The cluster to set. - * @return This builder for chaining. - */ - public Builder setCluster(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cluster_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * The cluster name.
-         * 
- * - * string cluster = 3; - * - * @return This builder for chaining. - */ - public Builder clearCluster() { - - cluster_ = getDefaultInstance().getCluster(); - onChanged(); - return this; - } - /** - * - * - *
-         * The cluster name.
-         * 
- * - * string cluster = 3; - * - * @param value The bytes for cluster to set. - * @return This builder for chaining. - */ - public Builder setClusterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cluster_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.SpecSource specSource_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> - specSourceBuilder_; - /** - * - * - *
-         * The source spec that is used to create the fleet.
-         * The game server config and fleet config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return Whether the specSource field is set. - */ - public boolean hasSpecSource() { - return specSourceBuilder_ != null || specSource_ != null; - } - /** - * - * - *
-         * The source spec that is used to create the fleet.
-         * The game server config and fleet config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return The specSource. - */ - public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { - if (specSourceBuilder_ == null) { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } else { - return specSourceBuilder_.getMessage(); - } - } - /** - * - * - *
-         * The source spec that is used to create the fleet.
-         * The game server config and fleet config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public Builder setSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { - if (specSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - specSource_ = value; - onChanged(); - } else { - specSourceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-         * The source spec that is used to create the fleet.
-         * The game server config and fleet config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public Builder setSpecSource( - com.google.cloud.gaming.v1alpha.SpecSource.Builder builderForValue) { - if (specSourceBuilder_ == null) { - specSource_ = builderForValue.build(); - onChanged(); - } else { - specSourceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-         * The source spec that is used to create the fleet.
-         * The game server config and fleet config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public Builder mergeSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { - if (specSourceBuilder_ == null) { - if (specSource_ != null) { - specSource_ = - com.google.cloud.gaming.v1alpha.SpecSource.newBuilder(specSource_) - .mergeFrom(value) - .buildPartial(); - } else { - specSource_ = value; - } - onChanged(); - } else { - specSourceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-         * The source spec that is used to create the fleet.
-         * The game server config and fleet config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public Builder clearSpecSource() { - if (specSourceBuilder_ == null) { - specSource_ = null; - onChanged(); - } else { - specSource_ = null; - specSourceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-         * The source spec that is used to create the fleet.
-         * The game server config and fleet config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public com.google.cloud.gaming.v1alpha.SpecSource.Builder getSpecSourceBuilder() { - - onChanged(); - return getSpecSourceFieldBuilder().getBuilder(); - } - /** - * - * - *
-         * The source spec that is used to create the fleet.
-         * The game server config and fleet config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { - if (specSourceBuilder_ != null) { - return specSourceBuilder_.getMessageOrBuilder(); - } else { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } - } - /** - * - * - *
-         * The source spec that is used to create the fleet.
-         * The game server config and fleet config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> - getSpecSourceFieldBuilder() { - if (specSourceBuilder_ == null) { - specSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder>( - getSpecSource(), getParentForChildren(), isClean()); - specSource_ = null; - } - return specSourceBuilder_; - } - - private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus - status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-         * The current status of the fleet.
-         * Includes count of game servers in various states.
-         * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-         * The current status of the fleet.
-         * Includes count of game servers in various states.
-         * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - * - * @return The status. - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus - getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-         * The current status of the fleet.
-         * Includes count of game servers in various states.
-         * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - */ - public Builder setStatus( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus - value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-         * The current status of the fleet.
-         * Includes count of game servers in various states.
-         * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - */ - public Builder setStatus( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus.Builder - builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-         * The current status of the fleet.
-         * Includes count of game servers in various states.
-         * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - */ - public Builder mergeStatus( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .FleetStatus - value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-         * The current status of the fleet.
-         * Includes count of game servers in various states.
-         * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-         * The current status of the fleet.
-         * Includes count of game servers in various states.
-         * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.Builder - getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-         * The current status of the fleet.
-         * Includes count of game servers in various states.
-         * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatusOrBuilder - getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-         * The current status of the fleet.
-         * Includes count of game servers in various states.
-         * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatus.Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.FleetStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatus.Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet.FleetStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) - private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet(); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.Fleet - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fleet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Fleet(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface FleetAutoscalerOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string autoscaler_name = 1; - * - * @return The autoscalerName. - */ - java.lang.String getAutoscalerName(); - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string autoscaler_name = 1; - * - * @return The bytes for autoscalerName. - */ - com.google.protobuf.ByteString getAutoscalerNameBytes(); - - /** - * - * - *
-       * The source spec that is used to create the autoscaler.
-       * The game server config and scaling config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return Whether the specSource field is set. - */ - boolean hasSpecSource(); - /** - * - * - *
-       * The source spec that is used to create the autoscaler.
-       * The game server config and scaling config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return The specSource. - */ - com.google.cloud.gaming.v1alpha.SpecSource getSpecSource(); - /** - * - * - *
-       * The source spec that is used to create the autoscaler.
-       * The game server config and scaling config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder(); - - /** - * - * - *
-       * The autoscaler spec.
-       * This is sent because it is possible that we may no longer have the
-       * corresponding game server config in our systems.
-       * 
- * - * string fleet_autoscaler_spec = 3; - * - * @return The fleetAutoscalerSpec. - */ - java.lang.String getFleetAutoscalerSpec(); - /** - * - * - *
-       * The autoscaler spec.
-       * This is sent because it is possible that we may no longer have the
-       * corresponding game server config in our systems.
-       * 
- * - * string fleet_autoscaler_spec = 3; - * - * @return The bytes for fleetAutoscalerSpec. - */ - com.google.protobuf.ByteString getFleetAutoscalerSpecBytes(); - } - /** - * - * - *
-     * Details about the autoscaler.
-     * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler} - */ - public static final class FleetAutoscaler extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) - FleetAutoscalerOrBuilder { - private static final long serialVersionUID = 0L; - // Use FleetAutoscaler.newBuilder() to construct. - private FleetAutoscaler(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FleetAutoscaler() { - autoscalerName_ = ""; - fleetAutoscalerSpec_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FleetAutoscaler(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FleetAutoscaler( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - autoscalerName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - fleetAutoscalerSpec_ = s; - break; - } - case 34: - { - com.google.cloud.gaming.v1alpha.SpecSource.Builder subBuilder = null; - if (specSource_ != null) { - subBuilder = specSource_.toBuilder(); - } - specSource_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.SpecSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(specSource_); - specSource_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.Builder.class); - } - - public static final int AUTOSCALER_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object autoscalerName_; - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string autoscaler_name = 1; - * - * @return The autoscalerName. - */ - public java.lang.String getAutoscalerName() { - java.lang.Object ref = autoscalerName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoscalerName_ = s; - return s; - } - } - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string autoscaler_name = 1; - * - * @return The bytes for autoscalerName. - */ - public com.google.protobuf.ByteString getAutoscalerNameBytes() { - java.lang.Object ref = autoscalerName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - autoscalerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPEC_SOURCE_FIELD_NUMBER = 4; - private com.google.cloud.gaming.v1alpha.SpecSource specSource_; - /** - * - * - *
-       * The source spec that is used to create the autoscaler.
-       * The game server config and scaling config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return Whether the specSource field is set. - */ - public boolean hasSpecSource() { - return specSource_ != null; - } - /** - * - * - *
-       * The source spec that is used to create the autoscaler.
-       * The game server config and scaling config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return The specSource. - */ - public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } - /** - * - * - *
-       * The source spec that is used to create the autoscaler.
-       * The game server config and scaling config may no longer
-       * exist in the system.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { - return getSpecSource(); - } - - public static final int FLEET_AUTOSCALER_SPEC_FIELD_NUMBER = 3; - private volatile java.lang.Object fleetAutoscalerSpec_; - /** - * - * - *
-       * The autoscaler spec.
-       * This is sent because it is possible that we may no longer have the
-       * corresponding game server config in our systems.
-       * 
- * - * string fleet_autoscaler_spec = 3; - * - * @return The fleetAutoscalerSpec. - */ - public java.lang.String getFleetAutoscalerSpec() { - java.lang.Object ref = fleetAutoscalerSpec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fleetAutoscalerSpec_ = s; - return s; - } - } - /** - * - * - *
-       * The autoscaler spec.
-       * This is sent because it is possible that we may no longer have the
-       * corresponding game server config in our systems.
-       * 
- * - * string fleet_autoscaler_spec = 3; - * - * @return The bytes for fleetAutoscalerSpec. - */ - public com.google.protobuf.ByteString getFleetAutoscalerSpecBytes() { - java.lang.Object ref = fleetAutoscalerSpec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fleetAutoscalerSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAutoscalerNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoscalerName_); - } - if (!getFleetAutoscalerSpecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fleetAutoscalerSpec_); - } - if (specSource_ != null) { - output.writeMessage(4, getSpecSource()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAutoscalerNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoscalerName_); - } - if (!getFleetAutoscalerSpecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fleetAutoscalerSpec_); - } - if (specSource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpecSource()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - other = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler) - obj; - - if (!getAutoscalerName().equals(other.getAutoscalerName())) return false; - if (hasSpecSource() != other.hasSpecSource()) return false; - if (hasSpecSource()) { - if (!getSpecSource().equals(other.getSpecSource())) return false; - } - if (!getFleetAutoscalerSpec().equals(other.getFleetAutoscalerSpec())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AUTOSCALER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAutoscalerName().hashCode(); - if (hasSpecSource()) { - hash = (37 * hash) + SPEC_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSpecSource().hashCode(); - } - hash = (37 * hash) + FLEET_AUTOSCALER_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getFleetAutoscalerSpec().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * Details about the autoscaler.
-       * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscalerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - autoscalerName_ = ""; - - if (specSourceBuilder_ == null) { - specSource_ = null; - } else { - specSource_ = null; - specSourceBuilder_ = null; - } - fleetAutoscalerSpec_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - build() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - buildPartial() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - result = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler(this); - result.autoscalerName_ = autoscalerName_; - if (specSourceBuilder_ == null) { - result.specSource_ = specSource_; - } else { - result.specSource_ = specSourceBuilder_.build(); - } - result.fleetAutoscalerSpec_ = fleetAutoscalerSpec_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - other) { - if (other - == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.getDefaultInstance()) return this; - if (!other.getAutoscalerName().isEmpty()) { - autoscalerName_ = other.autoscalerName_; - onChanged(); - } - if (other.hasSpecSource()) { - mergeSpecSource(other.getSpecSource()); - } - if (!other.getFleetAutoscalerSpec().isEmpty()) { - fleetAutoscalerSpec_ = other.fleetAutoscalerSpec_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object autoscalerName_ = ""; - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string autoscaler_name = 1; - * - * @return The autoscalerName. - */ - public java.lang.String getAutoscalerName() { - java.lang.Object ref = autoscalerName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoscalerName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string autoscaler_name = 1; - * - * @return The bytes for autoscalerName. - */ - public com.google.protobuf.ByteString getAutoscalerNameBytes() { - java.lang.Object ref = autoscalerName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - autoscalerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string autoscaler_name = 1; - * - * @param value The autoscalerName to set. - * @return This builder for chaining. - */ - public Builder setAutoscalerName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - autoscalerName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string autoscaler_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearAutoscalerName() { - - autoscalerName_ = getDefaultInstance().getAutoscalerName(); - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string autoscaler_name = 1; - * - * @param value The bytes for autoscalerName to set. - * @return This builder for chaining. - */ - public Builder setAutoscalerNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - autoscalerName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.SpecSource specSource_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> - specSourceBuilder_; - /** - * - * - *
-         * The source spec that is used to create the autoscaler.
-         * The game server config and scaling config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return Whether the specSource field is set. - */ - public boolean hasSpecSource() { - return specSourceBuilder_ != null || specSource_ != null; - } - /** - * - * - *
-         * The source spec that is used to create the autoscaler.
-         * The game server config and scaling config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - * - * @return The specSource. - */ - public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { - if (specSourceBuilder_ == null) { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } else { - return specSourceBuilder_.getMessage(); - } - } - /** - * - * - *
-         * The source spec that is used to create the autoscaler.
-         * The game server config and scaling config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public Builder setSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { - if (specSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - specSource_ = value; - onChanged(); - } else { - specSourceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-         * The source spec that is used to create the autoscaler.
-         * The game server config and scaling config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public Builder setSpecSource( - com.google.cloud.gaming.v1alpha.SpecSource.Builder builderForValue) { - if (specSourceBuilder_ == null) { - specSource_ = builderForValue.build(); - onChanged(); - } else { - specSourceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-         * The source spec that is used to create the autoscaler.
-         * The game server config and scaling config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public Builder mergeSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { - if (specSourceBuilder_ == null) { - if (specSource_ != null) { - specSource_ = - com.google.cloud.gaming.v1alpha.SpecSource.newBuilder(specSource_) - .mergeFrom(value) - .buildPartial(); - } else { - specSource_ = value; - } - onChanged(); - } else { - specSourceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-         * The source spec that is used to create the autoscaler.
-         * The game server config and scaling config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public Builder clearSpecSource() { - if (specSourceBuilder_ == null) { - specSource_ = null; - onChanged(); - } else { - specSource_ = null; - specSourceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-         * The source spec that is used to create the autoscaler.
-         * The game server config and scaling config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public com.google.cloud.gaming.v1alpha.SpecSource.Builder getSpecSourceBuilder() { - - onChanged(); - return getSpecSourceFieldBuilder().getBuilder(); - } - /** - * - * - *
-         * The source spec that is used to create the autoscaler.
-         * The game server config and scaling config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { - if (specSourceBuilder_ != null) { - return specSourceBuilder_.getMessageOrBuilder(); - } else { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } - } - /** - * - * - *
-         * The source spec that is used to create the autoscaler.
-         * The game server config and scaling config may no longer
-         * exist in the system.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> - getSpecSourceFieldBuilder() { - if (specSourceBuilder_ == null) { - specSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder>( - getSpecSource(), getParentForChildren(), isClean()); - specSource_ = null; - } - return specSourceBuilder_; - } - - private java.lang.Object fleetAutoscalerSpec_ = ""; - /** - * - * - *
-         * The autoscaler spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string fleet_autoscaler_spec = 3; - * - * @return The fleetAutoscalerSpec. - */ - public java.lang.String getFleetAutoscalerSpec() { - java.lang.Object ref = fleetAutoscalerSpec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fleetAutoscalerSpec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The autoscaler spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string fleet_autoscaler_spec = 3; - * - * @return The bytes for fleetAutoscalerSpec. - */ - public com.google.protobuf.ByteString getFleetAutoscalerSpecBytes() { - java.lang.Object ref = fleetAutoscalerSpec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fleetAutoscalerSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The autoscaler spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string fleet_autoscaler_spec = 3; - * - * @param value The fleetAutoscalerSpec to set. - * @return This builder for chaining. - */ - public Builder setFleetAutoscalerSpec(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fleetAutoscalerSpec_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * The autoscaler spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string fleet_autoscaler_spec = 3; - * - * @return This builder for chaining. - */ - public Builder clearFleetAutoscalerSpec() { - - fleetAutoscalerSpec_ = getDefaultInstance().getFleetAutoscalerSpec(); - onChanged(); - return this; - } - /** - * - * - *
-         * The autoscaler spec.
-         * This is sent because it is possible that we may no longer have the
-         * corresponding game server config in our systems.
-         * 
- * - * string fleet_autoscaler_spec = 3; - * - * @param value The bytes for fleetAutoscalerSpec to set. - * @return This builder for chaining. - */ - public Builder setFleetAutoscalerSpecBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fleetAutoscalerSpec_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) - private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler(); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails.FleetAutoscaler - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FleetAutoscaler parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FleetAutoscaler(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int FLEET_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - fleet_; - /** - * - * - *
-     * Information about the agones fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - * - * @return Whether the fleet field is set. - */ - public boolean hasFleet() { - return fleet_ != null; - } - /** - * - * - *
-     * Information about the agones fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - * - * @return The fleet. - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - getFleet() { - return fleet_ == null - ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .getDefaultInstance() - : fleet_; - } - /** - * - * - *
-     * Information about the agones fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetOrBuilder - getFleetOrBuilder() { - return getFleet(); - } - - public static final int AUTOSCALER_FIELD_NUMBER = 2; - private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - autoscaler_; - /** - * - * - *
-     * Information about the agones autoscaler for that fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - * - * @return Whether the autoscaler field is set. - */ - public boolean hasAutoscaler() { - return autoscaler_ != null; - } - /** - * - * - *
-     * Information about the agones autoscaler for that fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - * - * @return The autoscaler. - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - getAutoscaler() { - return autoscaler_ == null - ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.getDefaultInstance() - : autoscaler_; - } - /** - * - * - *
-     * Information about the agones autoscaler for that fleet.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscalerOrBuilder - getAutoscalerOrBuilder() { - return getAutoscaler(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (fleet_ != null) { - output.writeMessage(1, getFleet()); - } - if (autoscaler_ != null) { - output.writeMessage(2, getAutoscaler()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fleet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFleet()); - } - if (autoscaler_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAutoscaler()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails other = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) obj; - - if (hasFleet() != other.hasFleet()) return false; - if (hasFleet()) { - if (!getFleet().equals(other.getFleet())) return false; - } - if (hasAutoscaler() != other.hasAutoscaler()) return false; - if (hasAutoscaler()) { - if (!getAutoscaler().equals(other.getAutoscaler())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFleet()) { - hash = (37 * hash) + FLEET_FIELD_NUMBER; - hash = (53 * hash) + getFleet().hashCode(); - } - if (hasAutoscaler()) { - hash = (37 * hash) + AUTOSCALER_FIELD_NUMBER; - hash = (53 * hash) + getAutoscaler().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Details of the deployed fleet.
-     * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (fleetBuilder_ == null) { - fleet_ = null; - } else { - fleet_ = null; - fleetBuilder_ = null; - } - if (autoscalerBuilder_ == null) { - autoscaler_ = null; - } else { - autoscaler_ = null; - autoscalerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - build() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - buildPartial() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails result = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails( - this); - if (fleetBuilder_ == null) { - result.fleet_ = fleet_; - } else { - result.fleet_ = fleetBuilder_.build(); - } - if (autoscalerBuilder_ == null) { - result.autoscaler_ = autoscaler_; - } else { - result.autoscaler_ = autoscalerBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails other) { - if (other - == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .getDefaultInstance()) return this; - if (other.hasFleet()) { - mergeFleet(other.getFleet()); - } - if (other.hasAutoscaler()) { - mergeAutoscaler(other.getAutoscaler()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet - fleet_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetOrBuilder> - fleetBuilder_; - /** - * - * - *
-       * Information about the agones fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - * - * @return Whether the fleet field is set. - */ - public boolean hasFleet() { - return fleetBuilder_ != null || fleet_ != null; - } - /** - * - * - *
-       * Information about the agones fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - * - * @return The fleet. - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - getFleet() { - if (fleetBuilder_ == null) { - return fleet_ == null - ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.getDefaultInstance() - : fleet_; - } else { - return fleetBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Information about the agones fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - */ - public Builder setFleet( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - value) { - if (fleetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fleet_ = value; - onChanged(); - } else { - fleetBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Information about the agones fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - */ - public Builder setFleet( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .Builder - builderForValue) { - if (fleetBuilder_ == null) { - fleet_ = builderForValue.build(); - onChanged(); - } else { - fleetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Information about the agones fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - */ - public Builder mergeFleet( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - value) { - if (fleetBuilder_ == null) { - if (fleet_ != null) { - fleet_ = - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.newBuilder(fleet_) - .mergeFrom(value) - .buildPartial(); - } else { - fleet_ = value; - } - onChanged(); - } else { - fleetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Information about the agones fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - */ - public Builder clearFleet() { - if (fleetBuilder_ == null) { - fleet_ = null; - onChanged(); - } else { - fleet_ = null; - fleetBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Information about the agones fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet - .Builder - getFleetBuilder() { - - onChanged(); - return getFleetFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Information about the agones fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetOrBuilder - getFleetOrBuilder() { - if (fleetBuilder_ != null) { - return fleetBuilder_.getMessageOrBuilder(); - } else { - return fleet_ == null - ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.getDefaultInstance() - : fleet_; - } - } - /** - * - * - *
-       * Information about the agones fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetOrBuilder> - getFleetFieldBuilder() { - if (fleetBuilder_ == null) { - fleetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Fleet.Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetOrBuilder>(getFleet(), getParentForChildren(), isClean()); - fleet_ = null; - } - return fleetBuilder_; - } - - private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - autoscaler_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscalerOrBuilder> - autoscalerBuilder_; - /** - * - * - *
-       * Information about the agones autoscaler for that fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - * - * @return Whether the autoscaler field is set. - */ - public boolean hasAutoscaler() { - return autoscalerBuilder_ != null || autoscaler_ != null; - } - /** - * - * - *
-       * Information about the agones autoscaler for that fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - * - * @return The autoscaler. - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - getAutoscaler() { - if (autoscalerBuilder_ == null) { - return autoscaler_ == null - ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.getDefaultInstance() - : autoscaler_; - } else { - return autoscalerBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Information about the agones autoscaler for that fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - */ - public Builder setAutoscaler( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - value) { - if (autoscalerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaler_ = value; - onChanged(); - } else { - autoscalerBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Information about the agones autoscaler for that fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - */ - public Builder setAutoscaler( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.Builder - builderForValue) { - if (autoscalerBuilder_ == null) { - autoscaler_ = builderForValue.build(); - onChanged(); - } else { - autoscalerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Information about the agones autoscaler for that fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - */ - public Builder mergeAutoscaler( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler - value) { - if (autoscalerBuilder_ == null) { - if (autoscaler_ != null) { - autoscaler_ = - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.newBuilder(autoscaler_) - .mergeFrom(value) - .buildPartial(); - } else { - autoscaler_ = value; - } - onChanged(); - } else { - autoscalerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Information about the agones autoscaler for that fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - */ - public Builder clearAutoscaler() { - if (autoscalerBuilder_ == null) { - autoscaler_ = null; - onChanged(); - } else { - autoscaler_ = null; - autoscalerBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Information about the agones autoscaler for that fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.Builder - getAutoscalerBuilder() { - - onChanged(); - return getAutoscalerFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Information about the agones autoscaler for that fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscalerOrBuilder - getAutoscalerOrBuilder() { - if (autoscalerBuilder_ != null) { - return autoscalerBuilder_.getMessageOrBuilder(); - } else { - return autoscaler_ == null - ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.getDefaultInstance() - : autoscaler_; - } - } - /** - * - * - *
-       * Information about the agones autoscaler for that fleet.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscalerOrBuilder> - getAutoscalerFieldBuilder() { - if (autoscalerBuilder_ == null) { - autoscalerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscaler.Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .FleetAutoscalerOrBuilder>( - getAutoscaler(), getParentForChildren(), isClean()); - autoscaler_ = null; - } - return autoscalerBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) - private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails(); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeployedFleetDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployedFleetDetails(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int DETAILS_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails> - details_; - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public java.util.List< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails> - getDetailsList() { - return details_; - } - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetailsOrBuilder> - getDetailsOrBuilderList() { - return details_; - } - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public int getDetailsCount() { - return details_.size(); - } - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - getDetails(int index) { - return details_.get(index); - } - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetailsOrBuilder - getDetailsOrBuilder(int index) { - return details_.get(index); - } - - public static final int UNAVAILABLE_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList unavailable_; - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unavailable = 2; - * - * @return A list containing the unavailable. - */ - public com.google.protobuf.ProtocolStringList getUnavailableList() { - return unavailable_; - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unavailable = 2; - * - * @return The count of unavailable. - */ - public int getUnavailableCount() { - return unavailable_.size(); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the element to return. - * @return The unavailable at the given index. - */ - public java.lang.String getUnavailable(int index) { - return unavailable_.get(index); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the value to return. - * @return The bytes of the unavailable at the given index. - */ - public com.google.protobuf.ByteString getUnavailableBytes(int index) { - return unavailable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < details_.size(); i++) { - output.writeMessage(1, details_.get(i)); - } - for (int i = 0; i < unavailable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unavailable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < details_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, details_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < unavailable_.size(); i++) { - dataSize += computeStringSizeNoTag(unavailable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnavailableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse other = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) obj; - - if (!getDetailsList().equals(other.getDetailsList())) return false; - if (!getUnavailableList().equals(other.getUnavailableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDetailsCount() > 0) { - hash = (37 * hash) + DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getDetailsList().hashCode(); - } - if (getUnavailableCount() > 0) { - hash = (37 * hash) + UNAVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnavailableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for GameServerDeploymentsService.FetchDeploymentState.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FetchDeploymentStateResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.class, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDetailsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (detailsBuilder_ == null) { - details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - detailsBuilder_.clear(); - } - unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse build() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse buildPartial() { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse result = - new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse(this); - int from_bitField0_ = bitField0_; - if (detailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - details_ = java.util.Collections.unmodifiableList(details_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.details_ = details_; - } else { - result.details_ = detailsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - unavailable_ = unavailable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unavailable_ = unavailable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) { - return mergeFrom((com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse other) { - if (other - == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.getDefaultInstance()) - return this; - if (detailsBuilder_ == null) { - if (!other.details_.isEmpty()) { - if (details_.isEmpty()) { - details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDetailsIsMutable(); - details_.addAll(other.details_); - } - onChanged(); - } - } else { - if (!other.details_.isEmpty()) { - if (detailsBuilder_.isEmpty()) { - detailsBuilder_.dispose(); - detailsBuilder_ = null; - details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000001); - detailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDetailsFieldBuilder() - : null; - } else { - detailsBuilder_.addAllMessages(other.details_); - } - } - } - if (!other.unavailable_.isEmpty()) { - if (unavailable_.isEmpty()) { - unavailable_ = other.unavailable_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnavailableIsMutable(); - unavailable_.addAll(other.unavailable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails> - details_ = java.util.Collections.emptyList(); - - private void ensureDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - details_ = - new java.util.ArrayList< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails>( - details_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetailsOrBuilder> - detailsBuilder_; - - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public java.util.List< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails> - getDetailsList() { - if (detailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(details_); - } else { - return detailsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public int getDetailsCount() { - if (detailsBuilder_ == null) { - return details_.size(); - } else { - return detailsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - getDetails(int index) { - if (detailsBuilder_ == null) { - return details_.get(index); - } else { - return detailsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public Builder setDetails( - int index, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails value) { - if (detailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDetailsIsMutable(); - details_.set(index, value); - onChanged(); - } else { - detailsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public Builder setDetails( - int index, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder - builderForValue) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.set(index, builderForValue.build()); - onChanged(); - } else { - detailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public Builder addDetails( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails value) { - if (detailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDetailsIsMutable(); - details_.add(value); - onChanged(); - } else { - detailsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public Builder addDetails( - int index, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails value) { - if (detailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDetailsIsMutable(); - details_.add(index, value); - onChanged(); - } else { - detailsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public Builder addDetails( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder - builderForValue) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.add(builderForValue.build()); - onChanged(); - } else { - detailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public Builder addDetails( - int index, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder - builderForValue) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.add(index, builderForValue.build()); - onChanged(); - } else { - detailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public Builder addAllDetails( - java.lang.Iterable< - ? extends - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetails> - values) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, details_); - onChanged(); - } else { - detailsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public Builder clearDetails() { - if (detailsBuilder_ == null) { - details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - detailsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public Builder removeDetails(int index) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.remove(index); - onChanged(); - } else { - detailsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder - getDetailsBuilder(int index) { - return getDetailsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetailsOrBuilder - getDetailsOrBuilder(int index) { - if (detailsBuilder_ == null) { - return details_.get(index); - } else { - return detailsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetailsOrBuilder> - getDetailsOrBuilderList() { - if (detailsBuilder_ != null) { - return detailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(details_); - } - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder - addDetailsBuilder() { - return getDetailsFieldBuilder() - .addBuilder( - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .getDefaultInstance()); - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder - addDetailsBuilder(int index) { - return getDetailsFieldBuilder() - .addBuilder( - index, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .getDefaultInstance()); - } - /** - * - * - *
-     * The details of a deployment in a given location.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - public java.util.List< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Builder> - getDetailsBuilderList() { - return getDetailsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetailsOrBuilder> - getDetailsFieldBuilder() { - if (detailsBuilder_ == null) { - detailsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails - .Builder, - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetailsOrBuilder>( - details_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - details_ = null; - } - return detailsBuilder_; - } - - private com.google.protobuf.LazyStringList unavailable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnavailableIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unavailable_ = new com.google.protobuf.LazyStringArrayList(unavailable_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unavailable = 2; - * - * @return A list containing the unavailable. - */ - public com.google.protobuf.ProtocolStringList getUnavailableList() { - return unavailable_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unavailable = 2; - * - * @return The count of unavailable. - */ - public int getUnavailableCount() { - return unavailable_.size(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the element to return. - * @return The unavailable at the given index. - */ - public java.lang.String getUnavailable(int index) { - return unavailable_.get(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the value to return. - * @return The bytes of the unavailable at the given index. - */ - public com.google.protobuf.ByteString getUnavailableBytes(int index) { - return unavailable_.getByteString(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unavailable = 2; - * - * @param index The index to set the value at. - * @param value The unavailable to set. - * @return This builder for chaining. - */ - public Builder setUnavailable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnavailableIsMutable(); - unavailable_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unavailable = 2; - * - * @param value The unavailable to add. - * @return This builder for chaining. - */ - public Builder addUnavailable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnavailableIsMutable(); - unavailable_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unavailable = 2; - * - * @param values The unavailable to add. - * @return This builder for chaining. - */ - public Builder addAllUnavailable(java.lang.Iterable values) { - ensureUnavailableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unavailable_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unavailable = 2; - * - * @return This builder for chaining. - */ - public Builder clearUnavailable() { - unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unavailable = 2; - * - * @param value The bytes of the unavailable to add. - * @return This builder for chaining. - */ - public Builder addUnavailableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnavailableIsMutable(); - unavailable_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) - private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse(); - } - - public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchDeploymentStateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchDeploymentStateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponseOrBuilder.java deleted file mode 100644 index bbf0f84d..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponseOrBuilder.java +++ /dev/null @@ -1,144 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface FetchDeploymentStateResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - java.util.List - getDetailsList(); - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails getDetails( - int index); - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - int getDetailsCount(); - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse - .DeployedFleetDetailsOrBuilder> - getDetailsOrBuilderList(); - /** - * - * - *
-   * The details of a deployment in a given location.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; - * - */ - com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetailsOrBuilder - getDetailsOrBuilder(int index); - - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unavailable = 2; - * - * @return A list containing the unavailable. - */ - java.util.List getUnavailableList(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unavailable = 2; - * - * @return The count of unavailable. - */ - int getUnavailableCount(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the element to return. - * @return The unavailable at the given index. - */ - java.lang.String getUnavailable(int index); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the value to return. - * @return The bytes of the unavailable at the given index. - */ - com.google.protobuf.ByteString getUnavailableBytes(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfig.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfig.java deleted file mode 100644 index 74f9e0ec..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfig.java +++ /dev/null @@ -1,823 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Fleet configs for Agones.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FleetConfig} - */ -public final class FleetConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FleetConfig) - FleetConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use FleetConfig.newBuilder() to construct. - private FleetConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FleetConfig() { - fleetSpec_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FleetConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FleetConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - fleetSpec_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_FleetConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FleetConfig.class, - com.google.cloud.gaming.v1alpha.FleetConfig.Builder.class); - } - - public static final int FLEET_SPEC_FIELD_NUMBER = 1; - private volatile java.lang.Object fleetSpec_; - /** - * - * - *
-   * The fleet spec, which is sent to Agones to configure fleet.
-   * Example spec can be found :
-   * `https://agones.dev/site/docs/reference/fleet/`.
-   * 
- * - * string fleet_spec = 1; - * - * @return The fleetSpec. - */ - public java.lang.String getFleetSpec() { - java.lang.Object ref = fleetSpec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fleetSpec_ = s; - return s; - } - } - /** - * - * - *
-   * The fleet spec, which is sent to Agones to configure fleet.
-   * Example spec can be found :
-   * `https://agones.dev/site/docs/reference/fleet/`.
-   * 
- * - * string fleet_spec = 1; - * - * @return The bytes for fleetSpec. - */ - public com.google.protobuf.ByteString getFleetSpecBytes() { - java.lang.Object ref = fleetSpec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fleetSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name of the FleetConfig.
-   * 
- * - * string name = 2; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the FleetConfig.
-   * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFleetSpecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fleetSpec_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFleetSpecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fleetSpec_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.FleetConfig)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FleetConfig other = - (com.google.cloud.gaming.v1alpha.FleetConfig) obj; - - if (!getFleetSpec().equals(other.getFleetSpec())) return false; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FLEET_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getFleetSpec().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.FleetConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Fleet configs for Agones.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FleetConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FleetConfig) - com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_FleetConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FleetConfig.class, - com.google.cloud.gaming.v1alpha.FleetConfig.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.FleetConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - fleetSpec_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetConfig getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FleetConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetConfig build() { - com.google.cloud.gaming.v1alpha.FleetConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetConfig buildPartial() { - com.google.cloud.gaming.v1alpha.FleetConfig result = - new com.google.cloud.gaming.v1alpha.FleetConfig(this); - result.fleetSpec_ = fleetSpec_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.FleetConfig) { - return mergeFrom((com.google.cloud.gaming.v1alpha.FleetConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.FleetConfig other) { - if (other == com.google.cloud.gaming.v1alpha.FleetConfig.getDefaultInstance()) return this; - if (!other.getFleetSpec().isEmpty()) { - fleetSpec_ = other.fleetSpec_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FleetConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.FleetConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object fleetSpec_ = ""; - /** - * - * - *
-     * The fleet spec, which is sent to Agones to configure fleet.
-     * Example spec can be found :
-     * `https://agones.dev/site/docs/reference/fleet/`.
-     * 
- * - * string fleet_spec = 1; - * - * @return The fleetSpec. - */ - public java.lang.String getFleetSpec() { - java.lang.Object ref = fleetSpec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fleetSpec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The fleet spec, which is sent to Agones to configure fleet.
-     * Example spec can be found :
-     * `https://agones.dev/site/docs/reference/fleet/`.
-     * 
- * - * string fleet_spec = 1; - * - * @return The bytes for fleetSpec. - */ - public com.google.protobuf.ByteString getFleetSpecBytes() { - java.lang.Object ref = fleetSpec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fleetSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The fleet spec, which is sent to Agones to configure fleet.
-     * Example spec can be found :
-     * `https://agones.dev/site/docs/reference/fleet/`.
-     * 
- * - * string fleet_spec = 1; - * - * @param value The fleetSpec to set. - * @return This builder for chaining. - */ - public Builder setFleetSpec(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fleetSpec_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The fleet spec, which is sent to Agones to configure fleet.
-     * Example spec can be found :
-     * `https://agones.dev/site/docs/reference/fleet/`.
-     * 
- * - * string fleet_spec = 1; - * - * @return This builder for chaining. - */ - public Builder clearFleetSpec() { - - fleetSpec_ = getDefaultInstance().getFleetSpec(); - onChanged(); - return this; - } - /** - * - * - *
-     * The fleet spec, which is sent to Agones to configure fleet.
-     * Example spec can be found :
-     * `https://agones.dev/site/docs/reference/fleet/`.
-     * 
- * - * string fleet_spec = 1; - * - * @param value The bytes for fleetSpec to set. - * @return This builder for chaining. - */ - public Builder setFleetSpecBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fleetSpec_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name of the FleetConfig.
-     * 
- * - * string name = 2; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the FleetConfig.
-     * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the FleetConfig.
-     * 
- * - * string name = 2; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the FleetConfig.
-     * 
- * - * string name = 2; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the FleetConfig.
-     * 
- * - * string name = 2; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FleetConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FleetConfig) - private static final com.google.cloud.gaming.v1alpha.FleetConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FleetConfig(); - } - - public static com.google.cloud.gaming.v1alpha.FleetConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FleetConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FleetConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfigOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfigOrBuilder.java deleted file mode 100644 index d8f16612..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfigOrBuilder.java +++ /dev/null @@ -1,79 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -public interface FleetConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FleetConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The fleet spec, which is sent to Agones to configure fleet.
-   * Example spec can be found :
-   * `https://agones.dev/site/docs/reference/fleet/`.
-   * 
- * - * string fleet_spec = 1; - * - * @return The fleetSpec. - */ - java.lang.String getFleetSpec(); - /** - * - * - *
-   * The fleet spec, which is sent to Agones to configure fleet.
-   * Example spec can be found :
-   * `https://agones.dev/site/docs/reference/fleet/`.
-   * 
- * - * string fleet_spec = 1; - * - * @return The bytes for fleetSpec. - */ - com.google.protobuf.ByteString getFleetSpecBytes(); - - /** - * - * - *
-   * The name of the FleetConfig.
-   * 
- * - * string name = 2; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name of the FleetConfig.
-   * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetails.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetails.java deleted file mode 100644 index 02ed6f0d..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetails.java +++ /dev/null @@ -1,2159 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Details about the Agones fleet.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FleetDetails} - */ -public final class FleetDetails extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FleetDetails) - FleetDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use FleetDetails.newBuilder() to construct. - private FleetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FleetDetails() { - gameServerClusterName_ = ""; - fleetName_ = ""; - gameServerConfigName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FleetDetails(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FleetDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - gameServerClusterName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - fleetName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - gameServerConfigName_ = s; - break; - } - case 34: - { - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder subBuilder = - null; - if (autoscalerDetails_ != null) { - subBuilder = autoscalerDetails_.toBuilder(); - } - autoscalerDetails_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoscalerDetails_); - autoscalerDetails_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FleetDetails.class, - com.google.cloud.gaming.v1alpha.FleetDetails.Builder.class); - } - - public interface AutoscalerDetailsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The name of the Agones autoscaler.
-     * 
- * - * string autoscaler_name = 1; - * - * @return The autoscalerName. - */ - java.lang.String getAutoscalerName(); - /** - * - * - *
-     * The name of the Agones autoscaler.
-     * 
- * - * string autoscaler_name = 1; - * - * @return The bytes for autoscalerName. - */ - com.google.protobuf.ByteString getAutoscalerNameBytes(); - - /** - * - * - *
-     * The name of the scaling config (within the game server config) that is
-     * used to create the autoscalar.
-     * 
- * - * string scaling_config_name = 2; - * - * @return The scalingConfigName. - */ - java.lang.String getScalingConfigName(); - /** - * - * - *
-     * The name of the scaling config (within the game server config) that is
-     * used to create the autoscalar.
-     * 
- * - * string scaling_config_name = 2; - * - * @return The bytes for scalingConfigName. - */ - com.google.protobuf.ByteString getScalingConfigNameBytes(); - } - /** - * - * - *
-   * Details about the Agones autoscaler.
-   * The autoscaler details.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails} - */ - public static final class AutoscalerDetails extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) - AutoscalerDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoscalerDetails.newBuilder() to construct. - private AutoscalerDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoscalerDetails() { - autoscalerName_ = ""; - scalingConfigName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoscalerDetails(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AutoscalerDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - autoscalerName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - scalingConfigName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.class, - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder.class); - } - - public static final int AUTOSCALER_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object autoscalerName_; - /** - * - * - *
-     * The name of the Agones autoscaler.
-     * 
- * - * string autoscaler_name = 1; - * - * @return The autoscalerName. - */ - public java.lang.String getAutoscalerName() { - java.lang.Object ref = autoscalerName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoscalerName_ = s; - return s; - } - } - /** - * - * - *
-     * The name of the Agones autoscaler.
-     * 
- * - * string autoscaler_name = 1; - * - * @return The bytes for autoscalerName. - */ - public com.google.protobuf.ByteString getAutoscalerNameBytes() { - java.lang.Object ref = autoscalerName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - autoscalerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCALING_CONFIG_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object scalingConfigName_; - /** - * - * - *
-     * The name of the scaling config (within the game server config) that is
-     * used to create the autoscalar.
-     * 
- * - * string scaling_config_name = 2; - * - * @return The scalingConfigName. - */ - public java.lang.String getScalingConfigName() { - java.lang.Object ref = scalingConfigName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scalingConfigName_ = s; - return s; - } - } - /** - * - * - *
-     * The name of the scaling config (within the game server config) that is
-     * used to create the autoscalar.
-     * 
- * - * string scaling_config_name = 2; - * - * @return The bytes for scalingConfigName. - */ - public com.google.protobuf.ByteString getScalingConfigNameBytes() { - java.lang.Object ref = scalingConfigName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scalingConfigName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAutoscalerNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoscalerName_); - } - if (!getScalingConfigNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scalingConfigName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAutoscalerNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoscalerName_); - } - if (!getScalingConfigNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scalingConfigName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails other = - (com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) obj; - - if (!getAutoscalerName().equals(other.getAutoscalerName())) return false; - if (!getScalingConfigName().equals(other.getScalingConfigName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AUTOSCALER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAutoscalerName().hashCode(); - hash = (37 * hash) + SCALING_CONFIG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getScalingConfigName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Details about the Agones autoscaler.
-     * The autoscaler details.
-     * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.class, - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - autoscalerName_ = ""; - - scalingConfigName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails build() { - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails buildPartial() { - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails result = - new com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails(this); - result.autoscalerName_ = autoscalerName_; - result.scalingConfigName_ = scalingConfigName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) { - return mergeFrom((com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails other) { - if (other - == com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance()) - return this; - if (!other.getAutoscalerName().isEmpty()) { - autoscalerName_ = other.autoscalerName_; - onChanged(); - } - if (!other.getScalingConfigName().isEmpty()) { - scalingConfigName_ = other.scalingConfigName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object autoscalerName_ = ""; - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string autoscaler_name = 1; - * - * @return The autoscalerName. - */ - public java.lang.String getAutoscalerName() { - java.lang.Object ref = autoscalerName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoscalerName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string autoscaler_name = 1; - * - * @return The bytes for autoscalerName. - */ - public com.google.protobuf.ByteString getAutoscalerNameBytes() { - java.lang.Object ref = autoscalerName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - autoscalerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string autoscaler_name = 1; - * - * @param value The autoscalerName to set. - * @return This builder for chaining. - */ - public Builder setAutoscalerName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - autoscalerName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string autoscaler_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearAutoscalerName() { - - autoscalerName_ = getDefaultInstance().getAutoscalerName(); - onChanged(); - return this; - } - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string autoscaler_name = 1; - * - * @param value The bytes for autoscalerName to set. - * @return This builder for chaining. - */ - public Builder setAutoscalerNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - autoscalerName_ = value; - onChanged(); - return this; - } - - private java.lang.Object scalingConfigName_ = ""; - /** - * - * - *
-       * The name of the scaling config (within the game server config) that is
-       * used to create the autoscalar.
-       * 
- * - * string scaling_config_name = 2; - * - * @return The scalingConfigName. - */ - public java.lang.String getScalingConfigName() { - java.lang.Object ref = scalingConfigName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scalingConfigName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The name of the scaling config (within the game server config) that is
-       * used to create the autoscalar.
-       * 
- * - * string scaling_config_name = 2; - * - * @return The bytes for scalingConfigName. - */ - public com.google.protobuf.ByteString getScalingConfigNameBytes() { - java.lang.Object ref = scalingConfigName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scalingConfigName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The name of the scaling config (within the game server config) that is
-       * used to create the autoscalar.
-       * 
- * - * string scaling_config_name = 2; - * - * @param value The scalingConfigName to set. - * @return This builder for chaining. - */ - public Builder setScalingConfigName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - scalingConfigName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The name of the scaling config (within the game server config) that is
-       * used to create the autoscalar.
-       * 
- * - * string scaling_config_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearScalingConfigName() { - - scalingConfigName_ = getDefaultInstance().getScalingConfigName(); - onChanged(); - return this; - } - /** - * - * - *
-       * The name of the scaling config (within the game server config) that is
-       * used to create the autoscalar.
-       * 
- * - * string scaling_config_name = 2; - * - * @param value The bytes for scalingConfigName to set. - * @return This builder for chaining. - */ - public Builder setScalingConfigNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - scalingConfigName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) - private static final com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails(); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoscalerDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoscalerDetails(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int GAME_SERVER_CLUSTER_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object gameServerClusterName_; - /** - * - * - *
-   * The cluster name.
-   * 
- * - * string game_server_cluster_name = 1; - * - * @return The gameServerClusterName. - */ - public java.lang.String getGameServerClusterName() { - java.lang.Object ref = gameServerClusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerClusterName_ = s; - return s; - } - } - /** - * - * - *
-   * The cluster name.
-   * 
- * - * string game_server_cluster_name = 1; - * - * @return The bytes for gameServerClusterName. - */ - public com.google.protobuf.ByteString getGameServerClusterNameBytes() { - java.lang.Object ref = gameServerClusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerClusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FLEET_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object fleetName_; - /** - * - * - *
-   * The name of the Agones game server fleet.
-   * 
- * - * string fleet_name = 2; - * - * @return The fleetName. - */ - public java.lang.String getFleetName() { - java.lang.Object ref = fleetName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fleetName_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the Agones game server fleet.
-   * 
- * - * string fleet_name = 2; - * - * @return The bytes for fleetName. - */ - public com.google.protobuf.ByteString getFleetNameBytes() { - java.lang.Object ref = fleetName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fleetName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAME_SERVER_CONFIG_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object gameServerConfigName_; - /** - * - * - *
-   * The name of the game server config object whose fleet spec
-   * is used to create the fleet.
-   * 
- * - * string game_server_config_name = 3; - * - * @return The gameServerConfigName. - */ - public java.lang.String getGameServerConfigName() { - java.lang.Object ref = gameServerConfigName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerConfigName_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the game server config object whose fleet spec
-   * is used to create the fleet.
-   * 
- * - * string game_server_config_name = 3; - * - * @return The bytes for gameServerConfigName. - */ - public com.google.protobuf.ByteString getGameServerConfigNameBytes() { - java.lang.Object ref = gameServerConfigName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerConfigName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTOSCALER_DETAILS_FIELD_NUMBER = 4; - private com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscalerDetails_; - /** - * - * - *
-   * Details about the agones autoscaler.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - * - * @return Whether the autoscalerDetails field is set. - */ - public boolean hasAutoscalerDetails() { - return autoscalerDetails_ != null; - } - /** - * - * - *
-   * Details about the agones autoscaler.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - * - * @return The autoscalerDetails. - */ - public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails getAutoscalerDetails() { - return autoscalerDetails_ == null - ? com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance() - : autoscalerDetails_; - } - /** - * - * - *
-   * Details about the agones autoscaler.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - */ - public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder - getAutoscalerDetailsOrBuilder() { - return getAutoscalerDetails(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getGameServerClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gameServerClusterName_); - } - if (!getFleetNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fleetName_); - } - if (!getGameServerConfigNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gameServerConfigName_); - } - if (autoscalerDetails_ != null) { - output.writeMessage(4, getAutoscalerDetails()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGameServerClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gameServerClusterName_); - } - if (!getFleetNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fleetName_); - } - if (!getGameServerConfigNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gameServerConfigName_); - } - if (autoscalerDetails_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscalerDetails()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.FleetDetails)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FleetDetails other = - (com.google.cloud.gaming.v1alpha.FleetDetails) obj; - - if (!getGameServerClusterName().equals(other.getGameServerClusterName())) return false; - if (!getFleetName().equals(other.getFleetName())) return false; - if (!getGameServerConfigName().equals(other.getGameServerConfigName())) return false; - if (hasAutoscalerDetails() != other.hasAutoscalerDetails()) return false; - if (hasAutoscalerDetails()) { - if (!getAutoscalerDetails().equals(other.getAutoscalerDetails())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GAME_SERVER_CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGameServerClusterName().hashCode(); - hash = (37 * hash) + FLEET_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFleetName().hashCode(); - hash = (37 * hash) + GAME_SERVER_CONFIG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGameServerConfigName().hashCode(); - if (hasAutoscalerDetails()) { - hash = (37 * hash) + AUTOSCALER_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getAutoscalerDetails().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.FleetDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Details about the Agones fleet.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FleetDetails} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FleetDetails) - com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FleetDetails.class, - com.google.cloud.gaming.v1alpha.FleetDetails.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.FleetDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - gameServerClusterName_ = ""; - - fleetName_ = ""; - - gameServerConfigName_ = ""; - - if (autoscalerDetailsBuilder_ == null) { - autoscalerDetails_ = null; - } else { - autoscalerDetails_ = null; - autoscalerDetailsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetDetails getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FleetDetails.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetDetails build() { - com.google.cloud.gaming.v1alpha.FleetDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetDetails buildPartial() { - com.google.cloud.gaming.v1alpha.FleetDetails result = - new com.google.cloud.gaming.v1alpha.FleetDetails(this); - result.gameServerClusterName_ = gameServerClusterName_; - result.fleetName_ = fleetName_; - result.gameServerConfigName_ = gameServerConfigName_; - if (autoscalerDetailsBuilder_ == null) { - result.autoscalerDetails_ = autoscalerDetails_; - } else { - result.autoscalerDetails_ = autoscalerDetailsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.FleetDetails) { - return mergeFrom((com.google.cloud.gaming.v1alpha.FleetDetails) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.FleetDetails other) { - if (other == com.google.cloud.gaming.v1alpha.FleetDetails.getDefaultInstance()) return this; - if (!other.getGameServerClusterName().isEmpty()) { - gameServerClusterName_ = other.gameServerClusterName_; - onChanged(); - } - if (!other.getFleetName().isEmpty()) { - fleetName_ = other.fleetName_; - onChanged(); - } - if (!other.getGameServerConfigName().isEmpty()) { - gameServerConfigName_ = other.gameServerConfigName_; - onChanged(); - } - if (other.hasAutoscalerDetails()) { - mergeAutoscalerDetails(other.getAutoscalerDetails()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FleetDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.FleetDetails) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object gameServerClusterName_ = ""; - /** - * - * - *
-     * The cluster name.
-     * 
- * - * string game_server_cluster_name = 1; - * - * @return The gameServerClusterName. - */ - public java.lang.String getGameServerClusterName() { - java.lang.Object ref = gameServerClusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerClusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The cluster name.
-     * 
- * - * string game_server_cluster_name = 1; - * - * @return The bytes for gameServerClusterName. - */ - public com.google.protobuf.ByteString getGameServerClusterNameBytes() { - java.lang.Object ref = gameServerClusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerClusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The cluster name.
-     * 
- * - * string game_server_cluster_name = 1; - * - * @param value The gameServerClusterName to set. - * @return This builder for chaining. - */ - public Builder setGameServerClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameServerClusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster name.
-     * 
- * - * string game_server_cluster_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearGameServerClusterName() { - - gameServerClusterName_ = getDefaultInstance().getGameServerClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster name.
-     * 
- * - * string game_server_cluster_name = 1; - * - * @param value The bytes for gameServerClusterName to set. - * @return This builder for chaining. - */ - public Builder setGameServerClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameServerClusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object fleetName_ = ""; - /** - * - * - *
-     * The name of the Agones game server fleet.
-     * 
- * - * string fleet_name = 2; - * - * @return The fleetName. - */ - public java.lang.String getFleetName() { - java.lang.Object ref = fleetName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fleetName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the Agones game server fleet.
-     * 
- * - * string fleet_name = 2; - * - * @return The bytes for fleetName. - */ - public com.google.protobuf.ByteString getFleetNameBytes() { - java.lang.Object ref = fleetName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fleetName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the Agones game server fleet.
-     * 
- * - * string fleet_name = 2; - * - * @param value The fleetName to set. - * @return This builder for chaining. - */ - public Builder setFleetName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fleetName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Agones game server fleet.
-     * 
- * - * string fleet_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearFleetName() { - - fleetName_ = getDefaultInstance().getFleetName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Agones game server fleet.
-     * 
- * - * string fleet_name = 2; - * - * @param value The bytes for fleetName to set. - * @return This builder for chaining. - */ - public Builder setFleetNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fleetName_ = value; - onChanged(); - return this; - } - - private java.lang.Object gameServerConfigName_ = ""; - /** - * - * - *
-     * The name of the game server config object whose fleet spec
-     * is used to create the fleet.
-     * 
- * - * string game_server_config_name = 3; - * - * @return The gameServerConfigName. - */ - public java.lang.String getGameServerConfigName() { - java.lang.Object ref = gameServerConfigName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerConfigName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the game server config object whose fleet spec
-     * is used to create the fleet.
-     * 
- * - * string game_server_config_name = 3; - * - * @return The bytes for gameServerConfigName. - */ - public com.google.protobuf.ByteString getGameServerConfigNameBytes() { - java.lang.Object ref = gameServerConfigName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerConfigName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the game server config object whose fleet spec
-     * is used to create the fleet.
-     * 
- * - * string game_server_config_name = 3; - * - * @param value The gameServerConfigName to set. - * @return This builder for chaining. - */ - public Builder setGameServerConfigName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameServerConfigName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the game server config object whose fleet spec
-     * is used to create the fleet.
-     * 
- * - * string game_server_config_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearGameServerConfigName() { - - gameServerConfigName_ = getDefaultInstance().getGameServerConfigName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the game server config object whose fleet spec
-     * is used to create the fleet.
-     * 
- * - * string game_server_config_name = 3; - * - * @param value The bytes for gameServerConfigName to set. - * @return This builder for chaining. - */ - public Builder setGameServerConfigNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameServerConfigName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscalerDetails_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails, - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder, - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder> - autoscalerDetailsBuilder_; - /** - * - * - *
-     * Details about the agones autoscaler.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - * - * @return Whether the autoscalerDetails field is set. - */ - public boolean hasAutoscalerDetails() { - return autoscalerDetailsBuilder_ != null || autoscalerDetails_ != null; - } - /** - * - * - *
-     * Details about the agones autoscaler.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - * - * @return The autoscalerDetails. - */ - public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails getAutoscalerDetails() { - if (autoscalerDetailsBuilder_ == null) { - return autoscalerDetails_ == null - ? com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance() - : autoscalerDetails_; - } else { - return autoscalerDetailsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Details about the agones autoscaler.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - */ - public Builder setAutoscalerDetails( - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails value) { - if (autoscalerDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscalerDetails_ = value; - onChanged(); - } else { - autoscalerDetailsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Details about the agones autoscaler.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - */ - public Builder setAutoscalerDetails( - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder builderForValue) { - if (autoscalerDetailsBuilder_ == null) { - autoscalerDetails_ = builderForValue.build(); - onChanged(); - } else { - autoscalerDetailsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Details about the agones autoscaler.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - */ - public Builder mergeAutoscalerDetails( - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails value) { - if (autoscalerDetailsBuilder_ == null) { - if (autoscalerDetails_ != null) { - autoscalerDetails_ = - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.newBuilder( - autoscalerDetails_) - .mergeFrom(value) - .buildPartial(); - } else { - autoscalerDetails_ = value; - } - onChanged(); - } else { - autoscalerDetailsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Details about the agones autoscaler.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - */ - public Builder clearAutoscalerDetails() { - if (autoscalerDetailsBuilder_ == null) { - autoscalerDetails_ = null; - onChanged(); - } else { - autoscalerDetails_ = null; - autoscalerDetailsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Details about the agones autoscaler.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - */ - public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder - getAutoscalerDetailsBuilder() { - - onChanged(); - return getAutoscalerDetailsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Details about the agones autoscaler.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - */ - public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder - getAutoscalerDetailsOrBuilder() { - if (autoscalerDetailsBuilder_ != null) { - return autoscalerDetailsBuilder_.getMessageOrBuilder(); - } else { - return autoscalerDetails_ == null - ? com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance() - : autoscalerDetails_; - } - } - /** - * - * - *
-     * Details about the agones autoscaler.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails, - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder, - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder> - getAutoscalerDetailsFieldBuilder() { - if (autoscalerDetailsBuilder_ == null) { - autoscalerDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails, - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder, - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder>( - getAutoscalerDetails(), getParentForChildren(), isClean()); - autoscalerDetails_ = null; - } - return autoscalerDetailsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FleetDetails) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FleetDetails) - private static final com.google.cloud.gaming.v1alpha.FleetDetails DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FleetDetails(); - } - - public static com.google.cloud.gaming.v1alpha.FleetDetails getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FleetDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FleetDetails(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetDetails getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetailsOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetailsOrBuilder.java deleted file mode 100644 index 7aee3953..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetailsOrBuilder.java +++ /dev/null @@ -1,141 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public interface FleetDetailsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FleetDetails) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The cluster name.
-   * 
- * - * string game_server_cluster_name = 1; - * - * @return The gameServerClusterName. - */ - java.lang.String getGameServerClusterName(); - /** - * - * - *
-   * The cluster name.
-   * 
- * - * string game_server_cluster_name = 1; - * - * @return The bytes for gameServerClusterName. - */ - com.google.protobuf.ByteString getGameServerClusterNameBytes(); - - /** - * - * - *
-   * The name of the Agones game server fleet.
-   * 
- * - * string fleet_name = 2; - * - * @return The fleetName. - */ - java.lang.String getFleetName(); - /** - * - * - *
-   * The name of the Agones game server fleet.
-   * 
- * - * string fleet_name = 2; - * - * @return The bytes for fleetName. - */ - com.google.protobuf.ByteString getFleetNameBytes(); - - /** - * - * - *
-   * The name of the game server config object whose fleet spec
-   * is used to create the fleet.
-   * 
- * - * string game_server_config_name = 3; - * - * @return The gameServerConfigName. - */ - java.lang.String getGameServerConfigName(); - /** - * - * - *
-   * The name of the game server config object whose fleet spec
-   * is used to create the fleet.
-   * 
- * - * string game_server_config_name = 3; - * - * @return The bytes for gameServerConfigName. - */ - com.google.protobuf.ByteString getGameServerConfigNameBytes(); - - /** - * - * - *
-   * Details about the agones autoscaler.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - * - * @return Whether the autoscalerDetails field is set. - */ - boolean hasAutoscalerDetails(); - /** - * - * - *
-   * Details about the agones autoscaler.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - * - * @return The autoscalerDetails. - */ - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails getAutoscalerDetails(); - /** - * - * - *
-   * Details about the agones autoscaler.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; - * - */ - com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder - getAutoscalerDetailsOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerCluster.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerCluster.java deleted file mode 100644 index b804cf11..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerCluster.java +++ /dev/null @@ -1,2218 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * A game server cluster resource.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerCluster} - */ -public final class GameServerCluster extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerCluster) - GameServerClusterOrBuilder { - private static final long serialVersionUID = 0L; - // Use GameServerCluster.newBuilder() to construct. - private GameServerCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GameServerCluster() { - name_ = ""; - etag_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GameServerCluster(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GameServerCluster( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 42: - { - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.Builder subBuilder = - null; - if (connectionInfo_ != null) { - subBuilder = connectionInfo_.toBuilder(); - } - connectionInfo_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionInfo_); - connectionInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerCluster.class, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the game server cluster, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
-   * For example,
-   * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the game server cluster, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
-   * For example,
-   * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int LABELS_FIELD_NUMBER = 4; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerCluster_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * The labels associated with this game server cluster. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * The labels associated with this game server cluster. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * The labels associated with this game server cluster. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The labels associated with this game server cluster. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CONNECTION_INFO_FIELD_NUMBER = 5; - private com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connectionInfo_; - /** - * - * - *
-   * Game server cluster connection information. This information is used to
-   * manage game server clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - * @return Whether the connectionInfo field is set. - */ - public boolean hasConnectionInfo() { - return connectionInfo_ != null; - } - /** - * - * - *
-   * Game server cluster connection information. This information is used to
-   * manage game server clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - * @return The connectionInfo. - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo getConnectionInfo() { - return connectionInfo_ == null - ? com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.getDefaultInstance() - : connectionInfo_; - } - /** - * - * - *
-   * Game server cluster connection information. This information is used to
-   * manage game server clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfoOrBuilder - getConnectionInfoOrBuilder() { - return getConnectionInfo(); - } - - public static final int ETAG_FIELD_NUMBER = 6; - private volatile java.lang.Object etag_; - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 6; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 6; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 7; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Human readable description of the cluster.
-   * 
- * - * string description = 7; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Human readable description of the cluster.
-   * 
- * - * string description = 7; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (connectionInfo_ != null) { - output.writeMessage(5, getConnectionInfo()); - } - if (!getEtagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - if (connectionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConnectionInfo()); - } - if (!getEtagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GameServerCluster)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GameServerCluster other = - (com.google.cloud.gaming.v1alpha.GameServerCluster) obj; - - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasConnectionInfo() != other.hasConnectionInfo()) return false; - if (hasConnectionInfo()) { - if (!getConnectionInfo().equals(other.getConnectionInfo())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasConnectionInfo()) { - hash = (37 * hash) + CONNECTION_INFO_FIELD_NUMBER; - hash = (53 * hash) + getConnectionInfo().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.GameServerCluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A game server cluster resource.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerCluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerCluster) - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerCluster.class, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GameServerCluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - if (connectionInfoBuilder_ == null) { - connectionInfo_ = null; - } else { - connectionInfo_ = null; - connectionInfoBuilder_ = null; - } - etag_ = ""; - - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerCluster getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerCluster build() { - com.google.cloud.gaming.v1alpha.GameServerCluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerCluster buildPartial() { - com.google.cloud.gaming.v1alpha.GameServerCluster result = - new com.google.cloud.gaming.v1alpha.GameServerCluster(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (connectionInfoBuilder_ == null) { - result.connectionInfo_ = connectionInfo_; - } else { - result.connectionInfo_ = connectionInfoBuilder_.build(); - } - result.etag_ = etag_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GameServerCluster) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerCluster) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerCluster other) { - if (other == com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasConnectionInfo()) { - mergeConnectionInfo(other.getConnectionInfo()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GameServerCluster parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GameServerCluster) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the game server cluster, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
-     * For example,
-     * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the game server cluster, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
-     * For example,
-     * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the game server cluster, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
-     * For example,
-     * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the game server cluster, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
-     * For example,
-     * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the game server cluster, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
-     * For example,
-     * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * The labels associated with this game server cluster. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * The labels associated with this game server cluster. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * The labels associated with this game server cluster. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The labels associated with this game server cluster. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The labels associated with this game server cluster. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * The labels associated with this game server cluster. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The labels associated with this game server cluster. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connectionInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo, - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfoOrBuilder> - connectionInfoBuilder_; - /** - * - * - *
-     * Game server cluster connection information. This information is used to
-     * manage game server clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - * - * @return Whether the connectionInfo field is set. - */ - public boolean hasConnectionInfo() { - return connectionInfoBuilder_ != null || connectionInfo_ != null; - } - /** - * - * - *
-     * Game server cluster connection information. This information is used to
-     * manage game server clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - * - * @return The connectionInfo. - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo getConnectionInfo() { - if (connectionInfoBuilder_ == null) { - return connectionInfo_ == null - ? com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.getDefaultInstance() - : connectionInfo_; - } else { - return connectionInfoBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Game server cluster connection information. This information is used to
-     * manage game server clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - */ - public Builder setConnectionInfo( - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo value) { - if (connectionInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connectionInfo_ = value; - onChanged(); - } else { - connectionInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Game server cluster connection information. This information is used to
-     * manage game server clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - */ - public Builder setConnectionInfo( - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.Builder builderForValue) { - if (connectionInfoBuilder_ == null) { - connectionInfo_ = builderForValue.build(); - onChanged(); - } else { - connectionInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Game server cluster connection information. This information is used to
-     * manage game server clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - */ - public Builder mergeConnectionInfo( - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo value) { - if (connectionInfoBuilder_ == null) { - if (connectionInfo_ != null) { - connectionInfo_ = - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.newBuilder( - connectionInfo_) - .mergeFrom(value) - .buildPartial(); - } else { - connectionInfo_ = value; - } - onChanged(); - } else { - connectionInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Game server cluster connection information. This information is used to
-     * manage game server clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - */ - public Builder clearConnectionInfo() { - if (connectionInfoBuilder_ == null) { - connectionInfo_ = null; - onChanged(); - } else { - connectionInfo_ = null; - connectionInfoBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Game server cluster connection information. This information is used to
-     * manage game server clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.Builder - getConnectionInfoBuilder() { - - onChanged(); - return getConnectionInfoFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Game server cluster connection information. This information is used to
-     * manage game server clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfoOrBuilder - getConnectionInfoOrBuilder() { - if (connectionInfoBuilder_ != null) { - return connectionInfoBuilder_.getMessageOrBuilder(); - } else { - return connectionInfo_ == null - ? com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.getDefaultInstance() - : connectionInfo_; - } - } - /** - * - * - *
-     * Game server cluster connection information. This information is used to
-     * manage game server clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo, - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfoOrBuilder> - getConnectionInfoFieldBuilder() { - if (connectionInfoBuilder_ == null) { - connectionInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo, - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfoOrBuilder>( - getConnectionInfo(), getParentForChildren(), isClean()); - connectionInfo_ = null; - } - return connectionInfoBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Human readable description of the cluster.
-     * 
- * - * string description = 7; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human readable description of the cluster.
-     * 
- * - * string description = 7; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human readable description of the cluster.
-     * 
- * - * string description = 7; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human readable description of the cluster.
-     * 
- * - * string description = 7; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human readable description of the cluster.
-     * 
- * - * string description = 7; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GameServerCluster) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerCluster) - private static final com.google.cloud.gaming.v1alpha.GameServerCluster DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerCluster(); - } - - public static com.google.cloud.gaming.v1alpha.GameServerCluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GameServerCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameServerCluster(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerCluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo.java deleted file mode 100644 index a0922dad..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo.java +++ /dev/null @@ -1,1399 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * The game server cluster connection information.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo} - */ -public final class GameServerClusterConnectionInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) - GameServerClusterConnectionInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use GameServerClusterConnectionInfo.newBuilder() to construct. - private GameServerClusterConnectionInfo( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GameServerClusterConnectionInfo() { - namespace_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GameServerClusterConnectionInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GameServerClusterConnectionInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - namespace_ = s; - break; - } - case 58: - { - com.google.cloud.gaming.v1alpha.GkeClusterReference.Builder subBuilder = null; - if (clusterReferenceCase_ == 7) { - subBuilder = - ((com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_) - .toBuilder(); - } - clusterReference_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GkeClusterReference.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_); - clusterReference_ = subBuilder.buildPartial(); - } - clusterReferenceCase_ = 7; - break; - } - case 66: - { - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder subBuilder = null; - if (clusterReferenceCase_ == 8) { - subBuilder = - ((com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_) - .toBuilder(); - } - clusterReference_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_); - clusterReference_ = subBuilder.buildPartial(); - } - clusterReferenceCase_ = 8; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.class, - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.Builder.class); - } - - private int clusterReferenceCase_ = 0; - private java.lang.Object clusterReference_; - - public enum ClusterReferenceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GKE_CLUSTER_REFERENCE(7), - GKE_HUB_CLUSTER_REFERENCE(8), - CLUSTERREFERENCE_NOT_SET(0); - private final int value; - - private ClusterReferenceCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ClusterReferenceCase valueOf(int value) { - return forNumber(value); - } - - public static ClusterReferenceCase forNumber(int value) { - switch (value) { - case 7: - return GKE_CLUSTER_REFERENCE; - case 8: - return GKE_HUB_CLUSTER_REFERENCE; - case 0: - return CLUSTERREFERENCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ClusterReferenceCase getClusterReferenceCase() { - return ClusterReferenceCase.forNumber(clusterReferenceCase_); - } - - public static final int GKE_CLUSTER_REFERENCE_FIELD_NUMBER = 7; - /** - * - * - *
-   * Reference to the GKE cluster where the game servers are installed.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - * - * @return Whether the gkeClusterReference field is set. - */ - public boolean hasGkeClusterReference() { - return clusterReferenceCase_ == 7; - } - /** - * - * - *
-   * Reference to the GKE cluster where the game servers are installed.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - * - * @return The gkeClusterReference. - */ - public com.google.cloud.gaming.v1alpha.GkeClusterReference getGkeClusterReference() { - if (clusterReferenceCase_ == 7) { - return (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_; - } - return com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance(); - } - /** - * - * - *
-   * Reference to the GKE cluster where the game servers are installed.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - */ - public com.google.cloud.gaming.v1alpha.GkeClusterReferenceOrBuilder - getGkeClusterReferenceOrBuilder() { - if (clusterReferenceCase_ == 7) { - return (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_; - } - return com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance(); - } - - public static final int GKE_HUB_CLUSTER_REFERENCE_FIELD_NUMBER = 8; - /** - * - * - *
-   * Reference to an external (non-GKE) cluster registered with GKE Hub using
-   * the GKE connect agent. See
-   * https://cloud.google.com/anthos/multicluster-management/
-   * for more information about registering non-GKE clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - * @return Whether the gkeHubClusterReference field is set. - */ - public boolean hasGkeHubClusterReference() { - return clusterReferenceCase_ == 8; - } - /** - * - * - *
-   * Reference to an external (non-GKE) cluster registered with GKE Hub using
-   * the GKE connect agent. See
-   * https://cloud.google.com/anthos/multicluster-management/
-   * for more information about registering non-GKE clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - * @return The gkeHubClusterReference. - */ - public com.google.cloud.gaming.v1alpha.GkeHubClusterReference getGkeHubClusterReference() { - if (clusterReferenceCase_ == 8) { - return (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_; - } - return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); - } - /** - * - * - *
-   * Reference to an external (non-GKE) cluster registered with GKE Hub using
-   * the GKE connect agent. See
-   * https://cloud.google.com/anthos/multicluster-management/
-   * for more information about registering non-GKE clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - */ - public com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder - getGkeHubClusterReferenceOrBuilder() { - if (clusterReferenceCase_ == 8) { - return (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_; - } - return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); - } - - public static final int NAMESPACE_FIELD_NUMBER = 5; - private volatile java.lang.Object namespace_; - /** - * - * - *
-   * Namespace designated on the game server cluster where the game server
-   * instances will be created. The namespace existence will be validated
-   * during creation.
-   * 
- * - * string namespace = 5; - * - * @return The namespace. - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } - } - /** - * - * - *
-   * Namespace designated on the game server cluster where the game server
-   * instances will be created. The namespace existence will be validated
-   * during creation.
-   * 
- * - * string namespace = 5; - * - * @return The bytes for namespace. - */ - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNamespaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, namespace_); - } - if (clusterReferenceCase_ == 7) { - output.writeMessage( - 7, (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_); - } - if (clusterReferenceCase_ == 8) { - output.writeMessage( - 8, (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNamespaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, namespace_); - } - if (clusterReferenceCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_); - } - if (clusterReferenceCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo other = - (com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) obj; - - if (!getNamespace().equals(other.getNamespace())) return false; - if (!getClusterReferenceCase().equals(other.getClusterReferenceCase())) return false; - switch (clusterReferenceCase_) { - case 7: - if (!getGkeClusterReference().equals(other.getGkeClusterReference())) return false; - break; - case 8: - if (!getGkeHubClusterReference().equals(other.getGkeHubClusterReference())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getNamespace().hashCode(); - switch (clusterReferenceCase_) { - case 7: - hash = (37 * hash) + GKE_CLUSTER_REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getGkeClusterReference().hashCode(); - break; - case 8: - hash = (37 * hash) + GKE_HUB_CLUSTER_REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getGkeHubClusterReference().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The game server cluster connection information.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.class, - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - namespace_ = ""; - - clusterReferenceCase_ = 0; - clusterReference_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo build() { - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo buildPartial() { - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo result = - new com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo(this); - if (clusterReferenceCase_ == 7) { - if (gkeClusterReferenceBuilder_ == null) { - result.clusterReference_ = clusterReference_; - } else { - result.clusterReference_ = gkeClusterReferenceBuilder_.build(); - } - } - if (clusterReferenceCase_ == 8) { - if (gkeHubClusterReferenceBuilder_ == null) { - result.clusterReference_ = clusterReference_; - } else { - result.clusterReference_ = gkeHubClusterReferenceBuilder_.build(); - } - } - result.namespace_ = namespace_; - result.clusterReferenceCase_ = clusterReferenceCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo other) { - if (other - == com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.getDefaultInstance()) - return this; - if (!other.getNamespace().isEmpty()) { - namespace_ = other.namespace_; - onChanged(); - } - switch (other.getClusterReferenceCase()) { - case GKE_CLUSTER_REFERENCE: - { - mergeGkeClusterReference(other.getGkeClusterReference()); - break; - } - case GKE_HUB_CLUSTER_REFERENCE: - { - mergeGkeHubClusterReference(other.getGkeHubClusterReference()); - break; - } - case CLUSTERREFERENCE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int clusterReferenceCase_ = 0; - private java.lang.Object clusterReference_; - - public ClusterReferenceCase getClusterReferenceCase() { - return ClusterReferenceCase.forNumber(clusterReferenceCase_); - } - - public Builder clearClusterReference() { - clusterReferenceCase_ = 0; - clusterReference_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GkeClusterReference, - com.google.cloud.gaming.v1alpha.GkeClusterReference.Builder, - com.google.cloud.gaming.v1alpha.GkeClusterReferenceOrBuilder> - gkeClusterReferenceBuilder_; - /** - * - * - *
-     * Reference to the GKE cluster where the game servers are installed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - * - * @return Whether the gkeClusterReference field is set. - */ - public boolean hasGkeClusterReference() { - return clusterReferenceCase_ == 7; - } - /** - * - * - *
-     * Reference to the GKE cluster where the game servers are installed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - * - * @return The gkeClusterReference. - */ - public com.google.cloud.gaming.v1alpha.GkeClusterReference getGkeClusterReference() { - if (gkeClusterReferenceBuilder_ == null) { - if (clusterReferenceCase_ == 7) { - return (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_; - } - return com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance(); - } else { - if (clusterReferenceCase_ == 7) { - return gkeClusterReferenceBuilder_.getMessage(); - } - return com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance(); - } - } - /** - * - * - *
-     * Reference to the GKE cluster where the game servers are installed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - */ - public Builder setGkeClusterReference( - com.google.cloud.gaming.v1alpha.GkeClusterReference value) { - if (gkeClusterReferenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clusterReference_ = value; - onChanged(); - } else { - gkeClusterReferenceBuilder_.setMessage(value); - } - clusterReferenceCase_ = 7; - return this; - } - /** - * - * - *
-     * Reference to the GKE cluster where the game servers are installed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - */ - public Builder setGkeClusterReference( - com.google.cloud.gaming.v1alpha.GkeClusterReference.Builder builderForValue) { - if (gkeClusterReferenceBuilder_ == null) { - clusterReference_ = builderForValue.build(); - onChanged(); - } else { - gkeClusterReferenceBuilder_.setMessage(builderForValue.build()); - } - clusterReferenceCase_ = 7; - return this; - } - /** - * - * - *
-     * Reference to the GKE cluster where the game servers are installed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - */ - public Builder mergeGkeClusterReference( - com.google.cloud.gaming.v1alpha.GkeClusterReference value) { - if (gkeClusterReferenceBuilder_ == null) { - if (clusterReferenceCase_ == 7 - && clusterReference_ - != com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance()) { - clusterReference_ = - com.google.cloud.gaming.v1alpha.GkeClusterReference.newBuilder( - (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_) - .mergeFrom(value) - .buildPartial(); - } else { - clusterReference_ = value; - } - onChanged(); - } else { - if (clusterReferenceCase_ == 7) { - gkeClusterReferenceBuilder_.mergeFrom(value); - } - gkeClusterReferenceBuilder_.setMessage(value); - } - clusterReferenceCase_ = 7; - return this; - } - /** - * - * - *
-     * Reference to the GKE cluster where the game servers are installed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - */ - public Builder clearGkeClusterReference() { - if (gkeClusterReferenceBuilder_ == null) { - if (clusterReferenceCase_ == 7) { - clusterReferenceCase_ = 0; - clusterReference_ = null; - onChanged(); - } - } else { - if (clusterReferenceCase_ == 7) { - clusterReferenceCase_ = 0; - clusterReference_ = null; - } - gkeClusterReferenceBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Reference to the GKE cluster where the game servers are installed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - */ - public com.google.cloud.gaming.v1alpha.GkeClusterReference.Builder - getGkeClusterReferenceBuilder() { - return getGkeClusterReferenceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Reference to the GKE cluster where the game servers are installed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - */ - public com.google.cloud.gaming.v1alpha.GkeClusterReferenceOrBuilder - getGkeClusterReferenceOrBuilder() { - if ((clusterReferenceCase_ == 7) && (gkeClusterReferenceBuilder_ != null)) { - return gkeClusterReferenceBuilder_.getMessageOrBuilder(); - } else { - if (clusterReferenceCase_ == 7) { - return (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_; - } - return com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance(); - } - } - /** - * - * - *
-     * Reference to the GKE cluster where the game servers are installed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GkeClusterReference, - com.google.cloud.gaming.v1alpha.GkeClusterReference.Builder, - com.google.cloud.gaming.v1alpha.GkeClusterReferenceOrBuilder> - getGkeClusterReferenceFieldBuilder() { - if (gkeClusterReferenceBuilder_ == null) { - if (!(clusterReferenceCase_ == 7)) { - clusterReference_ = - com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance(); - } - gkeClusterReferenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GkeClusterReference, - com.google.cloud.gaming.v1alpha.GkeClusterReference.Builder, - com.google.cloud.gaming.v1alpha.GkeClusterReferenceOrBuilder>( - (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_, - getParentForChildren(), - isClean()); - clusterReference_ = null; - } - clusterReferenceCase_ = 7; - onChanged(); - ; - return gkeClusterReferenceBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GkeHubClusterReference, - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder, - com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder> - gkeHubClusterReferenceBuilder_; - /** - * - * - *
-     * Reference to an external (non-GKE) cluster registered with GKE Hub using
-     * the GKE connect agent. See
-     * https://cloud.google.com/anthos/multicluster-management/
-     * for more information about registering non-GKE clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - * - * @return Whether the gkeHubClusterReference field is set. - */ - public boolean hasGkeHubClusterReference() { - return clusterReferenceCase_ == 8; - } - /** - * - * - *
-     * Reference to an external (non-GKE) cluster registered with GKE Hub using
-     * the GKE connect agent. See
-     * https://cloud.google.com/anthos/multicluster-management/
-     * for more information about registering non-GKE clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - * - * @return The gkeHubClusterReference. - */ - public com.google.cloud.gaming.v1alpha.GkeHubClusterReference getGkeHubClusterReference() { - if (gkeHubClusterReferenceBuilder_ == null) { - if (clusterReferenceCase_ == 8) { - return (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_; - } - return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); - } else { - if (clusterReferenceCase_ == 8) { - return gkeHubClusterReferenceBuilder_.getMessage(); - } - return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); - } - } - /** - * - * - *
-     * Reference to an external (non-GKE) cluster registered with GKE Hub using
-     * the GKE connect agent. See
-     * https://cloud.google.com/anthos/multicluster-management/
-     * for more information about registering non-GKE clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - */ - public Builder setGkeHubClusterReference( - com.google.cloud.gaming.v1alpha.GkeHubClusterReference value) { - if (gkeHubClusterReferenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clusterReference_ = value; - onChanged(); - } else { - gkeHubClusterReferenceBuilder_.setMessage(value); - } - clusterReferenceCase_ = 8; - return this; - } - /** - * - * - *
-     * Reference to an external (non-GKE) cluster registered with GKE Hub using
-     * the GKE connect agent. See
-     * https://cloud.google.com/anthos/multicluster-management/
-     * for more information about registering non-GKE clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - */ - public Builder setGkeHubClusterReference( - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder builderForValue) { - if (gkeHubClusterReferenceBuilder_ == null) { - clusterReference_ = builderForValue.build(); - onChanged(); - } else { - gkeHubClusterReferenceBuilder_.setMessage(builderForValue.build()); - } - clusterReferenceCase_ = 8; - return this; - } - /** - * - * - *
-     * Reference to an external (non-GKE) cluster registered with GKE Hub using
-     * the GKE connect agent. See
-     * https://cloud.google.com/anthos/multicluster-management/
-     * for more information about registering non-GKE clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - */ - public Builder mergeGkeHubClusterReference( - com.google.cloud.gaming.v1alpha.GkeHubClusterReference value) { - if (gkeHubClusterReferenceBuilder_ == null) { - if (clusterReferenceCase_ == 8 - && clusterReference_ - != com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance()) { - clusterReference_ = - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.newBuilder( - (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_) - .mergeFrom(value) - .buildPartial(); - } else { - clusterReference_ = value; - } - onChanged(); - } else { - if (clusterReferenceCase_ == 8) { - gkeHubClusterReferenceBuilder_.mergeFrom(value); - } - gkeHubClusterReferenceBuilder_.setMessage(value); - } - clusterReferenceCase_ = 8; - return this; - } - /** - * - * - *
-     * Reference to an external (non-GKE) cluster registered with GKE Hub using
-     * the GKE connect agent. See
-     * https://cloud.google.com/anthos/multicluster-management/
-     * for more information about registering non-GKE clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - */ - public Builder clearGkeHubClusterReference() { - if (gkeHubClusterReferenceBuilder_ == null) { - if (clusterReferenceCase_ == 8) { - clusterReferenceCase_ = 0; - clusterReference_ = null; - onChanged(); - } - } else { - if (clusterReferenceCase_ == 8) { - clusterReferenceCase_ = 0; - clusterReference_ = null; - } - gkeHubClusterReferenceBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Reference to an external (non-GKE) cluster registered with GKE Hub using
-     * the GKE connect agent. See
-     * https://cloud.google.com/anthos/multicluster-management/
-     * for more information about registering non-GKE clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - */ - public com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder - getGkeHubClusterReferenceBuilder() { - return getGkeHubClusterReferenceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Reference to an external (non-GKE) cluster registered with GKE Hub using
-     * the GKE connect agent. See
-     * https://cloud.google.com/anthos/multicluster-management/
-     * for more information about registering non-GKE clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - */ - public com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder - getGkeHubClusterReferenceOrBuilder() { - if ((clusterReferenceCase_ == 8) && (gkeHubClusterReferenceBuilder_ != null)) { - return gkeHubClusterReferenceBuilder_.getMessageOrBuilder(); - } else { - if (clusterReferenceCase_ == 8) { - return (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_; - } - return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); - } - } - /** - * - * - *
-     * Reference to an external (non-GKE) cluster registered with GKE Hub using
-     * the GKE connect agent. See
-     * https://cloud.google.com/anthos/multicluster-management/
-     * for more information about registering non-GKE clusters.
-     * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GkeHubClusterReference, - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder, - com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder> - getGkeHubClusterReferenceFieldBuilder() { - if (gkeHubClusterReferenceBuilder_ == null) { - if (!(clusterReferenceCase_ == 8)) { - clusterReference_ = - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); - } - gkeHubClusterReferenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GkeHubClusterReference, - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder, - com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder>( - (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_, - getParentForChildren(), - isClean()); - clusterReference_ = null; - } - clusterReferenceCase_ = 8; - onChanged(); - ; - return gkeHubClusterReferenceBuilder_; - } - - private java.lang.Object namespace_ = ""; - /** - * - * - *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
-     * 
- * - * string namespace = 5; - * - * @return The namespace. - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
-     * 
- * - * string namespace = 5; - * - * @return The bytes for namespace. - */ - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
-     * 
- * - * string namespace = 5; - * - * @param value The namespace to set. - * @return This builder for chaining. - */ - public Builder setNamespace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - namespace_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
-     * 
- * - * string namespace = 5; - * - * @return This builder for chaining. - */ - public Builder clearNamespace() { - - namespace_ = getDefaultInstance().getNamespace(); - onChanged(); - return this; - } - /** - * - * - *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
-     * 
- * - * string namespace = 5; - * - * @param value The bytes for namespace to set. - * @return This builder for chaining. - */ - public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - namespace_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) - private static final com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo(); - } - - public static com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GameServerClusterConnectionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameServerClusterConnectionInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder.java deleted file mode 100644 index a4ca54f9..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder.java +++ /dev/null @@ -1,137 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GameServerClusterConnectionInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Reference to the GKE cluster where the game servers are installed.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - * - * @return Whether the gkeClusterReference field is set. - */ - boolean hasGkeClusterReference(); - /** - * - * - *
-   * Reference to the GKE cluster where the game servers are installed.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - * - * @return The gkeClusterReference. - */ - com.google.cloud.gaming.v1alpha.GkeClusterReference getGkeClusterReference(); - /** - * - * - *
-   * Reference to the GKE cluster where the game servers are installed.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; - */ - com.google.cloud.gaming.v1alpha.GkeClusterReferenceOrBuilder getGkeClusterReferenceOrBuilder(); - - /** - * - * - *
-   * Reference to an external (non-GKE) cluster registered with GKE Hub using
-   * the GKE connect agent. See
-   * https://cloud.google.com/anthos/multicluster-management/
-   * for more information about registering non-GKE clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - * @return Whether the gkeHubClusterReference field is set. - */ - boolean hasGkeHubClusterReference(); - /** - * - * - *
-   * Reference to an external (non-GKE) cluster registered with GKE Hub using
-   * the GKE connect agent. See
-   * https://cloud.google.com/anthos/multicluster-management/
-   * for more information about registering non-GKE clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - * - * @return The gkeHubClusterReference. - */ - com.google.cloud.gaming.v1alpha.GkeHubClusterReference getGkeHubClusterReference(); - /** - * - * - *
-   * Reference to an external (non-GKE) cluster registered with GKE Hub using
-   * the GKE connect agent. See
-   * https://cloud.google.com/anthos/multicluster-management/
-   * for more information about registering non-GKE clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; - */ - com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder - getGkeHubClusterReferenceOrBuilder(); - - /** - * - * - *
-   * Namespace designated on the game server cluster where the game server
-   * instances will be created. The namespace existence will be validated
-   * during creation.
-   * 
- * - * string namespace = 5; - * - * @return The namespace. - */ - java.lang.String getNamespace(); - /** - * - * - *
-   * Namespace designated on the game server cluster where the game server
-   * instances will be created. The namespace existence will be validated
-   * during creation.
-   * 
- * - * string namespace = 5; - * - * @return The bytes for namespace. - */ - com.google.protobuf.ByteString getNamespaceBytes(); - - public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.ClusterReferenceCase - getClusterReferenceCase(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterName.java deleted file mode 100644 index 5beede79..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterName.java +++ /dev/null @@ -1,251 +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 - * - * 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. - */ - -package com.google.cloud.gaming.v1alpha; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** AUTO-GENERATED DOCUMENTATION AND CLASS */ -@javax.annotation.Generated("by GAPIC protoc plugin") -public class GameServerClusterName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{game_server_cluster}"); - - private volatile Map fieldValuesMap; - - private final String project; - private final String location; - private final String realm; - private final String gameServerCluster; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRealm() { - return realm; - } - - public String getGameServerCluster() { - return gameServerCluster; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private GameServerClusterName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - realm = Preconditions.checkNotNull(builder.getRealm()); - gameServerCluster = Preconditions.checkNotNull(builder.getGameServerCluster()); - } - - public static GameServerClusterName of( - String project, String location, String realm, String gameServerCluster) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRealm(realm) - .setGameServerCluster(gameServerCluster) - .build(); - } - - public static String format( - String project, String location, String realm, String gameServerCluster) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRealm(realm) - .setGameServerCluster(gameServerCluster) - .build() - .toString(); - } - - public static GameServerClusterName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "GameServerClusterName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("realm"), - matchMap.get("game_server_cluster")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (GameServerClusterName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("location", location); - fieldMapBuilder.put("realm", realm); - fieldMapBuilder.put("gameServerCluster", gameServerCluster); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate( - "project", - project, - "location", - location, - "realm", - realm, - "game_server_cluster", - gameServerCluster); - } - - /** Builder for GameServerClusterName. */ - public static class Builder { - - private String project; - private String location; - private String realm; - private String gameServerCluster; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRealm() { - return realm; - } - - public String getGameServerCluster() { - return gameServerCluster; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setRealm(String realm) { - this.realm = realm; - return this; - } - - public Builder setGameServerCluster(String gameServerCluster) { - this.gameServerCluster = gameServerCluster; - return this; - } - - private Builder() {} - - private Builder(GameServerClusterName gameServerClusterName) { - project = gameServerClusterName.project; - location = gameServerClusterName.location; - realm = gameServerClusterName.realm; - gameServerCluster = gameServerClusterName.gameServerCluster; - } - - public GameServerClusterName build() { - return new GameServerClusterName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof GameServerClusterName) { - GameServerClusterName that = (GameServerClusterName) o; - return (this.project.equals(that.project)) - && (this.location.equals(that.location)) - && (this.realm.equals(that.realm)) - && (this.gameServerCluster.equals(that.gameServerCluster)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= location.hashCode(); - h *= 1000003; - h ^= realm.hashCode(); - h *= 1000003; - h ^= gameServerCluster.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterOrBuilder.java deleted file mode 100644 index 97dd11e7..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterOrBuilder.java +++ /dev/null @@ -1,280 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GameServerClusterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerCluster) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the game server cluster, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
-   * For example,
-   * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the game server cluster, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
-   * For example,
-   * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * The labels associated with this game server cluster. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - int getLabelsCount(); - /** - * - * - *
-   * The labels associated with this game server cluster. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * The labels associated with this game server cluster. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * The labels associated with this game server cluster. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * The labels associated with this game server cluster. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Game server cluster connection information. This information is used to
-   * manage game server clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - * @return Whether the connectionInfo field is set. - */ - boolean hasConnectionInfo(); - /** - * - * - *
-   * Game server cluster connection information. This information is used to
-   * manage game server clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - * - * @return The connectionInfo. - */ - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo getConnectionInfo(); - /** - * - * - *
-   * Game server cluster connection information. This information is used to
-   * manage game server clusters.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; - */ - com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfoOrBuilder - getConnectionInfoOrBuilder(); - - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 6; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 6; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * Human readable description of the cluster.
-   * 
- * - * string description = 7; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Human readable description of the cluster.
-   * 
- * - * string description = 7; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusters.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusters.java deleted file mode 100644 index dfba45d7..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusters.java +++ /dev/null @@ -1,359 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public final class GameServerClusters { - private GameServerClusters() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/gaming/v1alpha/game_serve" - + "r_clusters.proto\022\033google.cloud.gaming.v1" - + "alpha\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032(google/cloud/" - + "gaming/v1alpha/common.proto\032 google/prot" - + "obuf/field_mask.proto\032\037google/protobuf/t" - + "imestamp.proto\032\034google/api/annotations.p" - + "roto\"\303\001\n\035ListGameServerClustersRequest\022E" - + "\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-gameservices.goo" - + "gleapis.com/GameServerCluster\022\026\n\tpage_si" - + "ze\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023" - + "\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340" - + "A\001\"\277\001\n\036ListGameServerClustersResponse\022L\n" - + "\024game_server_clusters\030\001 \003(\0132..google.clo" - + "ud.gaming.v1alpha.GameServerCluster\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022!\n\025unreachable_loca" - + "tions\030\003 \003(\tB\002\030\001\022\023\n\013unreachable\030\004 \003(\t\"b\n\033" - + "GetGameServerClusterRequest\022C\n\004name\030\001 \001(" - + "\tB5\340A\002\372A/\n-gameservices.googleapis.com/G" - + "ameServerCluster\"\336\001\n\036CreateGameServerClu" - + "sterRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-gam" - + "eservices.googleapis.com/GameServerClust" - + "er\022#\n\026game_server_cluster_id\030\002 \001(\tB\003\340A\002\022" - + "P\n\023game_server_cluster\030\003 \001(\0132..google.cl" - + "oud.gaming.v1alpha.GameServerClusterB\003\340A" - + "\002\"\352\001\n%PreviewCreateGameServerClusterRequ" - + "est\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022#\n\026game_server_" - + "cluster_id\030\002 \001(\tB\003\340A\002\022P\n\023game_server_clu" - + "ster\030\003 \001(\0132..google.cloud.gaming.v1alpha" - + ".GameServerClusterB\003\340A\002\0225\n\014preview_time\030" - + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\276" - + "\001\n&PreviewCreateGameServerClusterRespons" - + "e\022F\n\016deployed_state\030\001 \001(\0132*.google.cloud" - + ".gaming.v1alpha.DeployedStateB\002\030\001\022\014\n\004eta" - + "g\030\002 \001(\t\022>\n\014target_state\030\003 \001(\0132(.google.c" - + "loud.gaming.v1alpha.TargetState\"e\n\036Delet" - + "eGameServerClusterRequest\022C\n\004name\030\001 \001(\tB" - + "5\340A\002\372A/\n-gameservices.googleapis.com/Gam" - + "eServerCluster\"q\n%PreviewDeleteGameServe" - + "rClusterRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0225\n\014pr" - + "eview_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\001\"\276\001\n&PreviewDeleteGameServerClu" - + "sterResponse\022F\n\016deployed_state\030\001 \001(\0132*.g" - + "oogle.cloud.gaming.v1alpha.DeployedState" - + "B\002\030\001\022\014\n\004etag\030\002 \001(\t\022>\n\014target_state\030\003 \001(\013" - + "2(.google.cloud.gaming.v1alpha.TargetSta" - + "te\"\250\001\n\036UpdateGameServerClusterRequest\022P\n" - + "\023game_server_cluster\030\001 \001(\0132..google.clou" - + "d.gaming.v1alpha.GameServerClusterB\003\340A\002\022" - + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMaskB\003\340A\002\"\346\001\n%PreviewUpdateGameServe" - + "rClusterRequest\022P\n\023game_server_cluster\030\001" - + " \001(\0132..google.cloud.gaming.v1alpha.GameS" - + "erverClusterB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" - + ".google.protobuf.FieldMaskB\003\340A\002\0225\n\014previ" - + "ew_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\001\"\276\001\n&PreviewUpdateGameServerCluste" - + "rResponse\022F\n\016deployed_state\030\001 \001(\0132*.goog" - + "le.cloud.gaming.v1alpha.DeployedStateB\002\030" - + "\001\022\014\n\004etag\030\002 \001(\t\022>\n\014target_state\030\003 \001(\0132(." - + "google.cloud.gaming.v1alpha.TargetState\"" - + "\366\001\n\037GameServerClusterConnectionInfo\022Q\n\025g" - + "ke_cluster_reference\030\007 \001(\01320.google.clou" - + "d.gaming.v1alpha.GkeClusterReferenceH\000\022X" - + "\n\031gke_hub_cluster_reference\030\010 \001(\01323.goog" - + "le.cloud.gaming.v1alpha.GkeHubClusterRef" - + "erenceH\000\022\021\n\tnamespace\030\005 \001(\tB\023\n\021cluster_r" - + "eference\"&\n\023GkeClusterReference\022\017\n\007clust" - + "er\030\001 \001(\t\",\n\026GkeHubClusterReference\022\022\n\nme" - + "mbership\030\001 \001(\t\"\222\004\n\021GameServerCluster\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\002\0224\n\013create_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022J\n\006labels\030\004 \003(\0132:.google.cloud.gamin" - + "g.v1alpha.GameServerCluster.LabelsEntry\022" - + "U\n\017connection_info\030\005 \001(\0132<.google.cloud." - + "gaming.v1alpha.GameServerClusterConnecti" - + "onInfo\022\014\n\004etag\030\006 \001(\t\022\023\n\013description\030\007 \001(" - + "\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001:\210\001\352A\204\001\n-gameservices.googleapis" - + ".com/GameServerCluster\022Sprojects/{projec" - + "t}/locations/{location}/realms/{realm}/g" - + "ameServerClusters/{cluster}Bf\n\037com.googl" - + "e.cloud.gaming.v1alphaP\001ZAgoogle.golang." - + "org/genproto/googleapis/cloud/gaming/v1a" - + "lpha;gamingb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gaming.v1alpha.Common.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_descriptor, - new java.lang.String[] { - "GameServerClusters", "NextPageToken", "UnreachableLocations", "Unreachable", - }); - internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_descriptor, - new java.lang.String[] { - "Parent", "GameServerClusterId", "GameServerCluster", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor, - new java.lang.String[] { - "Parent", "GameServerClusterId", "GameServerCluster", "PreviewTime", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor, - new java.lang.String[] { - "DeployedState", "Etag", "TargetState", - }); - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor, - new java.lang.String[] { - "Name", "PreviewTime", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor, - new java.lang.String[] { - "DeployedState", "Etag", "TargetState", - }); - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_descriptor, - new java.lang.String[] { - "GameServerCluster", "UpdateMask", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor, - new java.lang.String[] { - "GameServerCluster", "UpdateMask", "PreviewTime", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor, - new java.lang.String[] { - "DeployedState", "Etag", "TargetState", - }); - internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_descriptor, - new java.lang.String[] { - "GkeClusterReference", "GkeHubClusterReference", "Namespace", "ClusterReference", - }); - internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_descriptor, - new java.lang.String[] { - "Cluster", - }); - internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor, - new java.lang.String[] { - "Membership", - }); - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor, - new java.lang.String[] { - "Name", "CreateTime", "UpdateTime", "Labels", "ConnectionInfo", "Etag", "Description", - }); - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_LabelsEntry_descriptor = - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerCluster_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.Common.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceOuterClass.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceOuterClass.java deleted file mode 100644 index c9674233..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceOuterClass.java +++ /dev/null @@ -1,131 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters_service.proto - -package com.google.cloud.gaming.v1alpha; - -public final class GameServerClustersServiceOuterClass { - private GameServerClustersServiceOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n>google/cloud/gaming/v1alpha/game_serve" - + "r_clusters_service.proto\022\033google.cloud.g" - + "aming.v1alpha\032\034google/api/annotations.pr" - + "oto\032\027google/api/client.proto\0326google/clo" - + "ud/gaming/v1alpha/game_server_clusters.p" - + "roto\032#google/longrunning/operations.prot" - + "o2\360\021\n\031GameServerClustersService\022\350\001\n\026List" - + "GameServerClusters\022:.google.cloud.gaming" - + ".v1alpha.ListGameServerClustersRequest\032;" - + ".google.cloud.gaming.v1alpha.ListGameSer" - + "verClustersResponse\"U\202\323\344\223\002F\022D/v1alpha/{p" - + "arent=projects/*/locations/*/realms/*}/g" - + "ameServerClusters\332A\006parent\022\325\001\n\024GetGameSe" - + "rverCluster\0228.google.cloud.gaming.v1alph" - + "a.GetGameServerClusterRequest\032..google.c" - + "loud.gaming.v1alpha.GameServerCluster\"S\202" - + "\323\344\223\002F\022D/v1alpha/{name=projects/*/locatio" - + "ns/*/realms/*/gameServerClusters/*}\332A\004na" - + "me\022\266\002\n\027CreateGameServerCluster\022;.google." - + "cloud.gaming.v1alpha.CreateGameServerClu" - + "sterRequest\032\035.google.longrunning.Operati" - + "on\"\276\001\202\323\344\223\002[\"D/v1alpha/{parent=projects/*" - + "/locations/*/realms/*}/gameServerCluster" - + "s:\023game_server_cluster\332A1parent,game_ser" - + "ver_cluster,game_server_cluster_id\312A&\n\021G" - + "ameServerCluster\022\021OperationMetadata\022\232\002\n\036" - + "PreviewCreateGameServerCluster\022B.google." - + "cloud.gaming.v1alpha.PreviewCreateGameSe" - + "rverClusterRequest\032C.google.cloud.gaming" - + ".v1alpha.PreviewCreateGameServerClusterR" - + "esponse\"o\202\323\344\223\002i\"R/v1alpha/{parent=projec" - + "ts/*/locations/*/realms/*}/gameServerClu" - + "sters:previewCreate:\023game_server_cluster" - + "\022\363\001\n\027DeleteGameServerCluster\022;.google.cl" - + "oud.gaming.v1alpha.DeleteGameServerClust" - + "erRequest\032\035.google.longrunning.Operation" - + "\"|\202\323\344\223\002F*D/v1alpha/{name=projects/*/loca" - + "tions/*/realms/*/gameServerClusters/*}\332A" - + "\004name\312A&\n\021GameServerCluster\022\021OperationMe" - + "tadata\022\205\002\n\036PreviewDeleteGameServerCluste" - + "r\022B.google.cloud.gaming.v1alpha.PreviewD" - + "eleteGameServerClusterRequest\032C.google.c" - + "loud.gaming.v1alpha.PreviewDeleteGameSer" - + "verClusterResponse\"Z\202\323\344\223\002T*R/v1alpha/{na" - + "me=projects/*/locations/*/realms/*/gameS" - + "erverClusters/*}:previewDelete\022\270\002\n\027Updat" - + "eGameServerCluster\022;.google.cloud.gaming" - + ".v1alpha.UpdateGameServerClusterRequest\032" - + "\035.google.longrunning.Operation\"\300\001\202\323\344\223\002o2" - + "X/v1alpha/{game_server_cluster.name=proj" - + "ects/*/locations/*/realms/*/gameServerCl" - + "usters/*}:\023game_server_cluster\332A\037game_se" - + "rver_cluster,update_mask\312A&\n\021GameServerC" - + "luster\022\021OperationMetadata\022\257\002\n\036PreviewUpd" - + "ateGameServerCluster\022B.google.cloud.gami" - + "ng.v1alpha.PreviewUpdateGameServerCluste" - + "rRequest\032C.google.cloud.gaming.v1alpha.P" - + "reviewUpdateGameServerClusterResponse\"\203\001" - + "\202\323\344\223\002}2f/v1alpha/{game_server_cluster.na" - + "me=projects/*/locations/*/realms/*/gameS" - + "erverClusters/*}:previewUpdate:\023game_ser" - + "ver_cluster\032O\312A\033gameservices.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformBf\n\037com.google.cloud.gaming." - + "v1alphaP\001ZAgoogle.golang.org/genproto/go" - + "ogleapis/cloud/gaming/v1alpha;gamingb\006pr" - + "oto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.gaming.v1alpha.GameServerClusters.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.GameServerClusters.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfig.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfig.java deleted file mode 100644 index 5b01f005..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfig.java +++ /dev/null @@ -1,2740 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * A game server config resource.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerConfig} - */ -public final class GameServerConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerConfig) - GameServerConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GameServerConfig.newBuilder() to construct. - private GameServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GameServerConfig() { - name_ = ""; - fleetConfigs_ = java.util.Collections.emptyList(); - scalingConfigs_ = java.util.Collections.emptyList(); - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GameServerConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GameServerConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fleetConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - fleetConfigs_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.FleetConfig.parser(), extensionRegistry)); - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - scalingConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - scalingConfigs_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.ScalingConfig.parser(), extensionRegistry)); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - fleetConfigs_ = java.util.Collections.unmodifiableList(fleetConfigs_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - scalingConfigs_ = java.util.Collections.unmodifiableList(scalingConfigs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerConfig.class, - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The resource name of the game server config, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
-   * For example,
-   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The resource name of the game server config, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
-   * For example,
-   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int LABELS_FIELD_NUMBER = 4; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * The labels associated with this game server config. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * The labels associated with this game server config. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * The labels associated with this game server config. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The labels associated with this game server config. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int FLEET_CONFIGS_FIELD_NUMBER = 5; - private java.util.List fleetConfigs_; - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public java.util.List getFleetConfigsList() { - return fleetConfigs_; - } - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public java.util.List - getFleetConfigsOrBuilderList() { - return fleetConfigs_; - } - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public int getFleetConfigsCount() { - return fleetConfigs_.size(); - } - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public com.google.cloud.gaming.v1alpha.FleetConfig getFleetConfigs(int index) { - return fleetConfigs_.get(index); - } - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder getFleetConfigsOrBuilder(int index) { - return fleetConfigs_.get(index); - } - - public static final int SCALING_CONFIGS_FIELD_NUMBER = 6; - private java.util.List scalingConfigs_; - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public java.util.List getScalingConfigsList() { - return scalingConfigs_; - } - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public java.util.List - getScalingConfigsOrBuilderList() { - return scalingConfigs_; - } - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public int getScalingConfigsCount() { - return scalingConfigs_.size(); - } - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public com.google.cloud.gaming.v1alpha.ScalingConfig getScalingConfigs(int index) { - return scalingConfigs_.get(index); - } - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder getScalingConfigsOrBuilder( - int index) { - return scalingConfigs_.get(index); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 7; - private volatile java.lang.Object description_; - /** - * - * - *
-   * The description of the game server config.
-   * 
- * - * string description = 7; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * The description of the game server config.
-   * 
- * - * string description = 7; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - for (int i = 0; i < fleetConfigs_.size(); i++) { - output.writeMessage(5, fleetConfigs_.get(i)); - } - for (int i = 0; i < scalingConfigs_.size(); i++) { - output.writeMessage(6, scalingConfigs_.get(i)); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - for (int i = 0; i < fleetConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, fleetConfigs_.get(i)); - } - for (int i = 0; i < scalingConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, scalingConfigs_.get(i)); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GameServerConfig)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GameServerConfig other = - (com.google.cloud.gaming.v1alpha.GameServerConfig) obj; - - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getFleetConfigsList().equals(other.getFleetConfigsList())) return false; - if (!getScalingConfigsList().equals(other.getScalingConfigsList())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (getFleetConfigsCount() > 0) { - hash = (37 * hash) + FLEET_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getFleetConfigsList().hashCode(); - } - if (getScalingConfigsCount() > 0) { - hash = (37 * hash) + SCALING_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getScalingConfigsList().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.GameServerConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A game server config resource.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerConfig) - com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerConfig.class, - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GameServerConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFleetConfigsFieldBuilder(); - getScalingConfigsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - if (fleetConfigsBuilder_ == null) { - fleetConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - fleetConfigsBuilder_.clear(); - } - if (scalingConfigsBuilder_ == null) { - scalingConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - scalingConfigsBuilder_.clear(); - } - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerConfig getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerConfig build() { - com.google.cloud.gaming.v1alpha.GameServerConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerConfig buildPartial() { - com.google.cloud.gaming.v1alpha.GameServerConfig result = - new com.google.cloud.gaming.v1alpha.GameServerConfig(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (fleetConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - fleetConfigs_ = java.util.Collections.unmodifiableList(fleetConfigs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.fleetConfigs_ = fleetConfigs_; - } else { - result.fleetConfigs_ = fleetConfigsBuilder_.build(); - } - if (scalingConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - scalingConfigs_ = java.util.Collections.unmodifiableList(scalingConfigs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.scalingConfigs_ = scalingConfigs_; - } else { - result.scalingConfigs_ = scalingConfigsBuilder_.build(); - } - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GameServerConfig) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerConfig other) { - if (other == com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (fleetConfigsBuilder_ == null) { - if (!other.fleetConfigs_.isEmpty()) { - if (fleetConfigs_.isEmpty()) { - fleetConfigs_ = other.fleetConfigs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFleetConfigsIsMutable(); - fleetConfigs_.addAll(other.fleetConfigs_); - } - onChanged(); - } - } else { - if (!other.fleetConfigs_.isEmpty()) { - if (fleetConfigsBuilder_.isEmpty()) { - fleetConfigsBuilder_.dispose(); - fleetConfigsBuilder_ = null; - fleetConfigs_ = other.fleetConfigs_; - bitField0_ = (bitField0_ & ~0x00000002); - fleetConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFleetConfigsFieldBuilder() - : null; - } else { - fleetConfigsBuilder_.addAllMessages(other.fleetConfigs_); - } - } - } - if (scalingConfigsBuilder_ == null) { - if (!other.scalingConfigs_.isEmpty()) { - if (scalingConfigs_.isEmpty()) { - scalingConfigs_ = other.scalingConfigs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureScalingConfigsIsMutable(); - scalingConfigs_.addAll(other.scalingConfigs_); - } - onChanged(); - } - } else { - if (!other.scalingConfigs_.isEmpty()) { - if (scalingConfigsBuilder_.isEmpty()) { - scalingConfigsBuilder_.dispose(); - scalingConfigsBuilder_ = null; - scalingConfigs_ = other.scalingConfigs_; - bitField0_ = (bitField0_ & ~0x00000004); - scalingConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScalingConfigsFieldBuilder() - : null; - } else { - scalingConfigsBuilder_.addAllMessages(other.scalingConfigs_); - } - } - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GameServerConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.GameServerConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The resource name of the game server config, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
-     * For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource name of the game server config, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
-     * For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource name of the game server config, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
-     * For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the game server config, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
-     * For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the game server config, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
-     * For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * The labels associated with this game server config. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * The labels associated with this game server config. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * The labels associated with this game server config. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The labels associated with this game server config. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The labels associated with this game server config. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * The labels associated with this game server config. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The labels associated with this game server config. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private java.util.List fleetConfigs_ = - java.util.Collections.emptyList(); - - private void ensureFleetConfigsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - fleetConfigs_ = - new java.util.ArrayList(fleetConfigs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetConfig, - com.google.cloud.gaming.v1alpha.FleetConfig.Builder, - com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder> - fleetConfigsBuilder_; - - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public java.util.List getFleetConfigsList() { - if (fleetConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(fleetConfigs_); - } else { - return fleetConfigsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public int getFleetConfigsCount() { - if (fleetConfigsBuilder_ == null) { - return fleetConfigs_.size(); - } else { - return fleetConfigsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public com.google.cloud.gaming.v1alpha.FleetConfig getFleetConfigs(int index) { - if (fleetConfigsBuilder_ == null) { - return fleetConfigs_.get(index); - } else { - return fleetConfigsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public Builder setFleetConfigs(int index, com.google.cloud.gaming.v1alpha.FleetConfig value) { - if (fleetConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFleetConfigsIsMutable(); - fleetConfigs_.set(index, value); - onChanged(); - } else { - fleetConfigsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public Builder setFleetConfigs( - int index, com.google.cloud.gaming.v1alpha.FleetConfig.Builder builderForValue) { - if (fleetConfigsBuilder_ == null) { - ensureFleetConfigsIsMutable(); - fleetConfigs_.set(index, builderForValue.build()); - onChanged(); - } else { - fleetConfigsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public Builder addFleetConfigs(com.google.cloud.gaming.v1alpha.FleetConfig value) { - if (fleetConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFleetConfigsIsMutable(); - fleetConfigs_.add(value); - onChanged(); - } else { - fleetConfigsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public Builder addFleetConfigs(int index, com.google.cloud.gaming.v1alpha.FleetConfig value) { - if (fleetConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFleetConfigsIsMutable(); - fleetConfigs_.add(index, value); - onChanged(); - } else { - fleetConfigsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public Builder addFleetConfigs( - com.google.cloud.gaming.v1alpha.FleetConfig.Builder builderForValue) { - if (fleetConfigsBuilder_ == null) { - ensureFleetConfigsIsMutable(); - fleetConfigs_.add(builderForValue.build()); - onChanged(); - } else { - fleetConfigsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public Builder addFleetConfigs( - int index, com.google.cloud.gaming.v1alpha.FleetConfig.Builder builderForValue) { - if (fleetConfigsBuilder_ == null) { - ensureFleetConfigsIsMutable(); - fleetConfigs_.add(index, builderForValue.build()); - onChanged(); - } else { - fleetConfigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public Builder addAllFleetConfigs( - java.lang.Iterable values) { - if (fleetConfigsBuilder_ == null) { - ensureFleetConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fleetConfigs_); - onChanged(); - } else { - fleetConfigsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public Builder clearFleetConfigs() { - if (fleetConfigsBuilder_ == null) { - fleetConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - fleetConfigsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public Builder removeFleetConfigs(int index) { - if (fleetConfigsBuilder_ == null) { - ensureFleetConfigsIsMutable(); - fleetConfigs_.remove(index); - onChanged(); - } else { - fleetConfigsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public com.google.cloud.gaming.v1alpha.FleetConfig.Builder getFleetConfigsBuilder(int index) { - return getFleetConfigsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder getFleetConfigsOrBuilder( - int index) { - if (fleetConfigsBuilder_ == null) { - return fleetConfigs_.get(index); - } else { - return fleetConfigsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public java.util.List - getFleetConfigsOrBuilderList() { - if (fleetConfigsBuilder_ != null) { - return fleetConfigsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fleetConfigs_); - } - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public com.google.cloud.gaming.v1alpha.FleetConfig.Builder addFleetConfigsBuilder() { - return getFleetConfigsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.FleetConfig.getDefaultInstance()); - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public com.google.cloud.gaming.v1alpha.FleetConfig.Builder addFleetConfigsBuilder(int index) { - return getFleetConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.FleetConfig.getDefaultInstance()); - } - /** - * - * - *
-     * The fleet specs contains a list of fleet specs. For Single Cloud, only
-     * one fleet config is allowed.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - public java.util.List - getFleetConfigsBuilderList() { - return getFleetConfigsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetConfig, - com.google.cloud.gaming.v1alpha.FleetConfig.Builder, - com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder> - getFleetConfigsFieldBuilder() { - if (fleetConfigsBuilder_ == null) { - fleetConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetConfig, - com.google.cloud.gaming.v1alpha.FleetConfig.Builder, - com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder>( - fleetConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - fleetConfigs_ = null; - } - return fleetConfigsBuilder_; - } - - private java.util.List scalingConfigs_ = - java.util.Collections.emptyList(); - - private void ensureScalingConfigsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - scalingConfigs_ = - new java.util.ArrayList(scalingConfigs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingConfig, - com.google.cloud.gaming.v1alpha.ScalingConfig.Builder, - com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder> - scalingConfigsBuilder_; - - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public java.util.List getScalingConfigsList() { - if (scalingConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(scalingConfigs_); - } else { - return scalingConfigsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public int getScalingConfigsCount() { - if (scalingConfigsBuilder_ == null) { - return scalingConfigs_.size(); - } else { - return scalingConfigsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public com.google.cloud.gaming.v1alpha.ScalingConfig getScalingConfigs(int index) { - if (scalingConfigsBuilder_ == null) { - return scalingConfigs_.get(index); - } else { - return scalingConfigsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public Builder setScalingConfigs( - int index, com.google.cloud.gaming.v1alpha.ScalingConfig value) { - if (scalingConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureScalingConfigsIsMutable(); - scalingConfigs_.set(index, value); - onChanged(); - } else { - scalingConfigsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public Builder setScalingConfigs( - int index, com.google.cloud.gaming.v1alpha.ScalingConfig.Builder builderForValue) { - if (scalingConfigsBuilder_ == null) { - ensureScalingConfigsIsMutable(); - scalingConfigs_.set(index, builderForValue.build()); - onChanged(); - } else { - scalingConfigsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public Builder addScalingConfigs(com.google.cloud.gaming.v1alpha.ScalingConfig value) { - if (scalingConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureScalingConfigsIsMutable(); - scalingConfigs_.add(value); - onChanged(); - } else { - scalingConfigsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public Builder addScalingConfigs( - int index, com.google.cloud.gaming.v1alpha.ScalingConfig value) { - if (scalingConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureScalingConfigsIsMutable(); - scalingConfigs_.add(index, value); - onChanged(); - } else { - scalingConfigsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public Builder addScalingConfigs( - com.google.cloud.gaming.v1alpha.ScalingConfig.Builder builderForValue) { - if (scalingConfigsBuilder_ == null) { - ensureScalingConfigsIsMutable(); - scalingConfigs_.add(builderForValue.build()); - onChanged(); - } else { - scalingConfigsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public Builder addScalingConfigs( - int index, com.google.cloud.gaming.v1alpha.ScalingConfig.Builder builderForValue) { - if (scalingConfigsBuilder_ == null) { - ensureScalingConfigsIsMutable(); - scalingConfigs_.add(index, builderForValue.build()); - onChanged(); - } else { - scalingConfigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public Builder addAllScalingConfigs( - java.lang.Iterable values) { - if (scalingConfigsBuilder_ == null) { - ensureScalingConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scalingConfigs_); - onChanged(); - } else { - scalingConfigsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public Builder clearScalingConfigs() { - if (scalingConfigsBuilder_ == null) { - scalingConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - scalingConfigsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public Builder removeScalingConfigs(int index) { - if (scalingConfigsBuilder_ == null) { - ensureScalingConfigsIsMutable(); - scalingConfigs_.remove(index); - onChanged(); - } else { - scalingConfigsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public com.google.cloud.gaming.v1alpha.ScalingConfig.Builder getScalingConfigsBuilder( - int index) { - return getScalingConfigsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder getScalingConfigsOrBuilder( - int index) { - if (scalingConfigsBuilder_ == null) { - return scalingConfigs_.get(index); - } else { - return scalingConfigsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public java.util.List - getScalingConfigsOrBuilderList() { - if (scalingConfigsBuilder_ != null) { - return scalingConfigsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(scalingConfigs_); - } - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public com.google.cloud.gaming.v1alpha.ScalingConfig.Builder addScalingConfigsBuilder() { - return getScalingConfigsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.ScalingConfig.getDefaultInstance()); - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public com.google.cloud.gaming.v1alpha.ScalingConfig.Builder addScalingConfigsBuilder( - int index) { - return getScalingConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.ScalingConfig.getDefaultInstance()); - } - /** - * - * - *
-     * The autoscaling settings for Agones fleet.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - public java.util.List - getScalingConfigsBuilderList() { - return getScalingConfigsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingConfig, - com.google.cloud.gaming.v1alpha.ScalingConfig.Builder, - com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder> - getScalingConfigsFieldBuilder() { - if (scalingConfigsBuilder_ == null) { - scalingConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingConfig, - com.google.cloud.gaming.v1alpha.ScalingConfig.Builder, - com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder>( - scalingConfigs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - scalingConfigs_ = null; - } - return scalingConfigsBuilder_; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * The description of the game server config.
-     * 
- * - * string description = 7; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The description of the game server config.
-     * 
- * - * string description = 7; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The description of the game server config.
-     * 
- * - * string description = 7; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the game server config.
-     * 
- * - * string description = 7; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the game server config.
-     * 
- * - * string description = 7; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GameServerConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerConfig) - private static final com.google.cloud.gaming.v1alpha.GameServerConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerConfig(); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GameServerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameServerConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOrBuilder.java deleted file mode 100644 index 2722c5ea..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOrBuilder.java +++ /dev/null @@ -1,325 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GameServerConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource name of the game server config, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
-   * For example,
-   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The resource name of the game server config, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
-   * For example,
-   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * The labels associated with this game server config. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - int getLabelsCount(); - /** - * - * - *
-   * The labels associated with this game server config. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * The labels associated with this game server config. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * The labels associated with this game server config. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * The labels associated with this game server config. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - java.util.List getFleetConfigsList(); - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - com.google.cloud.gaming.v1alpha.FleetConfig getFleetConfigs(int index); - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - int getFleetConfigsCount(); - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - java.util.List - getFleetConfigsOrBuilderList(); - /** - * - * - *
-   * The fleet specs contains a list of fleet specs. For Single Cloud, only
-   * one fleet config is allowed.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; - */ - com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder getFleetConfigsOrBuilder(int index); - - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - java.util.List getScalingConfigsList(); - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - com.google.cloud.gaming.v1alpha.ScalingConfig getScalingConfigs(int index); - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - int getScalingConfigsCount(); - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - java.util.List - getScalingConfigsOrBuilderList(); - /** - * - * - *
-   * The autoscaling settings for Agones fleet.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; - */ - com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder getScalingConfigsOrBuilder(int index); - - /** - * - * - *
-   * The description of the game server config.
-   * 
- * - * string description = 7; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * The description of the game server config.
-   * 
- * - * string description = 7; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverride.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverride.java deleted file mode 100644 index a5b791af..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverride.java +++ /dev/null @@ -1,1110 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * A game server config override.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerConfigOverride} - */ -public final class GameServerConfigOverride extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerConfigOverride) - GameServerConfigOverrideOrBuilder { - private static final long serialVersionUID = 0L; - // Use GameServerConfigOverride.newBuilder() to construct. - private GameServerConfigOverride(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GameServerConfigOverride() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GameServerConfigOverride(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GameServerConfigOverride( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.RealmSelector.Builder subBuilder = null; - if (selectorCase_ == 1) { - subBuilder = - ((com.google.cloud.gaming.v1alpha.RealmSelector) selector_).toBuilder(); - } - selector_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.RealmSelector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gaming.v1alpha.RealmSelector) selector_); - selector_ = subBuilder.buildPartial(); - } - selectorCase_ = 1; - break; - } - case 802: - { - java.lang.String s = input.readStringRequireUtf8(); - changeCase_ = 100; - change_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.class, - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder.class); - } - - private int selectorCase_ = 0; - private java.lang.Object selector_; - - public enum SelectorCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - REALMS_SELECTOR(1), - SELECTOR_NOT_SET(0); - private final int value; - - private SelectorCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SelectorCase valueOf(int value) { - return forNumber(value); - } - - public static SelectorCase forNumber(int value) { - switch (value) { - case 1: - return REALMS_SELECTOR; - case 0: - return SELECTOR_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SelectorCase getSelectorCase() { - return SelectorCase.forNumber(selectorCase_); - } - - private int changeCase_ = 0; - private java.lang.Object change_; - - public enum ChangeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CONFIG_VERSION(100), - CHANGE_NOT_SET(0); - private final int value; - - private ChangeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ChangeCase valueOf(int value) { - return forNumber(value); - } - - public static ChangeCase forNumber(int value) { - switch (value) { - case 100: - return CONFIG_VERSION; - case 0: - return CHANGE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ChangeCase getChangeCase() { - return ChangeCase.forNumber(changeCase_); - } - - public static final int REALMS_SELECTOR_FIELD_NUMBER = 1; - /** - * - * - *
-   * Selector for choosing applicable realms.
-   * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - * - * @return Whether the realmsSelector field is set. - */ - public boolean hasRealmsSelector() { - return selectorCase_ == 1; - } - /** - * - * - *
-   * Selector for choosing applicable realms.
-   * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - * - * @return The realmsSelector. - */ - public com.google.cloud.gaming.v1alpha.RealmSelector getRealmsSelector() { - if (selectorCase_ == 1) { - return (com.google.cloud.gaming.v1alpha.RealmSelector) selector_; - } - return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); - } - /** - * - * - *
-   * Selector for choosing applicable realms.
-   * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - */ - public com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder getRealmsSelectorOrBuilder() { - if (selectorCase_ == 1) { - return (com.google.cloud.gaming.v1alpha.RealmSelector) selector_; - } - return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); - } - - public static final int CONFIG_VERSION_FIELD_NUMBER = 100; - /** - * - * - *
-   * The game server config for this override.
-   * 
- * - * string config_version = 100; - * - * @return The configVersion. - */ - public java.lang.String getConfigVersion() { - java.lang.Object ref = ""; - if (changeCase_ == 100) { - ref = change_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (changeCase_ == 100) { - change_ = s; - } - return s; - } - } - /** - * - * - *
-   * The game server config for this override.
-   * 
- * - * string config_version = 100; - * - * @return The bytes for configVersion. - */ - public com.google.protobuf.ByteString getConfigVersionBytes() { - java.lang.Object ref = ""; - if (changeCase_ == 100) { - ref = change_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (changeCase_ == 100) { - change_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (selectorCase_ == 1) { - output.writeMessage(1, (com.google.cloud.gaming.v1alpha.RealmSelector) selector_); - } - if (changeCase_ == 100) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, change_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (selectorCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.gaming.v1alpha.RealmSelector) selector_); - } - if (changeCase_ == 100) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, change_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GameServerConfigOverride)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GameServerConfigOverride other = - (com.google.cloud.gaming.v1alpha.GameServerConfigOverride) obj; - - if (!getSelectorCase().equals(other.getSelectorCase())) return false; - switch (selectorCase_) { - case 1: - if (!getRealmsSelector().equals(other.getRealmsSelector())) return false; - break; - case 0: - default: - } - if (!getChangeCase().equals(other.getChangeCase())) return false; - switch (changeCase_) { - case 100: - if (!getConfigVersion().equals(other.getConfigVersion())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (selectorCase_) { - case 1: - hash = (37 * hash) + REALMS_SELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getRealmsSelector().hashCode(); - break; - case 0: - default: - } - switch (changeCase_) { - case 100: - hash = (37 * hash) + CONFIG_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getConfigVersion().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GameServerConfigOverride prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A game server config override.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerConfigOverride} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerConfigOverride) - com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.class, - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GameServerConfigOverride.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - selectorCase_ = 0; - selector_ = null; - changeCase_ = 0; - change_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfigOverride.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride build() { - com.google.cloud.gaming.v1alpha.GameServerConfigOverride result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride buildPartial() { - com.google.cloud.gaming.v1alpha.GameServerConfigOverride result = - new com.google.cloud.gaming.v1alpha.GameServerConfigOverride(this); - if (selectorCase_ == 1) { - if (realmsSelectorBuilder_ == null) { - result.selector_ = selector_; - } else { - result.selector_ = realmsSelectorBuilder_.build(); - } - } - if (changeCase_ == 100) { - result.change_ = change_; - } - result.selectorCase_ = selectorCase_; - result.changeCase_ = changeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GameServerConfigOverride) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerConfigOverride) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerConfigOverride other) { - if (other == com.google.cloud.gaming.v1alpha.GameServerConfigOverride.getDefaultInstance()) - return this; - switch (other.getSelectorCase()) { - case REALMS_SELECTOR: - { - mergeRealmsSelector(other.getRealmsSelector()); - break; - } - case SELECTOR_NOT_SET: - { - break; - } - } - switch (other.getChangeCase()) { - case CONFIG_VERSION: - { - changeCase_ = 100; - change_ = other.change_; - onChanged(); - break; - } - case CHANGE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GameServerConfigOverride parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GameServerConfigOverride) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int selectorCase_ = 0; - private java.lang.Object selector_; - - public SelectorCase getSelectorCase() { - return SelectorCase.forNumber(selectorCase_); - } - - public Builder clearSelector() { - selectorCase_ = 0; - selector_ = null; - onChanged(); - return this; - } - - private int changeCase_ = 0; - private java.lang.Object change_; - - public ChangeCase getChangeCase() { - return ChangeCase.forNumber(changeCase_); - } - - public Builder clearChange() { - changeCase_ = 0; - change_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.RealmSelector, - com.google.cloud.gaming.v1alpha.RealmSelector.Builder, - com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder> - realmsSelectorBuilder_; - /** - * - * - *
-     * Selector for choosing applicable realms.
-     * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - * - * @return Whether the realmsSelector field is set. - */ - public boolean hasRealmsSelector() { - return selectorCase_ == 1; - } - /** - * - * - *
-     * Selector for choosing applicable realms.
-     * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - * - * @return The realmsSelector. - */ - public com.google.cloud.gaming.v1alpha.RealmSelector getRealmsSelector() { - if (realmsSelectorBuilder_ == null) { - if (selectorCase_ == 1) { - return (com.google.cloud.gaming.v1alpha.RealmSelector) selector_; - } - return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); - } else { - if (selectorCase_ == 1) { - return realmsSelectorBuilder_.getMessage(); - } - return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); - } - } - /** - * - * - *
-     * Selector for choosing applicable realms.
-     * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - */ - public Builder setRealmsSelector(com.google.cloud.gaming.v1alpha.RealmSelector value) { - if (realmsSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - selector_ = value; - onChanged(); - } else { - realmsSelectorBuilder_.setMessage(value); - } - selectorCase_ = 1; - return this; - } - /** - * - * - *
-     * Selector for choosing applicable realms.
-     * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - */ - public Builder setRealmsSelector( - com.google.cloud.gaming.v1alpha.RealmSelector.Builder builderForValue) { - if (realmsSelectorBuilder_ == null) { - selector_ = builderForValue.build(); - onChanged(); - } else { - realmsSelectorBuilder_.setMessage(builderForValue.build()); - } - selectorCase_ = 1; - return this; - } - /** - * - * - *
-     * Selector for choosing applicable realms.
-     * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - */ - public Builder mergeRealmsSelector(com.google.cloud.gaming.v1alpha.RealmSelector value) { - if (realmsSelectorBuilder_ == null) { - if (selectorCase_ == 1 - && selector_ != com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance()) { - selector_ = - com.google.cloud.gaming.v1alpha.RealmSelector.newBuilder( - (com.google.cloud.gaming.v1alpha.RealmSelector) selector_) - .mergeFrom(value) - .buildPartial(); - } else { - selector_ = value; - } - onChanged(); - } else { - if (selectorCase_ == 1) { - realmsSelectorBuilder_.mergeFrom(value); - } - realmsSelectorBuilder_.setMessage(value); - } - selectorCase_ = 1; - return this; - } - /** - * - * - *
-     * Selector for choosing applicable realms.
-     * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - */ - public Builder clearRealmsSelector() { - if (realmsSelectorBuilder_ == null) { - if (selectorCase_ == 1) { - selectorCase_ = 0; - selector_ = null; - onChanged(); - } - } else { - if (selectorCase_ == 1) { - selectorCase_ = 0; - selector_ = null; - } - realmsSelectorBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Selector for choosing applicable realms.
-     * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - */ - public com.google.cloud.gaming.v1alpha.RealmSelector.Builder getRealmsSelectorBuilder() { - return getRealmsSelectorFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Selector for choosing applicable realms.
-     * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - */ - public com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder getRealmsSelectorOrBuilder() { - if ((selectorCase_ == 1) && (realmsSelectorBuilder_ != null)) { - return realmsSelectorBuilder_.getMessageOrBuilder(); - } else { - if (selectorCase_ == 1) { - return (com.google.cloud.gaming.v1alpha.RealmSelector) selector_; - } - return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); - } - } - /** - * - * - *
-     * Selector for choosing applicable realms.
-     * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.RealmSelector, - com.google.cloud.gaming.v1alpha.RealmSelector.Builder, - com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder> - getRealmsSelectorFieldBuilder() { - if (realmsSelectorBuilder_ == null) { - if (!(selectorCase_ == 1)) { - selector_ = com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); - } - realmsSelectorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.RealmSelector, - com.google.cloud.gaming.v1alpha.RealmSelector.Builder, - com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder>( - (com.google.cloud.gaming.v1alpha.RealmSelector) selector_, - getParentForChildren(), - isClean()); - selector_ = null; - } - selectorCase_ = 1; - onChanged(); - ; - return realmsSelectorBuilder_; - } - - /** - * - * - *
-     * The game server config for this override.
-     * 
- * - * string config_version = 100; - * - * @return The configVersion. - */ - public java.lang.String getConfigVersion() { - java.lang.Object ref = ""; - if (changeCase_ == 100) { - ref = change_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (changeCase_ == 100) { - change_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The game server config for this override.
-     * 
- * - * string config_version = 100; - * - * @return The bytes for configVersion. - */ - public com.google.protobuf.ByteString getConfigVersionBytes() { - java.lang.Object ref = ""; - if (changeCase_ == 100) { - ref = change_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (changeCase_ == 100) { - change_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The game server config for this override.
-     * 
- * - * string config_version = 100; - * - * @param value The configVersion to set. - * @return This builder for chaining. - */ - public Builder setConfigVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - changeCase_ = 100; - change_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The game server config for this override.
-     * 
- * - * string config_version = 100; - * - * @return This builder for chaining. - */ - public Builder clearConfigVersion() { - if (changeCase_ == 100) { - changeCase_ = 0; - change_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The game server config for this override.
-     * 
- * - * string config_version = 100; - * - * @param value The bytes for configVersion to set. - * @return This builder for chaining. - */ - public Builder setConfigVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - changeCase_ = 100; - change_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GameServerConfigOverride) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerConfigOverride) - private static final com.google.cloud.gaming.v1alpha.GameServerConfigOverride DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerConfigOverride(); - } - - public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GameServerConfigOverride parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameServerConfigOverride(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverrideOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverrideOrBuilder.java deleted file mode 100644 index 51082e4f..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverrideOrBuilder.java +++ /dev/null @@ -1,89 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GameServerConfigOverrideOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerConfigOverride) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Selector for choosing applicable realms.
-   * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - * - * @return Whether the realmsSelector field is set. - */ - boolean hasRealmsSelector(); - /** - * - * - *
-   * Selector for choosing applicable realms.
-   * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - * - * @return The realmsSelector. - */ - com.google.cloud.gaming.v1alpha.RealmSelector getRealmsSelector(); - /** - * - * - *
-   * Selector for choosing applicable realms.
-   * 
- * - * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; - */ - com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder getRealmsSelectorOrBuilder(); - - /** - * - * - *
-   * The game server config for this override.
-   * 
- * - * string config_version = 100; - * - * @return The configVersion. - */ - java.lang.String getConfigVersion(); - /** - * - * - *
-   * The game server config for this override.
-   * 
- * - * string config_version = 100; - * - * @return The bytes for configVersion. - */ - com.google.protobuf.ByteString getConfigVersionBytes(); - - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.SelectorCase getSelectorCase(); - - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.ChangeCase getChangeCase(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigs.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigs.java deleted file mode 100644 index 6f2abff1..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigs.java +++ /dev/null @@ -1,231 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -public final class GameServerConfigs { - private GameServerConfigs() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ScalingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FleetConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/gaming/v1alpha/game_serve" - + "r_configs.proto\022\033google.cloud.gaming.v1a" - + "lpha\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\032(google/cloud/g" - + "aming/v1alpha/common.proto\032\037google/proto" - + "buf/timestamp.proto\032\034google/api/annotati" - + "ons.proto\"\301\001\n\034ListGameServerConfigsReque" - + "st\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,gameservices" - + ".googleapis.com/GameServerConfig\022\026\n\tpage" - + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" - + "\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\t" - + "B\003\340A\001\"\274\001\n\035ListGameServerConfigsResponse\022" - + "J\n\023game_server_configs\030\001 \003(\0132-.google.cl" - + "oud.gaming.v1alpha.GameServerConfig\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022!\n\025unreachable_loca" - + "tions\030\003 \003(\tB\002\030\001\022\023\n\013unreachable\030\004 \003(\t\"`\n\032" - + "GetGameServerConfigRequest\022B\n\004name\030\001 \001(\t" - + "B4\340A\002\372A.\n,gameservices.googleapis.com/Ga" - + "meServerConfig\"\315\001\n\035CreateGameServerConfi" - + "gRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,gamese" - + "rvices.googleapis.com/GameServerConfig\022\026" - + "\n\tconfig_id\030\002 \001(\tB\003\340A\002\022N\n\022game_server_co" - + "nfig\030\003 \001(\0132-.google.cloud.gaming.v1alpha" - + ".GameServerConfigB\003\340A\002\"c\n\035DeleteGameServ" - + "erConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,g" - + "ameservices.googleapis.com/GameServerCon" - + "fig\"\277\001\n\rScalingConfig\022\021\n\004name\030\001 \001(\tB\003\340A\002" - + "\022\"\n\025fleet_autoscaler_spec\030\002 \001(\tB\003\340A\002\022=\n\t" - + "selectors\030\004 \003(\0132*.google.cloud.gaming.v1" - + "alpha.LabelSelector\0228\n\tschedules\030\005 \003(\0132%" - + ".google.cloud.gaming.v1alpha.Schedule\"/\n" - + "\013FleetConfig\022\022\n\nfleet_spec\030\001 \001(\t\022\014\n\004name" - + "\030\002 \001(\t\"\263\004\n\020GameServerConfig\022\014\n\004name\030\001 \001(" - + "\t\0224\n\013create_time\030\002 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022I\n\006labels\030" - + "\004 \003(\01329.google.cloud.gaming.v1alpha.Game" - + "ServerConfig.LabelsEntry\022?\n\rfleet_config" - + "s\030\005 \003(\0132(.google.cloud.gaming.v1alpha.Fl" - + "eetConfig\022C\n\017scaling_configs\030\006 \003(\0132*.goo" - + "gle.cloud.gaming.v1alpha.ScalingConfig\022\023" - + "\n\013description\030\007 \001(\t\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\217\001\352A\213\001\n,games" - + "ervices.googleapis.com/GameServerConfig\022" - + "[projects/{project}/locations/{location}" - + "/gameServerDeployments/{deployment}/conf" - + "igs/{config}Bf\n\037com.google.cloud.gaming." - + "v1alphaP\001ZAgoogle.golang.org/genproto/go" - + "ogleapis/cloud/gaming/v1alpha;gamingb\006pr" - + "oto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gaming.v1alpha.Common.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor, - new java.lang.String[] { - "GameServerConfigs", "NextPageToken", "UnreachableLocations", "Unreachable", - }); - internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "ConfigId", "GameServerConfig", - }); - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gaming_v1alpha_ScalingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor, - new java.lang.String[] { - "Name", "FleetAutoscalerSpec", "Selectors", "Schedules", - }); - internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gaming_v1alpha_FleetConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor, - new java.lang.String[] { - "FleetSpec", "Name", - }); - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "FleetConfigs", - "ScalingConfigs", - "Description", - }); - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_descriptor = - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.Common.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceOuterClass.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceOuterClass.java deleted file mode 100644 index 9c01fae2..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceOuterClass.java +++ /dev/null @@ -1,101 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs_service.proto - -package com.google.cloud.gaming.v1alpha; - -public final class GameServerConfigsServiceOuterClass { - private GameServerConfigsServiceOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n=google/cloud/gaming/v1alpha/game_serve" - + "r_configs_service.proto\022\033google.cloud.ga" - + "ming.v1alpha\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\0325google/clou" - + "d/gaming/v1alpha/game_server_configs.pro" - + "to\032#google/longrunning/operations.proto2" - + "\310\010\n\030GameServerConfigsService\022\351\001\n\025ListGam" - + "eServerConfigs\0229.google.cloud.gaming.v1a" - + "lpha.ListGameServerConfigsRequest\032:.goog" - + "le.cloud.gaming.v1alpha.ListGameServerCo" - + "nfigsResponse\"Y\202\323\344\223\002J\022H/v1alpha/{parent=" - + "projects/*/locations/*/gameServerDeploym" - + "ents/*}/configs\332A\006parent\022\326\001\n\023GetGameServ" - + "erConfig\0227.google.cloud.gaming.v1alpha.G" - + "etGameServerConfigRequest\032-.google.cloud" - + ".gaming.v1alpha.GameServerConfig\"W\202\323\344\223\002J" - + "\022H/v1alpha/{name=projects/*/locations/*/" - + "gameServerDeployments/*/configs/*}\332A\004nam" - + "e\022\236\002\n\026CreateGameServerConfig\022:.google.cl" - + "oud.gaming.v1alpha.CreateGameServerConfi" - + "gRequest\032\035.google.longrunning.Operation\"" - + "\250\001\202\323\344\223\002^\"H/v1alpha/{parent=projects/*/lo" - + "cations/*/gameServerDeployments/*}/confi" - + "gs:\022game_server_config\332A\031parent,game_ser" - + "ver_config\312A%\n\020GameServerConfig\022\021Operati" - + "onMetadata\022\364\001\n\026DeleteGameServerConfig\022:." - + "google.cloud.gaming.v1alpha.DeleteGameSe" - + "rverConfigRequest\032\035.google.longrunning.O" - + "peration\"\177\202\323\344\223\002J*H/v1alpha/{name=project" - + "s/*/locations/*/gameServerDeployments/*/" - + "configs/*}\332A\004name\312A%\n\020GameServerConfig\022\021" - + "OperationMetadata\032O\312A\033gameservices.googl" - + "eapis.com\322A.https://www.googleapis.com/a" - + "uth/cloud-platformBf\n\037com.google.cloud.g" - + "aming.v1alphaP\001ZAgoogle.golang.org/genpr" - + "oto/googleapis/cloud/gaming/v1alpha;gami" - + "ngb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.gaming.v1alpha.GameServerConfigs.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.GameServerConfigs.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployment.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployment.java deleted file mode 100644 index c5abc914..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployment.java +++ /dev/null @@ -1,1914 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * A game server deployment resource.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerDeployment} - */ -public final class GameServerDeployment extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerDeployment) - GameServerDeploymentOrBuilder { - private static final long serialVersionUID = 0L; - // Use GameServerDeployment.newBuilder() to construct. - private GameServerDeployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GameServerDeployment() { - name_ = ""; - etag_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GameServerDeployment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GameServerDeployment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerDeployment.class, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The resource name of the game server deployment, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
-   * For example,
-   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The resource name of the game server deployment, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
-   * For example,
-   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int LABELS_FIELD_NUMBER = 4; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * The labels associated with this game server deployment. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * The labels associated with this game server deployment. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * The labels associated with this game server deployment. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The labels associated with this game server deployment. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 7; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 7; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 8; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Human readable description of the game server deployment.
-   * 
- * - * string description = 8; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Human readable description of the game server deployment.
-   * 
- * - * string description = 8; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (!getEtagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, etag_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - if (!getEtagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GameServerDeployment)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GameServerDeployment other = - (com.google.cloud.gaming.v1alpha.GameServerDeployment) obj; - - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.GameServerDeployment prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A game server deployment resource.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerDeployment} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerDeployment) - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerDeployment.class, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GameServerDeployment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - etag_ = ""; - - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerDeployment getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerDeployment build() { - com.google.cloud.gaming.v1alpha.GameServerDeployment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerDeployment buildPartial() { - com.google.cloud.gaming.v1alpha.GameServerDeployment result = - new com.google.cloud.gaming.v1alpha.GameServerDeployment(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GameServerDeployment) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerDeployment) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerDeployment other) { - if (other == com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GameServerDeployment parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GameServerDeployment) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The resource name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the game server deployment, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * The labels associated with this game server deployment. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * The labels associated with this game server deployment. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * The labels associated with this game server deployment. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The labels associated with this game server deployment. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The labels associated with this game server deployment. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * The labels associated with this game server deployment. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The labels associated with this game server deployment. Each label is a
-     * key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Human readable description of the game server deployment.
-     * 
- * - * string description = 8; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human readable description of the game server deployment.
-     * 
- * - * string description = 8; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human readable description of the game server deployment.
-     * 
- * - * string description = 8; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human readable description of the game server deployment.
-     * 
- * - * string description = 8; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human readable description of the game server deployment.
-     * 
- * - * string description = 8; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GameServerDeployment) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerDeployment) - private static final com.google.cloud.gaming.v1alpha.GameServerDeployment DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerDeployment(); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeployment getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GameServerDeployment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameServerDeployment(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerDeployment getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentName.java deleted file mode 100644 index 0c35a96b..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentName.java +++ /dev/null @@ -1,217 +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 - * - * 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. - */ - -package com.google.cloud.gaming.v1alpha; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** AUTO-GENERATED DOCUMENTATION AND CLASS */ -@javax.annotation.Generated("by GAPIC protoc plugin") -public class GameServerDeploymentName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/gameServerDeployments/{game_server_deployment}"); - - private volatile Map fieldValuesMap; - - private final String project; - private final String location; - private final String gameServerDeployment; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getGameServerDeployment() { - return gameServerDeployment; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private GameServerDeploymentName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - gameServerDeployment = Preconditions.checkNotNull(builder.getGameServerDeployment()); - } - - public static GameServerDeploymentName of( - String project, String location, String gameServerDeployment) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setGameServerDeployment(gameServerDeployment) - .build(); - } - - public static String format(String project, String location, String gameServerDeployment) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setGameServerDeployment(gameServerDeployment) - .build() - .toString(); - } - - public static GameServerDeploymentName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "GameServerDeploymentName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), matchMap.get("location"), matchMap.get("game_server_deployment")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (GameServerDeploymentName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("location", location); - fieldMapBuilder.put("gameServerDeployment", gameServerDeployment); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate( - "project", project, "location", location, "game_server_deployment", gameServerDeployment); - } - - /** Builder for GameServerDeploymentName. */ - public static class Builder { - - private String project; - private String location; - private String gameServerDeployment; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getGameServerDeployment() { - return gameServerDeployment; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setGameServerDeployment(String gameServerDeployment) { - this.gameServerDeployment = gameServerDeployment; - return this; - } - - private Builder() {} - - private Builder(GameServerDeploymentName gameServerDeploymentName) { - project = gameServerDeploymentName.project; - location = gameServerDeploymentName.location; - gameServerDeployment = gameServerDeploymentName.gameServerDeployment; - } - - public GameServerDeploymentName build() { - return new GameServerDeploymentName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof GameServerDeploymentName) { - GameServerDeploymentName that = (GameServerDeploymentName) o; - return (this.project.equals(that.project)) - && (this.location.equals(that.location)) - && (this.gameServerDeployment.equals(that.gameServerDeployment)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= location.hashCode(); - h *= 1000003; - h ^= gameServerDeployment.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder.java deleted file mode 100644 index 29a0a926..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder.java +++ /dev/null @@ -1,241 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GameServerDeploymentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerDeployment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource name of the game server deployment, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
-   * For example,
-   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The resource name of the game server deployment, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
-   * For example,
-   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * The labels associated with this game server deployment. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - int getLabelsCount(); - /** - * - * - *
-   * The labels associated with this game server deployment. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * The labels associated with this game server deployment. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * The labels associated with this game server deployment. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * The labels associated with this game server deployment. Each label is a
-   * key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 7; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 7; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * Human readable description of the game server deployment.
-   * 
- * - * string description = 8; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Human readable description of the game server deployment.
-   * 
- * - * string description = 8; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRollout.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRollout.java deleted file mode 100644 index fdf4f9fb..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRollout.java +++ /dev/null @@ -1,2216 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * The game server deployment rollout which represents the rollout state.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerDeploymentRollout} - */ -public final class GameServerDeploymentRollout extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerDeploymentRollout) - GameServerDeploymentRolloutOrBuilder { - private static final long serialVersionUID = 0L; - // Use GameServerDeploymentRollout.newBuilder() to construct. - private GameServerDeploymentRollout(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GameServerDeploymentRollout() { - name_ = ""; - defaultGameServerConfig_ = ""; - gameServerConfigOverrides_ = java.util.Collections.emptyList(); - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GameServerDeploymentRollout(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GameServerDeploymentRollout( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - defaultGameServerConfig_ = s; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - gameServerConfigOverrides_ = - new java.util.ArrayList< - com.google.cloud.gaming.v1alpha.GameServerConfigOverride>(); - mutable_bitField0_ |= 0x00000001; - } - gameServerConfigOverrides_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.parser(), - extensionRegistry)); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - gameServerConfigOverrides_ = - java.util.Collections.unmodifiableList(gameServerConfigOverrides_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.class, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The resource name of the game server deployment rollout, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
-   * For example,
-   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The resource name of the game server deployment rollout, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
-   * For example,
-   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int DEFAULT_GAME_SERVER_CONFIG_FIELD_NUMBER = 4; - private volatile java.lang.Object defaultGameServerConfig_; - /** - * - * - *
-   * The default game server config points to the game server config  that is
-   * applied in all realms/clustesr. For example,
-   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-   * 
- * - * string default_game_server_config = 4; - * - * @return The defaultGameServerConfig. - */ - public java.lang.String getDefaultGameServerConfig() { - java.lang.Object ref = defaultGameServerConfig_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultGameServerConfig_ = s; - return s; - } - } - /** - * - * - *
-   * The default game server config points to the game server config  that is
-   * applied in all realms/clustesr. For example,
-   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-   * 
- * - * string default_game_server_config = 4; - * - * @return The bytes for defaultGameServerConfig. - */ - public com.google.protobuf.ByteString getDefaultGameServerConfigBytes() { - java.lang.Object ref = defaultGameServerConfig_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultGameServerConfig_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAME_SERVER_CONFIG_OVERRIDES_FIELD_NUMBER = 5; - private java.util.List - gameServerConfigOverrides_; - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public java.util.List - getGameServerConfigOverridesList() { - return gameServerConfigOverrides_; - } - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public java.util.List - getGameServerConfigOverridesOrBuilderList() { - return gameServerConfigOverrides_; - } - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public int getGameServerConfigOverridesCount() { - return gameServerConfigOverrides_.size(); - } - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride getGameServerConfigOverrides( - int index) { - return gameServerConfigOverrides_.get(index); - } - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder - getGameServerConfigOverridesOrBuilder(int index) { - return gameServerConfigOverrides_.get(index); - } - - public static final int ETAG_FIELD_NUMBER = 6; - private volatile java.lang.Object etag_; - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 6; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 6; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - if (!getDefaultGameServerConfigBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultGameServerConfig_); - } - for (int i = 0; i < gameServerConfigOverrides_.size(); i++) { - output.writeMessage(5, gameServerConfigOverrides_.get(i)); - } - if (!getEtagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - if (!getDefaultGameServerConfigBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultGameServerConfig_); - } - for (int i = 0; i < gameServerConfigOverrides_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, gameServerConfigOverrides_.get(i)); - } - if (!getEtagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout other = - (com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout) obj; - - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getDefaultGameServerConfig().equals(other.getDefaultGameServerConfig())) return false; - if (!getGameServerConfigOverridesList().equals(other.getGameServerConfigOverridesList())) - return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + DEFAULT_GAME_SERVER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDefaultGameServerConfig().hashCode(); - if (getGameServerConfigOverridesCount() > 0) { - hash = (37 * hash) + GAME_SERVER_CONFIG_OVERRIDES_FIELD_NUMBER; - hash = (53 * hash) + getGameServerConfigOverridesList().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The game server deployment rollout which represents the rollout state.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerDeploymentRollout} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerDeploymentRollout) - com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.class, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGameServerConfigOverridesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - defaultGameServerConfig_ = ""; - - if (gameServerConfigOverridesBuilder_ == null) { - gameServerConfigOverrides_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - gameServerConfigOverridesBuilder_.clear(); - } - etag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout build() { - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout buildPartial() { - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout result = - new com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.defaultGameServerConfig_ = defaultGameServerConfig_; - if (gameServerConfigOverridesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - gameServerConfigOverrides_ = - java.util.Collections.unmodifiableList(gameServerConfigOverrides_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.gameServerConfigOverrides_ = gameServerConfigOverrides_; - } else { - result.gameServerConfigOverrides_ = gameServerConfigOverridesBuilder_.build(); - } - result.etag_ = etag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout other) { - if (other == com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getDefaultGameServerConfig().isEmpty()) { - defaultGameServerConfig_ = other.defaultGameServerConfig_; - onChanged(); - } - if (gameServerConfigOverridesBuilder_ == null) { - if (!other.gameServerConfigOverrides_.isEmpty()) { - if (gameServerConfigOverrides_.isEmpty()) { - gameServerConfigOverrides_ = other.gameServerConfigOverrides_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGameServerConfigOverridesIsMutable(); - gameServerConfigOverrides_.addAll(other.gameServerConfigOverrides_); - } - onChanged(); - } - } else { - if (!other.gameServerConfigOverrides_.isEmpty()) { - if (gameServerConfigOverridesBuilder_.isEmpty()) { - gameServerConfigOverridesBuilder_.dispose(); - gameServerConfigOverridesBuilder_ = null; - gameServerConfigOverrides_ = other.gameServerConfigOverrides_; - bitField0_ = (bitField0_ & ~0x00000001); - gameServerConfigOverridesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGameServerConfigOverridesFieldBuilder() - : null; - } else { - gameServerConfigOverridesBuilder_.addAllMessages(other.gameServerConfigOverrides_); - } - } - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The resource name of the game server deployment rollout, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource name of the game server deployment rollout, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource name of the game server deployment rollout, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the game server deployment rollout, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the game server deployment rollout, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
-     * For example,
-     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object defaultGameServerConfig_ = ""; - /** - * - * - *
-     * The default game server config points to the game server config  that is
-     * applied in all realms/clustesr. For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string default_game_server_config = 4; - * - * @return The defaultGameServerConfig. - */ - public java.lang.String getDefaultGameServerConfig() { - java.lang.Object ref = defaultGameServerConfig_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultGameServerConfig_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The default game server config points to the game server config  that is
-     * applied in all realms/clustesr. For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string default_game_server_config = 4; - * - * @return The bytes for defaultGameServerConfig. - */ - public com.google.protobuf.ByteString getDefaultGameServerConfigBytes() { - java.lang.Object ref = defaultGameServerConfig_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultGameServerConfig_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The default game server config points to the game server config  that is
-     * applied in all realms/clustesr. For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string default_game_server_config = 4; - * - * @param value The defaultGameServerConfig to set. - * @return This builder for chaining. - */ - public Builder setDefaultGameServerConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultGameServerConfig_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The default game server config points to the game server config  that is
-     * applied in all realms/clustesr. For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string default_game_server_config = 4; - * - * @return This builder for chaining. - */ - public Builder clearDefaultGameServerConfig() { - - defaultGameServerConfig_ = getDefaultInstance().getDefaultGameServerConfig(); - onChanged(); - return this; - } - /** - * - * - *
-     * The default game server config points to the game server config  that is
-     * applied in all realms/clustesr. For example,
-     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-     * 
- * - * string default_game_server_config = 4; - * - * @param value The bytes for defaultGameServerConfig to set. - * @return This builder for chaining. - */ - public Builder setDefaultGameServerConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultGameServerConfig_ = value; - onChanged(); - return this; - } - - private java.util.List - gameServerConfigOverrides_ = java.util.Collections.emptyList(); - - private void ensureGameServerConfigOverridesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - gameServerConfigOverrides_ = - new java.util.ArrayList( - gameServerConfigOverrides_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerConfigOverride, - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder, - com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder> - gameServerConfigOverridesBuilder_; - - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public java.util.List - getGameServerConfigOverridesList() { - if (gameServerConfigOverridesBuilder_ == null) { - return java.util.Collections.unmodifiableList(gameServerConfigOverrides_); - } else { - return gameServerConfigOverridesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public int getGameServerConfigOverridesCount() { - if (gameServerConfigOverridesBuilder_ == null) { - return gameServerConfigOverrides_.size(); - } else { - return gameServerConfigOverridesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride getGameServerConfigOverrides( - int index) { - if (gameServerConfigOverridesBuilder_ == null) { - return gameServerConfigOverrides_.get(index); - } else { - return gameServerConfigOverridesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public Builder setGameServerConfigOverrides( - int index, com.google.cloud.gaming.v1alpha.GameServerConfigOverride value) { - if (gameServerConfigOverridesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerConfigOverridesIsMutable(); - gameServerConfigOverrides_.set(index, value); - onChanged(); - } else { - gameServerConfigOverridesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public Builder setGameServerConfigOverrides( - int index, - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder builderForValue) { - if (gameServerConfigOverridesBuilder_ == null) { - ensureGameServerConfigOverridesIsMutable(); - gameServerConfigOverrides_.set(index, builderForValue.build()); - onChanged(); - } else { - gameServerConfigOverridesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public Builder addGameServerConfigOverrides( - com.google.cloud.gaming.v1alpha.GameServerConfigOverride value) { - if (gameServerConfigOverridesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerConfigOverridesIsMutable(); - gameServerConfigOverrides_.add(value); - onChanged(); - } else { - gameServerConfigOverridesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public Builder addGameServerConfigOverrides( - int index, com.google.cloud.gaming.v1alpha.GameServerConfigOverride value) { - if (gameServerConfigOverridesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerConfigOverridesIsMutable(); - gameServerConfigOverrides_.add(index, value); - onChanged(); - } else { - gameServerConfigOverridesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public Builder addGameServerConfigOverrides( - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder builderForValue) { - if (gameServerConfigOverridesBuilder_ == null) { - ensureGameServerConfigOverridesIsMutable(); - gameServerConfigOverrides_.add(builderForValue.build()); - onChanged(); - } else { - gameServerConfigOverridesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public Builder addGameServerConfigOverrides( - int index, - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder builderForValue) { - if (gameServerConfigOverridesBuilder_ == null) { - ensureGameServerConfigOverridesIsMutable(); - gameServerConfigOverrides_.add(index, builderForValue.build()); - onChanged(); - } else { - gameServerConfigOverridesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public Builder addAllGameServerConfigOverrides( - java.lang.Iterable - values) { - if (gameServerConfigOverridesBuilder_ == null) { - ensureGameServerConfigOverridesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gameServerConfigOverrides_); - onChanged(); - } else { - gameServerConfigOverridesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public Builder clearGameServerConfigOverrides() { - if (gameServerConfigOverridesBuilder_ == null) { - gameServerConfigOverrides_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - gameServerConfigOverridesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public Builder removeGameServerConfigOverrides(int index) { - if (gameServerConfigOverridesBuilder_ == null) { - ensureGameServerConfigOverridesIsMutable(); - gameServerConfigOverrides_.remove(index); - onChanged(); - } else { - gameServerConfigOverridesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder - getGameServerConfigOverridesBuilder(int index) { - return getGameServerConfigOverridesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder - getGameServerConfigOverridesOrBuilder(int index) { - if (gameServerConfigOverridesBuilder_ == null) { - return gameServerConfigOverrides_.get(index); - } else { - return gameServerConfigOverridesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public java.util.List< - ? extends com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder> - getGameServerConfigOverridesOrBuilderList() { - if (gameServerConfigOverridesBuilder_ != null) { - return gameServerConfigOverridesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(gameServerConfigOverrides_); - } - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder - addGameServerConfigOverridesBuilder() { - return getGameServerConfigOverridesFieldBuilder() - .addBuilder( - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.getDefaultInstance()); - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder - addGameServerConfigOverridesBuilder(int index) { - return getGameServerConfigOverridesFieldBuilder() - .addBuilder( - index, com.google.cloud.gaming.v1alpha.GameServerConfigOverride.getDefaultInstance()); - } - /** - * - * - *
-     * Contains the per game server config overrides. The overrides are processed
-     * in the order they are listed. As soon as a match is found for cluster,
-     * the rest of the list is not processed.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - public java.util.List - getGameServerConfigOverridesBuilderList() { - return getGameServerConfigOverridesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerConfigOverride, - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder, - com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder> - getGameServerConfigOverridesFieldBuilder() { - if (gameServerConfigOverridesBuilder_ == null) { - gameServerConfigOverridesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerConfigOverride, - com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder, - com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder>( - gameServerConfigOverrides_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - gameServerConfigOverrides_ = null; - } - return gameServerConfigOverridesBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 6; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GameServerDeploymentRollout) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerDeploymentRollout) - private static final com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout(); - } - - public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GameServerDeploymentRollout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameServerDeploymentRollout(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRolloutOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRolloutOrBuilder.java deleted file mode 100644 index 7c827e79..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRolloutOrBuilder.java +++ /dev/null @@ -1,260 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GameServerDeploymentRolloutOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerDeploymentRollout) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource name of the game server deployment rollout, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
-   * For example,
-   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The resource name of the game server deployment rollout, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
-   * For example,
-   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * The default game server config points to the game server config  that is
-   * applied in all realms/clustesr. For example,
-   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-   * 
- * - * string default_game_server_config = 4; - * - * @return The defaultGameServerConfig. - */ - java.lang.String getDefaultGameServerConfig(); - /** - * - * - *
-   * The default game server config points to the game server config  that is
-   * applied in all realms/clustesr. For example,
-   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
-   * 
- * - * string default_game_server_config = 4; - * - * @return The bytes for defaultGameServerConfig. - */ - com.google.protobuf.ByteString getDefaultGameServerConfigBytes(); - - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - java.util.List - getGameServerConfigOverridesList(); - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - com.google.cloud.gaming.v1alpha.GameServerConfigOverride getGameServerConfigOverrides(int index); - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - int getGameServerConfigOverridesCount(); - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - java.util.List - getGameServerConfigOverridesOrBuilderList(); - /** - * - * - *
-   * Contains the per game server config overrides. The overrides are processed
-   * in the order they are listed. As soon as a match is found for cluster,
-   * the rest of the list is not processed.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; - * - */ - com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder - getGameServerConfigOverridesOrBuilder(int index); - - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 6; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 6; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployments.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployments.java deleted file mode 100644 index 714c7e60..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployments.java +++ /dev/null @@ -1,426 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public final class GameServerDeployments { - private GameServerDeployments() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/gaming/v1alpha/game_serve" - + "r_deployments.proto\022\033google.cloud.gaming" - + ".v1alpha\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\032(google/clo" - + "ud/gaming/v1alpha/common.proto\032 google/p" - + "rotobuf/field_mask.proto\032\037google/protobu" - + "f/timestamp.proto\032\034google/api/annotation" - + "s.proto\"\311\001\n ListGameServerDeploymentsReq" - + "uest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0gameservic" - + "es.googleapis.com/GameServerDeployment\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by" - + "\030\005 \001(\tB\003\340A\001\"\310\001\n!ListGameServerDeployment" - + "sResponse\022R\n\027game_server_deployments\030\001 \003" - + "(\01321.google.cloud.gaming.v1alpha.GameSer" - + "verDeployment\022\027\n\017next_page_token\030\002 \001(\t\022!" - + "\n\025unreachable_locations\030\003 \003(\tB\002\030\001\022\023\n\013unr" - + "eachable\030\004 \003(\t\"h\n\036GetGameServerDeploymen" - + "tRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0gameserv" - + "ices.googleapis.com/GameServerDeployment" - + "\"o\n%GetGameServerDeploymentRolloutReques" - + "t\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0gameservices.go" - + "ogleapis.com/GameServerDeployment\"\341\001\n!Cr" - + "eateGameServerDeploymentRequest\022H\n\006paren" - + "t\030\001 \001(\tB8\340A\002\372A2\n0gameservices.googleapis" - + ".com/GameServerDeployment\022\032\n\rdeployment_" - + "id\030\002 \001(\tB\003\340A\002\022V\n\026game_server_deployment\030" - + "\003 \001(\01321.google.cloud.gaming.v1alpha.Game" - + "ServerDeploymentB\003\340A\002\"k\n!DeleteGameServe" - + "rDeploymentRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2" - + "\n0gameservices.googleapis.com/GameServer" - + "Deployment\"\261\001\n!UpdateGameServerDeploymen" - + "tRequest\022V\n\026game_server_deployment\030\001 \001(\013" - + "21.google.cloud.gaming.v1alpha.GameServe" - + "rDeploymentB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMaskB\003\340A\002\"\260\001\n(Updat" - + "eGameServerDeploymentRolloutRequest\022N\n\007r" - + "ollout\030\001 \001(\01328.google.cloud.gaming.v1alp" - + "ha.GameServerDeploymentRolloutB\003\340A\002\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"0\n\033FetchDeploymentStateRequest" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\356\006\n\034FetchDeploymentS" - + "tateResponse\022_\n\007details\030\001 \003(\0132N.google.c" - + "loud.gaming.v1alpha.FetchDeploymentState" - + "Response.DeployedFleetDetails\022\023\n\013unavail" - + "able\030\002 \003(\t\032\327\005\n\024DeployedFleetDetails\022c\n\005f" - + "leet\030\001 \001(\0132T.google.cloud.gaming.v1alpha" - + ".FetchDeploymentStateResponse.DeployedFl" - + "eetDetails.Fleet\022r\n\nautoscaler\030\002 \001(\0132^.g" - + "oogle.cloud.gaming.v1alpha.FetchDeployme" - + "ntStateResponse.DeployedFleetDetails.Fle" - + "etAutoscaler\032\333\002\n\005Fleet\022\014\n\004name\030\001 \001(\t\022\023\n\013" - + "agones_spec\030\002 \001(\t\022\017\n\007cluster\030\003 \001(\t\022<\n\013sp" - + "ec_source\030\004 \001(\0132\'.google.cloud.gaming.v1" - + "alpha.SpecSource\022p\n\006status\030\005 \001(\0132`.googl" - + "e.cloud.gaming.v1alpha.FetchDeploymentSt" - + "ateResponse.DeployedFleetDetails.Fleet.F" - + "leetStatus\032n\n\013FleetStatus\022\027\n\017available_c" - + "ount\030\001 \001(\003\022\027\n\017allocated_count\030\002 \001(\003\022\026\n\016r" - + "eserved_count\030\003 \001(\003\022\025\n\rreplica_count\030\004 \001" - + "(\003\032\207\001\n\017FleetAutoscaler\022\027\n\017autoscaler_nam" - + "e\030\001 \001(\t\022<\n\013spec_source\030\004 \001(\0132\'.google.cl" - + "oud.gaming.v1alpha.SpecSource\022\035\n\025fleet_a" - + "utoscaler_spec\030\003 \001(\t\"\265\003\n\024GameServerDeplo" - + "yment\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" - + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022M\n\006labels\030\004 \003(\0132=.google.cloud.g" - + "aming.v1alpha.GameServerDeployment.Label" - + "sEntry\022\014\n\004etag\030\007 \001(\t\022\023\n\013description\030\010 \001(" - + "\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001:\201\001\352A~\n0gameservices.googleapis." - + "com/GameServerDeployment\022Jprojects/{proj" - + "ect}/locations/{location}/gameServerDepl" - + "oyments/{deployment}\"\221\001\n\030GameServerConfi" - + "gOverride\022E\n\017realms_selector\030\001 \001(\0132*.goo" - + "gle.cloud.gaming.v1alpha.RealmSelectorH\000" - + "\022\030\n\016config_version\030d \001(\tH\001B\n\n\010selectorB\010" - + "\n\006change\"\272\003\n\033GameServerDeploymentRollout" - + "\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" - + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\"\n\032default_game_server_config\030\004 \001(\t\022[" - + "\n\034game_server_config_overrides\030\005 \003(\01325.g" - + "oogle.cloud.gaming.v1alpha.GameServerCon" - + "figOverride\022\014\n\004etag\030\006 \001(\t:\221\001\352A\215\001\n7gamese" - + "rvices.googleapis.com/GameServerDeployme" - + "ntRollout\022Rprojects/{project}/locations/" - + "{location}/gameServerDeployments/{deploy" - + "ment}/rollout\"\350\001\n)PreviewGameServerDeplo" - + "ymentRolloutRequest\022N\n\007rollout\030\001 \001(\01328.g" - + "oogle.cloud.gaming.v1alpha.GameServerDep" - + "loymentRolloutB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\001\0225\n\014pre" - + "view_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\001\"\327\001\n*PreviewGameServerDeployment" - + "RolloutResponse\022F\n\016deployed_state\030\001 \001(\0132" - + "*.google.cloud.gaming.v1alpha.DeployedSt" - + "ateB\002\030\001\022\023\n\013unavailable\030\002 \003(\t\022\014\n\004etag\030\003 \001" - + "(\t\022>\n\014target_state\030\004 \001(\0132(.google.cloud." - + "gaming.v1alpha.TargetStateBf\n\037com.google" - + ".cloud.gaming.v1alphaP\001ZAgoogle.golang.o" - + "rg/genproto/googleapis/cloud/gaming/v1al" - + "pha;gamingb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gaming.v1alpha.Common.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_descriptor, - new java.lang.String[] { - "GameServerDeployments", "NextPageToken", "UnreachableLocations", "Unreachable", - }); - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor, - new java.lang.String[] { - "Parent", "DeploymentId", "GameServerDeployment", - }); - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_descriptor, - new java.lang.String[] { - "GameServerDeployment", "UpdateMask", - }); - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor, - new java.lang.String[] { - "Rollout", "UpdateMask", - }); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor, - new java.lang.String[] { - "Details", "Unavailable", - }); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor = - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor, - new java.lang.String[] { - "Fleet", "Autoscaler", - }); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor = - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor, - new java.lang.String[] { - "Name", "AgonesSpec", "Cluster", "SpecSource", "Status", - }); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor = - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor, - new java.lang.String[] { - "AvailableCount", "AllocatedCount", "ReservedCount", "ReplicaCount", - }); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor = - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor, - new java.lang.String[] { - "AutoscalerName", "SpecSource", "FleetAutoscalerSpec", - }); - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor, - new java.lang.String[] { - "Name", "CreateTime", "UpdateTime", "Labels", "Etag", "Description", - }); - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_LabelsEntry_descriptor = - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor, - new java.lang.String[] { - "RealmsSelector", "ConfigVersion", "Selector", "Change", - }); - internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "DefaultGameServerConfig", - "GameServerConfigOverrides", - "Etag", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor, - new java.lang.String[] { - "Rollout", "UpdateMask", "PreviewTime", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor, - new java.lang.String[] { - "DeployedState", "Unavailable", "Etag", "TargetState", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.Common.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceOuterClass.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceOuterClass.java deleted file mode 100644 index 583192f6..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceOuterClass.java +++ /dev/null @@ -1,137 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments_service.proto - -package com.google.cloud.gaming.v1alpha; - -public final class GameServerDeploymentsServiceOuterClass { - private GameServerDeploymentsServiceOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/gaming/v1alpha/game_serve" - + "r_deployments_service.proto\022\033google.clou" - + "d.gaming.v1alpha\032\034google/api/annotations" - + ".proto\032\027google/api/client.proto\0329google/" - + "cloud/gaming/v1alpha/game_server_deploym" - + "ents.proto\032#google/longrunning/operation" - + "s.proto2\332\023\n\034GameServerDeploymentsService" - + "\022\353\001\n\031ListGameServerDeployments\022=.google." - + "cloud.gaming.v1alpha.ListGameServerDeplo" - + "ymentsRequest\032>.google.cloud.gaming.v1al" - + "pha.ListGameServerDeploymentsResponse\"O\202" - + "\323\344\223\002@\022>/v1alpha/{parent=projects/*/locat" - + "ions/*}/gameServerDeployments\332A\006parent\022\330" - + "\001\n\027GetGameServerDeployment\022;.google.clou" - + "d.gaming.v1alpha.GetGameServerDeployment" - + "Request\0321.google.cloud.gaming.v1alpha.Ga" - + "meServerDeployment\"M\202\323\344\223\002@\022>/v1alpha/{na" - + "me=projects/*/locations/*/gameServerDepl" - + "oyments/*}\332A\004name\022\250\002\n\032CreateGameServerDe" - + "ployment\022>.google.cloud.gaming.v1alpha.C" - + "reateGameServerDeploymentRequest\032\035.googl" - + "e.longrunning.Operation\"\252\001\202\323\344\223\002X\">/v1alp" - + "ha/{parent=projects/*/locations/*}/gameS" - + "erverDeployments:\026game_server_deployment" - + "\332A\035parent,game_server_deployment\312A)\n\024Gam" - + "eServerDeployment\022\021OperationMetadata\022\366\001\n" - + "\032DeleteGameServerDeployment\022>.google.clo" - + "ud.gaming.v1alpha.DeleteGameServerDeploy" - + "mentRequest\032\035.google.longrunning.Operati" - + "on\"y\202\323\344\223\002@*>/v1alpha/{name=projects/*/lo" - + "cations/*/gameServerDeployments/*}\332A\004nam" - + "e\312A)\n\024GameServerDeployment\022\021OperationMet" - + "adata\022\304\002\n\032UpdateGameServerDeployment\022>.g" - + "oogle.cloud.gaming.v1alpha.UpdateGameSer" - + "verDeploymentRequest\032\035.google.longrunnin" - + "g.Operation\"\306\001\202\323\344\223\002o2U/v1alpha/{game_ser" - + "ver_deployment.name=projects/*/locations" - + "/*/gameServerDeployments/*}:\026game_server" - + "_deployment\332A\"game_server_deployment,upd" - + "ate_mask\312A)\n\024GameServerDeployment\022\021Opera" - + "tionMetadata\022\365\001\n\036GetGameServerDeployment" - + "Rollout\022B.google.cloud.gaming.v1alpha.Ge" - + "tGameServerDeploymentRolloutRequest\0328.go" - + "ogle.cloud.gaming.v1alpha.GameServerDepl" - + "oymentRollout\"U\202\323\344\223\002H\022F/v1alpha/{name=pr" - + "ojects/*/locations/*/gameServerDeploymen" - + "ts/*}/rollout\332A\004name\022\255\002\n!UpdateGameServe" - + "rDeploymentRollout\022E.google.cloud.gaming" - + ".v1alpha.UpdateGameServerDeploymentRollo" - + "utRequest\032\035.google.longrunning.Operation" - + "\"\241\001\202\323\344\223\002Y2N/v1alpha/{rollout.name=projec" - + "ts/*/locations/*/gameServerDeployments/*" - + "}/rollout:\007rollout\332A\023rollout,update_mask" - + "\312A)\n\024GameServerDeployment\022\021OperationMeta" - + "data\022\236\002\n\"PreviewGameServerDeploymentRoll" - + "out\022F.google.cloud.gaming.v1alpha.Previe" - + "wGameServerDeploymentRolloutRequest\032G.go" - + "ogle.cloud.gaming.v1alpha.PreviewGameSer" - + "verDeploymentRolloutResponse\"g\202\323\344\223\002a2V/v" - + "1alpha/{rollout.name=projects/*/location" - + "s/*/gameServerDeployments/*}/rollout:pre" - + "view:\007rollout\022\353\001\n\024FetchDeploymentState\0228" - + ".google.cloud.gaming.v1alpha.FetchDeploy" - + "mentStateRequest\0329.google.cloud.gaming.v" - + "1alpha.FetchDeploymentStateResponse\"^\202\323\344" - + "\223\002X\"S/v1alpha/{name=projects/*/locations" - + "/*/gameServerDeployments/*}:fetchDeploym" - + "entState:\001*\032O\312A\033gameservices.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformBf\n\037com.google.cloud.gaming." - + "v1alphaP\001ZAgoogle.golang.org/genproto/go" - + "ogleapis/cloud/gaming/v1alpha;gamingb\006pr" - + "oto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.gaming.v1alpha.GameServerDeployments.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.GameServerDeployments.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequest.java deleted file mode 100644 index 405fd243..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequest.java +++ /dev/null @@ -1,656 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerClustersService.GetGameServerCluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerClusterRequest} - */ -public final class GetGameServerClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetGameServerClusterRequest) - GetGameServerClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetGameServerClusterRequest.newBuilder() to construct. - private GetGameServerClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetGameServerClusterRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetGameServerClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetGameServerClusterRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the game server cluster to retrieve, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the game server cluster to retrieve, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest other = - (com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerClustersService.GetGameServerCluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetGameServerClusterRequest) - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest build() { - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest buildPartial() { - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest result = - new com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest other) { - if (other == com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetGameServerClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetGameServerClusterRequest) - private static final com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest(); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGameServerClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetGameServerClusterRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequestOrBuilder.java deleted file mode 100644 index 34d68b5d..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequestOrBuilder.java +++ /dev/null @@ -1,56 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GetGameServerClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetGameServerClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the game server cluster to retrieve, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the game server cluster to retrieve, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequest.java deleted file mode 100644 index f1c42027..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequest.java +++ /dev/null @@ -1,663 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerConfigsService.GetGameServerConfig.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerConfigRequest} - */ -public final class GetGameServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) - GetGameServerConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetGameServerConfigRequest.newBuilder() to construct. - private GetGameServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetGameServerConfigRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetGameServerConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetGameServerConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.class, - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the game server config to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the game server config to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest other = - (com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerConfigsService.GetGameServerConfig.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.class, - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest build() { - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest buildPartial() { - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest result = - new com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest other) { - if (other == com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the game server config to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server config to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server config to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server config to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server config to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) - private static final com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest(); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGameServerConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetGameServerConfigRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequestOrBuilder.java deleted file mode 100644 index 168a1235..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequestOrBuilder.java +++ /dev/null @@ -1,58 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GetGameServerConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the game server config to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the game server config to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequest.java deleted file mode 100644 index 737100af..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequest.java +++ /dev/null @@ -1,670 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerDeploymentsService.GetGameServerDeployment.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest} - */ -public final class GetGameServerDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) - GetGameServerDeploymentRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetGameServerDeploymentRequest.newBuilder() to construct. - private GetGameServerDeploymentRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetGameServerDeploymentRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetGameServerDeploymentRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetGameServerDeploymentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest.class, - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the game server deployment to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the game server deployment to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest other = - (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerDeploymentsService.GetGameServerDeployment.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest.class, - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest build() { - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest buildPartial() { - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest result = - new com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) - private static final com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest(); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGameServerDeploymentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetGameServerDeploymentRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequestOrBuilder.java deleted file mode 100644 index 347c3814..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequestOrBuilder.java +++ /dev/null @@ -1,58 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GetGameServerDeploymentRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the game server deployment to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the game server deployment to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequest.java deleted file mode 100644 index 9a876b17..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequest.java +++ /dev/null @@ -1,678 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for
- * GameServerDeploymentsService.GetGameServerDeploymentRollout.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest} - */ -public final class GetGameServerDeploymentRolloutRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) - GetGameServerDeploymentRolloutRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetGameServerDeploymentRolloutRequest.newBuilder() to construct. - private GetGameServerDeploymentRolloutRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetGameServerDeploymentRolloutRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetGameServerDeploymentRolloutRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetGameServerDeploymentRolloutRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.class, - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the game server deployment to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the game server deployment to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest other = - (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for
-   * GameServerDeploymentsService.GetGameServerDeploymentRollout.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.class, - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest build() { - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest buildPartial() { - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest result = - new com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server deployment to retrieve, using the
-     * form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) - private static final com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest(); - } - - public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGameServerDeploymentRolloutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetGameServerDeploymentRolloutRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequestOrBuilder.java deleted file mode 100644 index 17e60a28..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequestOrBuilder.java +++ /dev/null @@ -1,58 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GetGameServerDeploymentRolloutRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the game server deployment to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the game server deployment to retrieve, using the
-   * form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequest.java deleted file mode 100644 index bef0bdbc..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequest.java +++ /dev/null @@ -1,654 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for RealmsService.GetRealm.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetRealmRequest} - */ -public final class GetRealmRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetRealmRequest) - GetRealmRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetRealmRequest.newBuilder() to construct. - private GetRealmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetRealmRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetRealmRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetRealmRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetRealmRequest.class, - com.google.cloud.gaming.v1alpha.GetRealmRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the realm to retrieve, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the realm to retrieve, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetRealmRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GetRealmRequest other = - (com.google.cloud.gaming.v1alpha.GetRealmRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.GetRealmRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for RealmsService.GetRealm.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GetRealmRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetRealmRequest) - com.google.cloud.gaming.v1alpha.GetRealmRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetRealmRequest.class, - com.google.cloud.gaming.v1alpha.GetRealmRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GetRealmRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetRealmRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GetRealmRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetRealmRequest build() { - com.google.cloud.gaming.v1alpha.GetRealmRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetRealmRequest buildPartial() { - com.google.cloud.gaming.v1alpha.GetRealmRequest result = - new com.google.cloud.gaming.v1alpha.GetRealmRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GetRealmRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GetRealmRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GetRealmRequest other) { - if (other == com.google.cloud.gaming.v1alpha.GetRealmRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GetRealmRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.GetRealmRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetRealmRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetRealmRequest) - private static final com.google.cloud.gaming.v1alpha.GetRealmRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetRealmRequest(); - } - - public static com.google.cloud.gaming.v1alpha.GetRealmRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRealmRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRealmRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetRealmRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequestOrBuilder.java deleted file mode 100644 index f5015dfe..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequestOrBuilder.java +++ /dev/null @@ -1,56 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GetRealmRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetRealmRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the realm to retrieve, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the realm to retrieve, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReference.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReference.java deleted file mode 100644 index 80b0f1b5..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReference.java +++ /dev/null @@ -1,683 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * GkeClusterReference represents a reference to a GKE cluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GkeClusterReference} - */ -public final class GkeClusterReference extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GkeClusterReference) - GkeClusterReferenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeClusterReference.newBuilder() to construct. - private GkeClusterReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeClusterReference() { - cluster_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeClusterReference(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GkeClusterReference( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - cluster_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GkeClusterReference.class, - com.google.cloud.gaming.v1alpha.GkeClusterReference.Builder.class); - } - - public static final int CLUSTER_FIELD_NUMBER = 1; - private volatile java.lang.Object cluster_; - /** - * - * - *
-   * 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.
-   * 
- * - * string cluster = 1; - * - * @return The cluster. - */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; - } - } - /** - * - * - *
-   * The 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.
-   * 
- * - * string cluster = 1; - * - * @return The bytes for cluster. - */ - public com.google.protobuf.ByteString getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getClusterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClusterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GkeClusterReference)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GkeClusterReference other = - (com.google.cloud.gaming.v1alpha.GkeClusterReference) obj; - - if (!getCluster().equals(other.getCluster())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.GkeClusterReference prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GkeClusterReference represents a reference to a GKE cluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GkeClusterReference} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GkeClusterReference) - com.google.cloud.gaming.v1alpha.GkeClusterReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GkeClusterReference.class, - com.google.cloud.gaming.v1alpha.GkeClusterReference.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GkeClusterReference.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - cluster_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GkeClusterReference getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GkeClusterReference build() { - com.google.cloud.gaming.v1alpha.GkeClusterReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GkeClusterReference buildPartial() { - com.google.cloud.gaming.v1alpha.GkeClusterReference result = - new com.google.cloud.gaming.v1alpha.GkeClusterReference(this); - result.cluster_ = cluster_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GkeClusterReference) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GkeClusterReference) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GkeClusterReference other) { - if (other == com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance()) - return this; - if (!other.getCluster().isEmpty()) { - cluster_ = other.cluster_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GkeClusterReference parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GkeClusterReference) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cluster_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string cluster = 1; - * - * @return The cluster. - */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The 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.
-     * 
- * - * string cluster = 1; - * - * @return The bytes for cluster. - */ - public com.google.protobuf.ByteString getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The 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.
-     * 
- * - * string cluster = 1; - * - * @param value The cluster to set. - * @return This builder for chaining. - */ - public Builder setCluster(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cluster_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string cluster = 1; - * - * @return This builder for chaining. - */ - public Builder clearCluster() { - - cluster_ = getDefaultInstance().getCluster(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string cluster = 1; - * - * @param value The bytes for cluster to set. - * @return This builder for chaining. - */ - public Builder setClusterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cluster_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GkeClusterReference) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GkeClusterReference) - private static final com.google.cloud.gaming.v1alpha.GkeClusterReference DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GkeClusterReference(); - } - - public static com.google.cloud.gaming.v1alpha.GkeClusterReference getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeClusterReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeClusterReference(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GkeClusterReference getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReferenceOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReferenceOrBuilder.java deleted file mode 100644 index 4073b629..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReferenceOrBuilder.java +++ /dev/null @@ -1,64 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GkeClusterReferenceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GkeClusterReference) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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.
-   * 
- * - * string cluster = 1; - * - * @return The cluster. - */ - java.lang.String getCluster(); - /** - * - * - *
-   * 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.
-   * 
- * - * string cluster = 1; - * - * @return The bytes for cluster. - */ - com.google.protobuf.ByteString getClusterBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReference.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReference.java deleted file mode 100644 index a537c9d3..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReference.java +++ /dev/null @@ -1,700 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * GkeHubClusterReference represents a reference to a Kubernetes cluster
- * registered through GKE Hub.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GkeHubClusterReference} - */ -public final class GkeHubClusterReference extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GkeHubClusterReference) - GkeHubClusterReferenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeHubClusterReference.newBuilder() to construct. - private GkeHubClusterReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeHubClusterReference() { - membership_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeHubClusterReference(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GkeHubClusterReference( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - membership_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.class, - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder.class); - } - - public static final int MEMBERSHIP_FIELD_NUMBER = 1; - private volatile java.lang.Object membership_; - /** - * - * - *
-   * The full or partial name of a GKE Hub membership, using one of the
-   * following forms:
-   *  *
-   * `https:
-   * //gkehub.googleapis.com/v1beta1/projects
-   * // /{project_id}/locations/global/memberships/{membership_id}`
-   *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
-   *  * `{membership_id}`
-   * If project is not specified, the project of the GameServerCluster resource
-   * is used to generate the full name of the GKE Hub membership.
-   * 
- * - * string membership = 1; - * - * @return The membership. - */ - public java.lang.String getMembership() { - java.lang.Object ref = membership_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - membership_ = s; - return s; - } - } - /** - * - * - *
-   * The full or partial name of a GKE Hub membership, using one of the
-   * following forms:
-   *  *
-   * `https:
-   * //gkehub.googleapis.com/v1beta1/projects
-   * // /{project_id}/locations/global/memberships/{membership_id}`
-   *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
-   *  * `{membership_id}`
-   * If project is not specified, the project of the GameServerCluster resource
-   * is used to generate the full name of the GKE Hub membership.
-   * 
- * - * string membership = 1; - * - * @return The bytes for membership. - */ - public com.google.protobuf.ByteString getMembershipBytes() { - java.lang.Object ref = membership_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - membership_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getMembershipBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membership_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMembershipBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membership_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GkeHubClusterReference)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GkeHubClusterReference other = - (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) obj; - - if (!getMembership().equals(other.getMembership())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; - hash = (53 * hash) + getMembership().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GkeHubClusterReference prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GkeHubClusterReference represents a reference to a Kubernetes cluster
-   * registered through GKE Hub.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GkeHubClusterReference} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GkeHubClusterReference) - com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.class, - com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GkeHubClusterReference.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - membership_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GkeHubClusterReference getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GkeHubClusterReference build() { - com.google.cloud.gaming.v1alpha.GkeHubClusterReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GkeHubClusterReference buildPartial() { - com.google.cloud.gaming.v1alpha.GkeHubClusterReference result = - new com.google.cloud.gaming.v1alpha.GkeHubClusterReference(this); - result.membership_ = membership_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GkeHubClusterReference) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GkeHubClusterReference) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GkeHubClusterReference other) { - if (other == com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance()) - return this; - if (!other.getMembership().isEmpty()) { - membership_ = other.membership_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GkeHubClusterReference parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object membership_ = ""; - /** - * - * - *
-     * The full or partial name of a GKE Hub membership, using one of the
-     * following forms:
-     *  *
-     * `https:
-     * //gkehub.googleapis.com/v1beta1/projects
-     * // /{project_id}/locations/global/memberships/{membership_id}`
-     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
-     *  * `{membership_id}`
-     * If project is not specified, the project of the GameServerCluster resource
-     * is used to generate the full name of the GKE Hub membership.
-     * 
- * - * string membership = 1; - * - * @return The membership. - */ - public java.lang.String getMembership() { - java.lang.Object ref = membership_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - membership_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The full or partial name of a GKE Hub membership, using one of the
-     * following forms:
-     *  *
-     * `https:
-     * //gkehub.googleapis.com/v1beta1/projects
-     * // /{project_id}/locations/global/memberships/{membership_id}`
-     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
-     *  * `{membership_id}`
-     * If project is not specified, the project of the GameServerCluster resource
-     * is used to generate the full name of the GKE Hub membership.
-     * 
- * - * string membership = 1; - * - * @return The bytes for membership. - */ - public com.google.protobuf.ByteString getMembershipBytes() { - java.lang.Object ref = membership_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - membership_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The full or partial name of a GKE Hub membership, using one of the
-     * following forms:
-     *  *
-     * `https:
-     * //gkehub.googleapis.com/v1beta1/projects
-     * // /{project_id}/locations/global/memberships/{membership_id}`
-     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
-     *  * `{membership_id}`
-     * If project is not specified, the project of the GameServerCluster resource
-     * is used to generate the full name of the GKE Hub membership.
-     * 
- * - * string membership = 1; - * - * @param value The membership to set. - * @return This builder for chaining. - */ - public Builder setMembership(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - membership_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The full or partial name of a GKE Hub membership, using one of the
-     * following forms:
-     *  *
-     * `https:
-     * //gkehub.googleapis.com/v1beta1/projects
-     * // /{project_id}/locations/global/memberships/{membership_id}`
-     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
-     *  * `{membership_id}`
-     * If project is not specified, the project of the GameServerCluster resource
-     * is used to generate the full name of the GKE Hub membership.
-     * 
- * - * string membership = 1; - * - * @return This builder for chaining. - */ - public Builder clearMembership() { - - membership_ = getDefaultInstance().getMembership(); - onChanged(); - return this; - } - /** - * - * - *
-     * The full or partial name of a GKE Hub membership, using one of the
-     * following forms:
-     *  *
-     * `https:
-     * //gkehub.googleapis.com/v1beta1/projects
-     * // /{project_id}/locations/global/memberships/{membership_id}`
-     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
-     *  * `{membership_id}`
-     * If project is not specified, the project of the GameServerCluster resource
-     * is used to generate the full name of the GKE Hub membership.
-     * 
- * - * string membership = 1; - * - * @param value The bytes for membership to set. - * @return This builder for chaining. - */ - public Builder setMembershipBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - membership_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GkeHubClusterReference) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GkeHubClusterReference) - private static final com.google.cloud.gaming.v1alpha.GkeHubClusterReference DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GkeHubClusterReference(); - } - - public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeHubClusterReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeHubClusterReference(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GkeHubClusterReference getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReferenceOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReferenceOrBuilder.java deleted file mode 100644 index ce240f83..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReferenceOrBuilder.java +++ /dev/null @@ -1,68 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GkeHubClusterReferenceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GkeHubClusterReference) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The full or partial name of a GKE Hub membership, using one of the
-   * following forms:
-   *  *
-   * `https:
-   * //gkehub.googleapis.com/v1beta1/projects
-   * // /{project_id}/locations/global/memberships/{membership_id}`
-   *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
-   *  * `{membership_id}`
-   * If project is not specified, the project of the GameServerCluster resource
-   * is used to generate the full name of the GKE Hub membership.
-   * 
- * - * string membership = 1; - * - * @return The membership. - */ - java.lang.String getMembership(); - /** - * - * - *
-   * The full or partial name of a GKE Hub membership, using one of the
-   * following forms:
-   *  *
-   * `https:
-   * //gkehub.googleapis.com/v1beta1/projects
-   * // /{project_id}/locations/global/memberships/{membership_id}`
-   *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
-   *  * `{membership_id}`
-   * If project is not specified, the project of the GameServerCluster resource
-   * is used to generate the full name of the GKE Hub membership.
-   * 
- * - * string membership = 1; - * - * @return The bytes for membership. - */ - com.google.protobuf.ByteString getMembershipBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelector.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelector.java deleted file mode 100644 index a0ca464f..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelector.java +++ /dev/null @@ -1,768 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * The label selector, used to group labels on the resources.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.LabelSelector} - */ -public final class LabelSelector extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.LabelSelector) - LabelSelectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use LabelSelector.newBuilder() to construct. - private LabelSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LabelSelector() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LabelSelector(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private LabelSelector( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_LabelSelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.LabelSelector.class, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder.class); - } - - public static final int LABELS_FIELD_NUMBER = 1; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * Resource labels for this selector.
-   * 
- * - * map<string, string> labels = 1; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Resource labels for this selector.
-   * 
- * - * map<string, string> labels = 1; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Resource labels for this selector.
-   * 
- * - * map<string, string> labels = 1; - */ - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Resource labels for this selector.
-   * 
- * - * map<string, string> labels = 1; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, labels__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.LabelSelector)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.LabelSelector other = - (com.google.cloud.gaming.v1alpha.LabelSelector) obj; - - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.LabelSelector prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The label selector, used to group labels on the resources.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.LabelSelector} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.LabelSelector) - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_LabelSelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.LabelSelector.class, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.LabelSelector.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.LabelSelector getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.LabelSelector build() { - com.google.cloud.gaming.v1alpha.LabelSelector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.LabelSelector buildPartial() { - com.google.cloud.gaming.v1alpha.LabelSelector result = - new com.google.cloud.gaming.v1alpha.LabelSelector(this); - int from_bitField0_ = bitField0_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.LabelSelector) { - return mergeFrom((com.google.cloud.gaming.v1alpha.LabelSelector) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.LabelSelector other) { - if (other == com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()) return this; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.LabelSelector parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.LabelSelector) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * Resource labels for this selector.
-     * 
- * - * map<string, string> labels = 1; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Resource labels for this selector.
-     * 
- * - * map<string, string> labels = 1; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Resource labels for this selector.
-     * 
- * - * map<string, string> labels = 1; - */ - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Resource labels for this selector.
-     * 
- * - * map<string, string> labels = 1; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Resource labels for this selector.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Resource labels for this selector.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Resource labels for this selector.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.LabelSelector) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.LabelSelector) - private static final com.google.cloud.gaming.v1alpha.LabelSelector DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.LabelSelector(); - } - - public static com.google.cloud.gaming.v1alpha.LabelSelector getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelSelector(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.LabelSelector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelectorOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelectorOrBuilder.java deleted file mode 100644 index 022d1226..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelectorOrBuilder.java +++ /dev/null @@ -1,79 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public interface LabelSelectorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.LabelSelector) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource labels for this selector.
-   * 
- * - * map<string, string> labels = 1; - */ - int getLabelsCount(); - /** - * - * - *
-   * Resource labels for this selector.
-   * 
- * - * map<string, string> labels = 1; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Resource labels for this selector.
-   * 
- * - * map<string, string> labels = 1; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Resource labels for this selector.
-   * 
- * - * map<string, string> labels = 1; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Resource labels for this selector.
-   * 
- * - * map<string, string> labels = 1; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequest.java deleted file mode 100644 index 9432e3d5..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequest.java +++ /dev/null @@ -1,1309 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerClustersService.ListGameServerClusters.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerClustersRequest} - */ -public final class ListGameServerClustersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListGameServerClustersRequest) - ListGameServerClustersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListGameServerClustersRequest.newBuilder() to construct. - private ListGameServerClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListGameServerClustersRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListGameServerClustersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListGameServerClustersRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest.class, - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * "projects/{project}/locations/{location}/realms/{realm-id}".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * "projects/{project}/locations/{location}/realms/{realm-id}".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * 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.v1alpha.ListGameServerClustersResponse.next_page_token] to
-   * determine if there are more GameServerClusters left to be queried.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest other = - (com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerClustersService.ListGameServerClusters.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerClustersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListGameServerClustersRequest) - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest.class, - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - orderBy_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest build() { - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest buildPartial() { - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest result = - new com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * "projects/{project}/locations/{location}/realms/{realm-id}".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * "projects/{project}/locations/{location}/realms/{realm-id}".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * "projects/{project}/locations/{location}/realms/{realm-id}".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * "projects/{project}/locations/{location}/realms/{realm-id}".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * "projects/{project}/locations/{location}/realms/{realm-id}".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * 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.v1alpha.ListGameServerClustersResponse.next_page_token] to
-     * determine if there are more GameServerClusters left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * 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.v1alpha.ListGameServerClustersResponse.next_page_token] to
-     * determine if there are more GameServerClusters left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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.v1alpha.ListGameServerClustersResponse.next_page_token] to
-     * determine if there are more GameServerClusters left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListGameServerClustersRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListGameServerClustersRequest) - private static final com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest(); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGameServerClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGameServerClustersRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequestOrBuilder.java deleted file mode 100644 index 8d522125..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequestOrBuilder.java +++ /dev/null @@ -1,152 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListGameServerClustersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListGameServerClustersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * "projects/{project}/locations/{location}/realms/{realm-id}".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * "projects/{project}/locations/{location}/realms/{realm-id}".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * 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.v1alpha.ListGameServerClustersResponse.next_page_token] to
-   * determine if there are more GameServerClusters left to be queried.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponse.java deleted file mode 100644 index ed7f2f9a..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponse.java +++ /dev/null @@ -1,1739 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for GameServerClustersService.ListGameServerClusters.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerClustersResponse} - */ -public final class ListGameServerClustersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListGameServerClustersResponse) - ListGameServerClustersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListGameServerClustersResponse.newBuilder() to construct. - private ListGameServerClustersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListGameServerClustersResponse() { - gameServerClusters_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListGameServerClustersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListGameServerClustersResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - gameServerClusters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - gameServerClusters_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerCluster.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachableLocations_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - gameServerClusters_ = java.util.Collections.unmodifiableList(gameServerClusters_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse.class, - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse.Builder.class); - } - - public static final int GAME_SERVER_CLUSTERS_FIELD_NUMBER = 1; - private java.util.List gameServerClusters_; - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - public java.util.List - getGameServerClustersList() { - return gameServerClusters_; - } - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - public java.util.List - getGameServerClustersOrBuilderList() { - return gameServerClusters_; - } - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - public int getGameServerClustersCount() { - return gameServerClusters_.size(); - } - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerClusters(int index) { - return gameServerClusters_.get(index); - } - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClustersOrBuilder( - int index) { - return gameServerClusters_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList unreachableLocations_; - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return A list containing the unreachableLocations. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { - return unreachableLocations_; - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return The count of unreachableLocations. - */ - @java.lang.Deprecated - public int getUnreachableLocationsCount() { - return unreachableLocations_.size(); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The unreachableLocations at the given index. - */ - @java.lang.Deprecated - public java.lang.String getUnreachableLocations(int index) { - return unreachableLocations_.get(index); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachableLocations at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { - return unreachableLocations_.getByteString(index); - } - - public static final int UNREACHABLE_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList unreachable_; - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 4; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_; - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 4; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < gameServerClusters_.size(); i++) { - output.writeMessage(1, gameServerClusters_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - for (int i = 0; i < unreachableLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, unreachableLocations_.getRaw(i)); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, unreachable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < gameServerClusters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, gameServerClusters_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachableLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachableLocations_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableLocationsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse other = - (com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse) obj; - - if (!getGameServerClustersList().equals(other.getGameServerClustersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getGameServerClustersCount() > 0) { - hash = (37 * hash) + GAME_SERVER_CLUSTERS_FIELD_NUMBER; - hash = (53 * hash) + getGameServerClustersList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getUnreachableLocationsCount() > 0) { - hash = (37 * hash) + UNREACHABLE_LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableLocationsList().hashCode(); - } - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for GameServerClustersService.ListGameServerClusters.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerClustersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListGameServerClustersResponse) - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse.class, - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGameServerClustersFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (gameServerClustersBuilder_ == null) { - gameServerClusters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - gameServerClustersBuilder_.clear(); - } - nextPageToken_ = ""; - - unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse build() { - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse buildPartial() { - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse result = - new com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse(this); - int from_bitField0_ = bitField0_; - if (gameServerClustersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - gameServerClusters_ = java.util.Collections.unmodifiableList(gameServerClusters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.gameServerClusters_ = gameServerClusters_; - } else { - result.gameServerClusters_ = gameServerClustersBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (((bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unreachableLocations_ = unreachableLocations_; - if (((bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.unreachable_ = unreachable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse other) { - if (other - == com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse.getDefaultInstance()) - return this; - if (gameServerClustersBuilder_ == null) { - if (!other.gameServerClusters_.isEmpty()) { - if (gameServerClusters_.isEmpty()) { - gameServerClusters_ = other.gameServerClusters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGameServerClustersIsMutable(); - gameServerClusters_.addAll(other.gameServerClusters_); - } - onChanged(); - } - } else { - if (!other.gameServerClusters_.isEmpty()) { - if (gameServerClustersBuilder_.isEmpty()) { - gameServerClustersBuilder_.dispose(); - gameServerClustersBuilder_ = null; - gameServerClusters_ = other.gameServerClusters_; - bitField0_ = (bitField0_ & ~0x00000001); - gameServerClustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGameServerClustersFieldBuilder() - : null; - } else { - gameServerClustersBuilder_.addAllMessages(other.gameServerClusters_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (!other.unreachableLocations_.isEmpty()) { - if (unreachableLocations_.isEmpty()) { - unreachableLocations_ = other.unreachableLocations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.addAll(other.unreachableLocations_); - } - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List gameServerClusters_ = - java.util.Collections.emptyList(); - - private void ensureGameServerClustersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - gameServerClusters_ = - new java.util.ArrayList( - gameServerClusters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - gameServerClustersBuilder_; - - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public java.util.List - getGameServerClustersList() { - if (gameServerClustersBuilder_ == null) { - return java.util.Collections.unmodifiableList(gameServerClusters_); - } else { - return gameServerClustersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public int getGameServerClustersCount() { - if (gameServerClustersBuilder_ == null) { - return gameServerClusters_.size(); - } else { - return gameServerClustersBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerClusters(int index) { - if (gameServerClustersBuilder_ == null) { - return gameServerClusters_.get(index); - } else { - return gameServerClustersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public Builder setGameServerClusters( - int index, com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerClustersIsMutable(); - gameServerClusters_.set(index, value); - onChanged(); - } else { - gameServerClustersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public Builder setGameServerClusters( - int index, com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { - if (gameServerClustersBuilder_ == null) { - ensureGameServerClustersIsMutable(); - gameServerClusters_.set(index, builderForValue.build()); - onChanged(); - } else { - gameServerClustersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public Builder addGameServerClusters(com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerClustersIsMutable(); - gameServerClusters_.add(value); - onChanged(); - } else { - gameServerClustersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public Builder addGameServerClusters( - int index, com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerClustersIsMutable(); - gameServerClusters_.add(index, value); - onChanged(); - } else { - gameServerClustersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public Builder addGameServerClusters( - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { - if (gameServerClustersBuilder_ == null) { - ensureGameServerClustersIsMutable(); - gameServerClusters_.add(builderForValue.build()); - onChanged(); - } else { - gameServerClustersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public Builder addGameServerClusters( - int index, com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { - if (gameServerClustersBuilder_ == null) { - ensureGameServerClustersIsMutable(); - gameServerClusters_.add(index, builderForValue.build()); - onChanged(); - } else { - gameServerClustersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public Builder addAllGameServerClusters( - java.lang.Iterable values) { - if (gameServerClustersBuilder_ == null) { - ensureGameServerClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gameServerClusters_); - onChanged(); - } else { - gameServerClustersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public Builder clearGameServerClusters() { - if (gameServerClustersBuilder_ == null) { - gameServerClusters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - gameServerClustersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public Builder removeGameServerClusters(int index) { - if (gameServerClustersBuilder_ == null) { - ensureGameServerClustersIsMutable(); - gameServerClusters_.remove(index); - onChanged(); - } else { - gameServerClustersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerClustersBuilder( - int index) { - return getGameServerClustersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder - getGameServerClustersOrBuilder(int index) { - if (gameServerClustersBuilder_ == null) { - return gameServerClusters_.get(index); - } else { - return gameServerClustersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public java.util.List - getGameServerClustersOrBuilderList() { - if (gameServerClustersBuilder_ != null) { - return gameServerClustersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(gameServerClusters_); - } - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder - addGameServerClustersBuilder() { - return getGameServerClustersFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance()); - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder addGameServerClustersBuilder( - int index) { - return getGameServerClustersFieldBuilder() - .addBuilder( - index, com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance()); - } - /** - * - * - *
-     * The list of game server clusters.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - * - */ - public java.util.List - getGameServerClustersBuilderList() { - return getGameServerClustersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - getGameServerClustersFieldBuilder() { - if (gameServerClustersBuilder_ == null) { - gameServerClustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder>( - gameServerClusters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - gameServerClusters_ = null; - } - return gameServerClustersBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachableLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return A list containing the unreachableLocations. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { - return unreachableLocations_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return The count of unreachableLocations. - */ - @java.lang.Deprecated - public int getUnreachableLocationsCount() { - return unreachableLocations_.size(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The unreachableLocations at the given index. - */ - @java.lang.Deprecated - public java.lang.String getUnreachableLocations(int index) { - return unreachableLocations_.get(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachableLocations at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { - return unreachableLocations_.getByteString(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index to set the value at. - * @param value The unreachableLocations to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setUnreachableLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param value The unreachableLocations to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addUnreachableLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param values The unreachableLocations to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addAllUnreachableLocations(java.lang.Iterable values) { - ensureUnreachableLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearUnreachableLocations() { - unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param value The bytes of the unreachableLocations to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 4; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 4; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 4; - * - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 4; - * - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 4; - * - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable(java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 4; - * - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 4; - * - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListGameServerClustersResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListGameServerClustersResponse) - private static final com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse(); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGameServerClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGameServerClustersResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponseOrBuilder.java deleted file mode 100644 index 0ca80ab9..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponseOrBuilder.java +++ /dev/null @@ -1,211 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListGameServerClustersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListGameServerClustersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - java.util.List getGameServerClustersList(); - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerClusters(int index); - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - int getGameServerClustersCount(); - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - java.util.List - getGameServerClustersOrBuilderList(); - /** - * - * - *
-   * The list of game server clusters.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerCluster game_server_clusters = 1; - */ - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClustersOrBuilder( - int index); - - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); - - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return A list containing the unreachableLocations. - */ - @java.lang.Deprecated - java.util.List getUnreachableLocationsList(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return The count of unreachableLocations. - */ - @java.lang.Deprecated - int getUnreachableLocationsCount(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The unreachableLocations at the given index. - */ - @java.lang.Deprecated - java.lang.String getUnreachableLocations(int index); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachableLocations at the given index. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); - - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 4; - * - * @return A list containing the unreachable. - */ - java.util.List getUnreachableList(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 4; - * - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString getUnreachableBytes(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequest.java deleted file mode 100644 index cf3905d4..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequest.java +++ /dev/null @@ -1,1308 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerConfigsService.ListGameServerConfigs.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerConfigsRequest} - */ -public final class ListGameServerConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) - ListGameServerConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListGameServerConfigsRequest.newBuilder() to construct. - private ListGameServerConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListGameServerConfigsRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListGameServerConfigsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListGameServerConfigsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.class, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * 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.v1alpha.ListGameServerConfigsResponse.next_page_token] to
-   * determine if there are more GameServerConfigs left to be queried.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest other = - (com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerConfigsService.ListGameServerConfigs.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerConfigsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.class, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - orderBy_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest build() { - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest buildPartial() { - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest result = - new com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * 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.v1alpha.ListGameServerConfigsResponse.next_page_token] to
-     * determine if there are more GameServerConfigs left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * 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.v1alpha.ListGameServerConfigsResponse.next_page_token] to
-     * determine if there are more GameServerConfigs left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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.v1alpha.ListGameServerConfigsResponse.next_page_token] to
-     * determine if there are more GameServerConfigs left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) - private static final com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest(); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGameServerConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGameServerConfigsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequestOrBuilder.java deleted file mode 100644 index cac4d1aa..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequestOrBuilder.java +++ /dev/null @@ -1,152 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListGameServerConfigsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * 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.v1alpha.ListGameServerConfigsResponse.next_page_token] to
-   * determine if there are more GameServerConfigs left to be queried.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponse.java deleted file mode 100644 index a2730b5a..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponse.java +++ /dev/null @@ -1,1718 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for
- * GameServerConfigsService.ListGameServerConfigs.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerConfigsResponse} - */ -public final class ListGameServerConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) - ListGameServerConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListGameServerConfigsResponse.newBuilder() to construct. - private ListGameServerConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListGameServerConfigsResponse() { - gameServerConfigs_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListGameServerConfigsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListGameServerConfigsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - gameServerConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - gameServerConfigs_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerConfig.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachableLocations_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - gameServerConfigs_ = java.util.Collections.unmodifiableList(gameServerConfigs_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.class, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.Builder.class); - } - - public static final int GAME_SERVER_CONFIGS_FIELD_NUMBER = 1; - private java.util.List gameServerConfigs_; - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public java.util.List - getGameServerConfigsList() { - return gameServerConfigs_; - } - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public java.util.List - getGameServerConfigsOrBuilderList() { - return gameServerConfigs_; - } - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public int getGameServerConfigsCount() { - return gameServerConfigs_.size(); - } - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfigs(int index) { - return gameServerConfigs_.get(index); - } - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigsOrBuilder( - int index) { - return gameServerConfigs_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList unreachableLocations_; - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return A list containing the unreachableLocations. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { - return unreachableLocations_; - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return The count of unreachableLocations. - */ - @java.lang.Deprecated - public int getUnreachableLocationsCount() { - return unreachableLocations_.size(); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The unreachableLocations at the given index. - */ - @java.lang.Deprecated - public java.lang.String getUnreachableLocations(int index) { - return unreachableLocations_.get(index); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachableLocations at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { - return unreachableLocations_.getByteString(index); - } - - public static final int UNREACHABLE_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList unreachable_; - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_; - } - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < gameServerConfigs_.size(); i++) { - output.writeMessage(1, gameServerConfigs_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - for (int i = 0; i < unreachableLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, unreachableLocations_.getRaw(i)); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, unreachable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < gameServerConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, gameServerConfigs_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachableLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachableLocations_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableLocationsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse other = - (com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) obj; - - if (!getGameServerConfigsList().equals(other.getGameServerConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getGameServerConfigsCount() > 0) { - hash = (37 * hash) + GAME_SERVER_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getGameServerConfigsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getUnreachableLocationsCount() > 0) { - hash = (37 * hash) + UNREACHABLE_LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableLocationsList().hashCode(); - } - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for
-   * GameServerConfigsService.ListGameServerConfigs.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerConfigsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.class, - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGameServerConfigsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (gameServerConfigsBuilder_ == null) { - gameServerConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - gameServerConfigsBuilder_.clear(); - } - nextPageToken_ = ""; - - unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse build() { - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse buildPartial() { - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse result = - new com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse(this); - int from_bitField0_ = bitField0_; - if (gameServerConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - gameServerConfigs_ = java.util.Collections.unmodifiableList(gameServerConfigs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.gameServerConfigs_ = gameServerConfigs_; - } else { - result.gameServerConfigs_ = gameServerConfigsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (((bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unreachableLocations_ = unreachableLocations_; - if (((bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.unreachable_ = unreachable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse other) { - if (other - == com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.getDefaultInstance()) - return this; - if (gameServerConfigsBuilder_ == null) { - if (!other.gameServerConfigs_.isEmpty()) { - if (gameServerConfigs_.isEmpty()) { - gameServerConfigs_ = other.gameServerConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGameServerConfigsIsMutable(); - gameServerConfigs_.addAll(other.gameServerConfigs_); - } - onChanged(); - } - } else { - if (!other.gameServerConfigs_.isEmpty()) { - if (gameServerConfigsBuilder_.isEmpty()) { - gameServerConfigsBuilder_.dispose(); - gameServerConfigsBuilder_ = null; - gameServerConfigs_ = other.gameServerConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); - gameServerConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGameServerConfigsFieldBuilder() - : null; - } else { - gameServerConfigsBuilder_.addAllMessages(other.gameServerConfigs_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (!other.unreachableLocations_.isEmpty()) { - if (unreachableLocations_.isEmpty()) { - unreachableLocations_ = other.unreachableLocations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.addAll(other.unreachableLocations_); - } - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List gameServerConfigs_ = - java.util.Collections.emptyList(); - - private void ensureGameServerConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - gameServerConfigs_ = - new java.util.ArrayList( - gameServerConfigs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerConfig, - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, - com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder> - gameServerConfigsBuilder_; - - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public java.util.List - getGameServerConfigsList() { - if (gameServerConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(gameServerConfigs_); - } else { - return gameServerConfigsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public int getGameServerConfigsCount() { - if (gameServerConfigsBuilder_ == null) { - return gameServerConfigs_.size(); - } else { - return gameServerConfigsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfigs(int index) { - if (gameServerConfigsBuilder_ == null) { - return gameServerConfigs_.get(index); - } else { - return gameServerConfigsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public Builder setGameServerConfigs( - int index, com.google.cloud.gaming.v1alpha.GameServerConfig value) { - if (gameServerConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerConfigsIsMutable(); - gameServerConfigs_.set(index, value); - onChanged(); - } else { - gameServerConfigsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public Builder setGameServerConfigs( - int index, com.google.cloud.gaming.v1alpha.GameServerConfig.Builder builderForValue) { - if (gameServerConfigsBuilder_ == null) { - ensureGameServerConfigsIsMutable(); - gameServerConfigs_.set(index, builderForValue.build()); - onChanged(); - } else { - gameServerConfigsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public Builder addGameServerConfigs(com.google.cloud.gaming.v1alpha.GameServerConfig value) { - if (gameServerConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerConfigsIsMutable(); - gameServerConfigs_.add(value); - onChanged(); - } else { - gameServerConfigsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public Builder addGameServerConfigs( - int index, com.google.cloud.gaming.v1alpha.GameServerConfig value) { - if (gameServerConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerConfigsIsMutable(); - gameServerConfigs_.add(index, value); - onChanged(); - } else { - gameServerConfigsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public Builder addGameServerConfigs( - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder builderForValue) { - if (gameServerConfigsBuilder_ == null) { - ensureGameServerConfigsIsMutable(); - gameServerConfigs_.add(builderForValue.build()); - onChanged(); - } else { - gameServerConfigsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public Builder addGameServerConfigs( - int index, com.google.cloud.gaming.v1alpha.GameServerConfig.Builder builderForValue) { - if (gameServerConfigsBuilder_ == null) { - ensureGameServerConfigsIsMutable(); - gameServerConfigs_.add(index, builderForValue.build()); - onChanged(); - } else { - gameServerConfigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public Builder addAllGameServerConfigs( - java.lang.Iterable values) { - if (gameServerConfigsBuilder_ == null) { - ensureGameServerConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gameServerConfigs_); - onChanged(); - } else { - gameServerConfigsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public Builder clearGameServerConfigs() { - if (gameServerConfigsBuilder_ == null) { - gameServerConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - gameServerConfigsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public Builder removeGameServerConfigs(int index) { - if (gameServerConfigsBuilder_ == null) { - ensureGameServerConfigsIsMutable(); - gameServerConfigs_.remove(index); - onChanged(); - } else { - gameServerConfigsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public com.google.cloud.gaming.v1alpha.GameServerConfig.Builder getGameServerConfigsBuilder( - int index) { - return getGameServerConfigsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigsOrBuilder( - int index) { - if (gameServerConfigsBuilder_ == null) { - return gameServerConfigs_.get(index); - } else { - return gameServerConfigsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public java.util.List - getGameServerConfigsOrBuilderList() { - if (gameServerConfigsBuilder_ != null) { - return gameServerConfigsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(gameServerConfigs_); - } - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public com.google.cloud.gaming.v1alpha.GameServerConfig.Builder addGameServerConfigsBuilder() { - return getGameServerConfigsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance()); - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public com.google.cloud.gaming.v1alpha.GameServerConfig.Builder addGameServerConfigsBuilder( - int index) { - return getGameServerConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance()); - } - /** - * - * - *
-     * The list of game server configs.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - public java.util.List - getGameServerConfigsBuilderList() { - return getGameServerConfigsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerConfig, - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, - com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder> - getGameServerConfigsFieldBuilder() { - if (gameServerConfigsBuilder_ == null) { - gameServerConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerConfig, - com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, - com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder>( - gameServerConfigs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - gameServerConfigs_ = null; - } - return gameServerConfigsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachableLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return A list containing the unreachableLocations. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { - return unreachableLocations_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return The count of unreachableLocations. - */ - @java.lang.Deprecated - public int getUnreachableLocationsCount() { - return unreachableLocations_.size(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The unreachableLocations at the given index. - */ - @java.lang.Deprecated - public java.lang.String getUnreachableLocations(int index) { - return unreachableLocations_.get(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachableLocations at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { - return unreachableLocations_.getByteString(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index to set the value at. - * @param value The unreachableLocations to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setUnreachableLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param value The unreachableLocations to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addUnreachableLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param values The unreachableLocations to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addAllUnreachableLocations(java.lang.Iterable values) { - ensureUnreachableLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearUnreachableLocations() { - unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param value The bytes of the unreachableLocations to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable(java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) - private static final com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse(); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGameServerConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGameServerConfigsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponseOrBuilder.java deleted file mode 100644 index 34cdee9c..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponseOrBuilder.java +++ /dev/null @@ -1,211 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListGameServerConfigsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - java.util.List getGameServerConfigsList(); - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfigs(int index); - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - int getGameServerConfigsCount(); - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - java.util.List - getGameServerConfigsOrBuilderList(); - /** - * - * - *
-   * The list of game server configs.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; - */ - com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigsOrBuilder( - int index); - - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); - - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return A list containing the unreachableLocations. - */ - @java.lang.Deprecated - java.util.List getUnreachableLocationsList(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return The count of unreachableLocations. - */ - @java.lang.Deprecated - int getUnreachableLocationsCount(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The unreachableLocations at the given index. - */ - @java.lang.Deprecated - java.lang.String getUnreachableLocations(int index); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachableLocations at the given index. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); - - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @return A list containing the unreachable. - */ - java.util.List getUnreachableList(); - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString getUnreachableBytes(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequest.java deleted file mode 100644 index c17c684c..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequest.java +++ /dev/null @@ -1,1313 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerDeploymentsService.ListGameServerDeployments.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest} - */ -public final class ListGameServerDeploymentsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) - ListGameServerDeploymentsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListGameServerDeploymentsRequest.newBuilder() to construct. - private ListGameServerDeploymentsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListGameServerDeploymentsRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListGameServerDeploymentsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListGameServerDeploymentsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest.class, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * 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.v1alpha.ListGameServerDeploymentsResponse.next_page_token] to
-   * determine if there are more GameServerDeployments left to be queried.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest other = - (com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerDeploymentsService.ListGameServerDeployments.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest.class, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - orderBy_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest build() { - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest buildPartial() { - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest result = - new com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * 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.v1alpha.ListGameServerDeploymentsResponse.next_page_token] to
-     * determine if there are more GameServerDeployments left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * 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.v1alpha.ListGameServerDeploymentsResponse.next_page_token] to
-     * determine if there are more GameServerDeployments left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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.v1alpha.ListGameServerDeploymentsResponse.next_page_token] to
-     * determine if there are more GameServerDeployments left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) - private static final com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest(); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGameServerDeploymentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGameServerDeploymentsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequestOrBuilder.java deleted file mode 100644 index c022df51..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequestOrBuilder.java +++ /dev/null @@ -1,152 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListGameServerDeploymentsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * 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.v1alpha.ListGameServerDeploymentsResponse.next_page_token] to
-   * determine if there are more GameServerDeployments left to be queried.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponse.java deleted file mode 100644 index 7024f27a..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponse.java +++ /dev/null @@ -1,1751 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for GameServerDeploymentsService.ListGameServerDeployments.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse} - */ -public final class ListGameServerDeploymentsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse) - ListGameServerDeploymentsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListGameServerDeploymentsResponse.newBuilder() to construct. - private ListGameServerDeploymentsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListGameServerDeploymentsResponse() { - gameServerDeployments_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListGameServerDeploymentsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListGameServerDeploymentsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - gameServerDeployments_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - gameServerDeployments_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerDeployment.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachableLocations_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - gameServerDeployments_ = java.util.Collections.unmodifiableList(gameServerDeployments_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse.class, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse.Builder.class); - } - - public static final int GAME_SERVER_DEPLOYMENTS_FIELD_NUMBER = 1; - private java.util.List - gameServerDeployments_; - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public java.util.List - getGameServerDeploymentsList() { - return gameServerDeployments_; - } - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public java.util.List - getGameServerDeploymentsOrBuilderList() { - return gameServerDeployments_; - } - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public int getGameServerDeploymentsCount() { - return gameServerDeployments_.size(); - } - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployments(int index) { - return gameServerDeployments_.get(index); - } - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder - getGameServerDeploymentsOrBuilder(int index) { - return gameServerDeployments_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList unreachableLocations_; - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return A list containing the unreachableLocations. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { - return unreachableLocations_; - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return The count of unreachableLocations. - */ - @java.lang.Deprecated - public int getUnreachableLocationsCount() { - return unreachableLocations_.size(); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The unreachableLocations at the given index. - */ - @java.lang.Deprecated - public java.lang.String getUnreachableLocations(int index) { - return unreachableLocations_.get(index); - } - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachableLocations at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { - return unreachableLocations_.getByteString(index); - } - - public static final int UNREACHABLE_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList unreachable_; - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_; - } - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < gameServerDeployments_.size(); i++) { - output.writeMessage(1, gameServerDeployments_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - for (int i = 0; i < unreachableLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, unreachableLocations_.getRaw(i)); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, unreachable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < gameServerDeployments_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, gameServerDeployments_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachableLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachableLocations_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableLocationsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse other = - (com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse) obj; - - if (!getGameServerDeploymentsList().equals(other.getGameServerDeploymentsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getGameServerDeploymentsCount() > 0) { - hash = (37 * hash) + GAME_SERVER_DEPLOYMENTS_FIELD_NUMBER; - hash = (53 * hash) + getGameServerDeploymentsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getUnreachableLocationsCount() > 0) { - hash = (37 * hash) + UNREACHABLE_LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableLocationsList().hashCode(); - } - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for GameServerDeploymentsService.ListGameServerDeployments.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse) - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse.class, - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGameServerDeploymentsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (gameServerDeploymentsBuilder_ == null) { - gameServerDeployments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - gameServerDeploymentsBuilder_.clear(); - } - nextPageToken_ = ""; - - unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse build() { - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse buildPartial() { - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse result = - new com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse(this); - int from_bitField0_ = bitField0_; - if (gameServerDeploymentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - gameServerDeployments_ = java.util.Collections.unmodifiableList(gameServerDeployments_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.gameServerDeployments_ = gameServerDeployments_; - } else { - result.gameServerDeployments_ = gameServerDeploymentsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (((bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unreachableLocations_ = unreachableLocations_; - if (((bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.unreachable_ = unreachable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse other) { - if (other - == com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse.getDefaultInstance()) - return this; - if (gameServerDeploymentsBuilder_ == null) { - if (!other.gameServerDeployments_.isEmpty()) { - if (gameServerDeployments_.isEmpty()) { - gameServerDeployments_ = other.gameServerDeployments_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGameServerDeploymentsIsMutable(); - gameServerDeployments_.addAll(other.gameServerDeployments_); - } - onChanged(); - } - } else { - if (!other.gameServerDeployments_.isEmpty()) { - if (gameServerDeploymentsBuilder_.isEmpty()) { - gameServerDeploymentsBuilder_.dispose(); - gameServerDeploymentsBuilder_ = null; - gameServerDeployments_ = other.gameServerDeployments_; - bitField0_ = (bitField0_ & ~0x00000001); - gameServerDeploymentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGameServerDeploymentsFieldBuilder() - : null; - } else { - gameServerDeploymentsBuilder_.addAllMessages(other.gameServerDeployments_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (!other.unreachableLocations_.isEmpty()) { - if (unreachableLocations_.isEmpty()) { - unreachableLocations_ = other.unreachableLocations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.addAll(other.unreachableLocations_); - } - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List - gameServerDeployments_ = java.util.Collections.emptyList(); - - private void ensureGameServerDeploymentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - gameServerDeployments_ = - new java.util.ArrayList( - gameServerDeployments_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeployment, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder> - gameServerDeploymentsBuilder_; - - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public java.util.List - getGameServerDeploymentsList() { - if (gameServerDeploymentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(gameServerDeployments_); - } else { - return gameServerDeploymentsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public int getGameServerDeploymentsCount() { - if (gameServerDeploymentsBuilder_ == null) { - return gameServerDeployments_.size(); - } else { - return gameServerDeploymentsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployments( - int index) { - if (gameServerDeploymentsBuilder_ == null) { - return gameServerDeployments_.get(index); - } else { - return gameServerDeploymentsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public Builder setGameServerDeployments( - int index, com.google.cloud.gaming.v1alpha.GameServerDeployment value) { - if (gameServerDeploymentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerDeploymentsIsMutable(); - gameServerDeployments_.set(index, value); - onChanged(); - } else { - gameServerDeploymentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public Builder setGameServerDeployments( - int index, com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder builderForValue) { - if (gameServerDeploymentsBuilder_ == null) { - ensureGameServerDeploymentsIsMutable(); - gameServerDeployments_.set(index, builderForValue.build()); - onChanged(); - } else { - gameServerDeploymentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public Builder addGameServerDeployments( - com.google.cloud.gaming.v1alpha.GameServerDeployment value) { - if (gameServerDeploymentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerDeploymentsIsMutable(); - gameServerDeployments_.add(value); - onChanged(); - } else { - gameServerDeploymentsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public Builder addGameServerDeployments( - int index, com.google.cloud.gaming.v1alpha.GameServerDeployment value) { - if (gameServerDeploymentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGameServerDeploymentsIsMutable(); - gameServerDeployments_.add(index, value); - onChanged(); - } else { - gameServerDeploymentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public Builder addGameServerDeployments( - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder builderForValue) { - if (gameServerDeploymentsBuilder_ == null) { - ensureGameServerDeploymentsIsMutable(); - gameServerDeployments_.add(builderForValue.build()); - onChanged(); - } else { - gameServerDeploymentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public Builder addGameServerDeployments( - int index, com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder builderForValue) { - if (gameServerDeploymentsBuilder_ == null) { - ensureGameServerDeploymentsIsMutable(); - gameServerDeployments_.add(index, builderForValue.build()); - onChanged(); - } else { - gameServerDeploymentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public Builder addAllGameServerDeployments( - java.lang.Iterable values) { - if (gameServerDeploymentsBuilder_ == null) { - ensureGameServerDeploymentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gameServerDeployments_); - onChanged(); - } else { - gameServerDeploymentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public Builder clearGameServerDeployments() { - if (gameServerDeploymentsBuilder_ == null) { - gameServerDeployments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - gameServerDeploymentsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public Builder removeGameServerDeployments(int index) { - if (gameServerDeploymentsBuilder_ == null) { - ensureGameServerDeploymentsIsMutable(); - gameServerDeployments_.remove(index); - onChanged(); - } else { - gameServerDeploymentsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder - getGameServerDeploymentsBuilder(int index) { - return getGameServerDeploymentsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder - getGameServerDeploymentsOrBuilder(int index) { - if (gameServerDeploymentsBuilder_ == null) { - return gameServerDeployments_.get(index); - } else { - return gameServerDeploymentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public java.util.List - getGameServerDeploymentsOrBuilderList() { - if (gameServerDeploymentsBuilder_ != null) { - return gameServerDeploymentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(gameServerDeployments_); - } - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder - addGameServerDeploymentsBuilder() { - return getGameServerDeploymentsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance()); - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder - addGameServerDeploymentsBuilder(int index) { - return getGameServerDeploymentsFieldBuilder() - .addBuilder( - index, com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance()); - } - /** - * - * - *
-     * The list of game server delpoyments.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - public java.util.List - getGameServerDeploymentsBuilderList() { - return getGameServerDeploymentsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeployment, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder> - getGameServerDeploymentsFieldBuilder() { - if (gameServerDeploymentsBuilder_ == null) { - gameServerDeploymentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeployment, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder>( - gameServerDeployments_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - gameServerDeployments_ = null; - } - return gameServerDeploymentsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachableLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return A list containing the unreachableLocations. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { - return unreachableLocations_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return The count of unreachableLocations. - */ - @java.lang.Deprecated - public int getUnreachableLocationsCount() { - return unreachableLocations_.size(); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The unreachableLocations at the given index. - */ - @java.lang.Deprecated - public java.lang.String getUnreachableLocations(int index) { - return unreachableLocations_.get(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachableLocations at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { - return unreachableLocations_.getByteString(index); - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index to set the value at. - * @param value The unreachableLocations to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setUnreachableLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param value The unreachableLocations to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addUnreachableLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param values The unreachableLocations to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addAllUnreachableLocations(java.lang.Iterable values) { - ensureUnreachableLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearUnreachableLocations() { - unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that could not be reached.
-     * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param value The bytes of the unreachableLocations to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableLocationsIsMutable(); - unreachableLocations_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable(java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 4; - * - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse) - private static final com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse(); - } - - public static com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGameServerDeploymentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGameServerDeploymentsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponseOrBuilder.java deleted file mode 100644 index be5a6b11..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponseOrBuilder.java +++ /dev/null @@ -1,217 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListGameServerDeploymentsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - java.util.List - getGameServerDeploymentsList(); - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployments(int index); - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - int getGameServerDeploymentsCount(); - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - java.util.List - getGameServerDeploymentsOrBuilderList(); - /** - * - * - *
-   * The list of game server delpoyments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployments = 1; - * - */ - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeploymentsOrBuilder( - int index); - - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); - - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return A list containing the unreachableLocations. - */ - @java.lang.Deprecated - java.util.List getUnreachableLocationsList(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @return The count of unreachableLocations. - */ - @java.lang.Deprecated - int getUnreachableLocationsCount(); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The unreachableLocations at the given index. - */ - @java.lang.Deprecated - java.lang.String getUnreachableLocations(int index); - /** - * - * - *
-   * List of locations that could not be reached.
-   * 
- * - * repeated string unreachable_locations = 3 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachableLocations at the given index. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); - - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @return A list containing the unreachable. - */ - java.util.List getUnreachableList(); - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 4; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString getUnreachableBytes(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequest.java deleted file mode 100644 index d0d7f861..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequest.java +++ /dev/null @@ -1,1304 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for RealmsService.ListRealms.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListRealmsRequest} - */ -public final class ListRealmsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListRealmsRequest) - ListRealmsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRealmsRequest.newBuilder() to construct. - private ListRealmsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRealmsRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListRealmsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListRealmsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListRealmsRequest.class, - com.google.cloud.gaming.v1alpha.ListRealmsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * 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.v1alpha.ListRealmsResponse.next_page_token] to
-   * determine if there are more Realms left to be queried.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListRealmsRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListRealmsRequest other = - (com.google.cloud.gaming.v1alpha.ListRealmsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.ListRealmsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for RealmsService.ListRealms.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListRealmsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListRealmsRequest) - com.google.cloud.gaming.v1alpha.ListRealmsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListRealmsRequest.class, - com.google.cloud.gaming.v1alpha.ListRealmsRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListRealmsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - orderBy_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListRealmsRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListRealmsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListRealmsRequest build() { - com.google.cloud.gaming.v1alpha.ListRealmsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListRealmsRequest buildPartial() { - com.google.cloud.gaming.v1alpha.ListRealmsRequest result = - new com.google.cloud.gaming.v1alpha.ListRealmsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListRealmsRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListRealmsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListRealmsRequest other) { - if (other == com.google.cloud.gaming.v1alpha.ListRealmsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListRealmsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListRealmsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}`.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * 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.v1alpha.ListRealmsResponse.next_page_token] to
-     * determine if there are more Realms left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * 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.v1alpha.ListRealmsResponse.next_page_token] to
-     * determine if there are more Realms left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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.v1alpha.ListRealmsResponse.next_page_token] to
-     * determine if there are more Realms left to be queried.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListRealmsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListRealmsRequest) - private static final com.google.cloud.gaming.v1alpha.ListRealmsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListRealmsRequest(); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRealmsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRealmsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListRealmsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequestOrBuilder.java deleted file mode 100644 index a5d78859..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequestOrBuilder.java +++ /dev/null @@ -1,152 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListRealmsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListRealmsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * 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.v1alpha.ListRealmsResponse.next_page_token] to
-   * determine if there are more Realms left to be queried.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponse.java deleted file mode 100644 index 5a0c53da..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponse.java +++ /dev/null @@ -1,1403 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for RealmsService.ListRealms.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListRealmsResponse} - */ -public final class ListRealmsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListRealmsResponse) - ListRealmsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRealmsResponse.newBuilder() to construct. - private ListRealmsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListRealmsResponse() { - realms_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListRealmsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListRealmsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - realms_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - realms_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.Realm.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - realms_ = java.util.Collections.unmodifiableList(realms_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListRealmsResponse.class, - com.google.cloud.gaming.v1alpha.ListRealmsResponse.Builder.class); - } - - public static final int REALMS_FIELD_NUMBER = 1; - private java.util.List realms_; - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public java.util.List getRealmsList() { - return realms_; - } - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public java.util.List - getRealmsOrBuilderList() { - return realms_; - } - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public int getRealmsCount() { - return realms_.size(); - } - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public com.google.cloud.gaming.v1alpha.Realm getRealms(int index) { - return realms_.get(index); - } - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmsOrBuilder(int index) { - return realms_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList unreachable_; - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 3; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_; - } - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 3; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < realms_.size(); i++) { - output.writeMessage(1, realms_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < realms_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, realms_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListRealmsResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListRealmsResponse other = - (com.google.cloud.gaming.v1alpha.ListRealmsResponse) obj; - - if (!getRealmsList().equals(other.getRealmsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRealmsCount() > 0) { - hash = (37 * hash) + REALMS_FIELD_NUMBER; - hash = (53 * hash) + getRealmsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.ListRealmsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for RealmsService.ListRealms.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListRealmsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListRealmsResponse) - com.google.cloud.gaming.v1alpha.ListRealmsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListRealmsResponse.class, - com.google.cloud.gaming.v1alpha.ListRealmsResponse.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListRealmsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRealmsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (realmsBuilder_ == null) { - realms_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - realmsBuilder_.clear(); - } - nextPageToken_ = ""; - - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListRealmsResponse getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListRealmsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListRealmsResponse build() { - com.google.cloud.gaming.v1alpha.ListRealmsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListRealmsResponse buildPartial() { - com.google.cloud.gaming.v1alpha.ListRealmsResponse result = - new com.google.cloud.gaming.v1alpha.ListRealmsResponse(this); - int from_bitField0_ = bitField0_; - if (realmsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - realms_ = java.util.Collections.unmodifiableList(realms_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.realms_ = realms_; - } else { - result.realms_ = realmsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (((bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unreachable_ = unreachable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListRealmsResponse) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListRealmsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListRealmsResponse other) { - if (other == com.google.cloud.gaming.v1alpha.ListRealmsResponse.getDefaultInstance()) - return this; - if (realmsBuilder_ == null) { - if (!other.realms_.isEmpty()) { - if (realms_.isEmpty()) { - realms_ = other.realms_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRealmsIsMutable(); - realms_.addAll(other.realms_); - } - onChanged(); - } - } else { - if (!other.realms_.isEmpty()) { - if (realmsBuilder_.isEmpty()) { - realmsBuilder_.dispose(); - realmsBuilder_ = null; - realms_ = other.realms_; - bitField0_ = (bitField0_ & ~0x00000001); - realmsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRealmsFieldBuilder() - : null; - } else { - realmsBuilder_.addAllMessages(other.realms_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListRealmsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListRealmsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List realms_ = - java.util.Collections.emptyList(); - - private void ensureRealmsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - realms_ = new java.util.ArrayList(realms_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder> - realmsBuilder_; - - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public java.util.List getRealmsList() { - if (realmsBuilder_ == null) { - return java.util.Collections.unmodifiableList(realms_); - } else { - return realmsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public int getRealmsCount() { - if (realmsBuilder_ == null) { - return realms_.size(); - } else { - return realmsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public com.google.cloud.gaming.v1alpha.Realm getRealms(int index) { - if (realmsBuilder_ == null) { - return realms_.get(index); - } else { - return realmsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public Builder setRealms(int index, com.google.cloud.gaming.v1alpha.Realm value) { - if (realmsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRealmsIsMutable(); - realms_.set(index, value); - onChanged(); - } else { - realmsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public Builder setRealms( - int index, com.google.cloud.gaming.v1alpha.Realm.Builder builderForValue) { - if (realmsBuilder_ == null) { - ensureRealmsIsMutable(); - realms_.set(index, builderForValue.build()); - onChanged(); - } else { - realmsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public Builder addRealms(com.google.cloud.gaming.v1alpha.Realm value) { - if (realmsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRealmsIsMutable(); - realms_.add(value); - onChanged(); - } else { - realmsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public Builder addRealms(int index, com.google.cloud.gaming.v1alpha.Realm value) { - if (realmsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRealmsIsMutable(); - realms_.add(index, value); - onChanged(); - } else { - realmsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public Builder addRealms(com.google.cloud.gaming.v1alpha.Realm.Builder builderForValue) { - if (realmsBuilder_ == null) { - ensureRealmsIsMutable(); - realms_.add(builderForValue.build()); - onChanged(); - } else { - realmsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public Builder addRealms( - int index, com.google.cloud.gaming.v1alpha.Realm.Builder builderForValue) { - if (realmsBuilder_ == null) { - ensureRealmsIsMutable(); - realms_.add(index, builderForValue.build()); - onChanged(); - } else { - realmsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public Builder addAllRealms( - java.lang.Iterable values) { - if (realmsBuilder_ == null) { - ensureRealmsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, realms_); - onChanged(); - } else { - realmsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public Builder clearRealms() { - if (realmsBuilder_ == null) { - realms_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - realmsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public Builder removeRealms(int index) { - if (realmsBuilder_ == null) { - ensureRealmsIsMutable(); - realms_.remove(index); - onChanged(); - } else { - realmsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public com.google.cloud.gaming.v1alpha.Realm.Builder getRealmsBuilder(int index) { - return getRealmsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmsOrBuilder(int index) { - if (realmsBuilder_ == null) { - return realms_.get(index); - } else { - return realmsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public java.util.List - getRealmsOrBuilderList() { - if (realmsBuilder_ != null) { - return realmsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(realms_); - } - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public com.google.cloud.gaming.v1alpha.Realm.Builder addRealmsBuilder() { - return getRealmsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance()); - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public com.google.cloud.gaming.v1alpha.Realm.Builder addRealmsBuilder(int index) { - return getRealmsFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance()); - } - /** - * - * - *
-     * The list of realms
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - public java.util.List getRealmsBuilderList() { - return getRealmsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder> - getRealmsFieldBuilder() { - if (realmsBuilder_ == null) { - realmsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder>( - realms_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - realms_ = null; - } - return realmsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 3; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 3; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 3; - * - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 3; - * - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 3; - * - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable(java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 3; - * - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * List of locations that were not reachable.
-     * 
- * - * repeated string unreachable = 3; - * - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListRealmsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListRealmsResponse) - private static final com.google.cloud.gaming.v1alpha.ListRealmsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListRealmsResponse(); - } - - public static com.google.cloud.gaming.v1alpha.ListRealmsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRealmsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRealmsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListRealmsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponseOrBuilder.java deleted file mode 100644 index d2219688..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponseOrBuilder.java +++ /dev/null @@ -1,154 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListRealmsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListRealmsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - java.util.List getRealmsList(); - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - com.google.cloud.gaming.v1alpha.Realm getRealms(int index); - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - int getRealmsCount(); - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - java.util.List getRealmsOrBuilderList(); - /** - * - * - *
-   * The list of realms
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Realm realms = 1; - */ - com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmsOrBuilder(int index); - - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); - - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 3; - * - * @return A list containing the unreachable. - */ - java.util.List getUnreachableList(); - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 3; - * - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - * - * - *
-   * List of locations that were not reachable.
-   * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString getUnreachableBytes(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LocationName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LocationName.java deleted file mode 100644 index 13f6330e..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LocationName.java +++ /dev/null @@ -1,182 +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 - * - * 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. - */ - -package com.google.cloud.gaming.v1alpha; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** AUTO-GENERATED DOCUMENTATION AND CLASS */ -@javax.annotation.Generated("by GAPIC protoc plugin") -public class LocationName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - - private volatile Map fieldValuesMap; - - private final String project; - private final String location; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("location", location); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate("project", project, "location", location); - } - - /** Builder for LocationName. */ - public static class Builder { - - private String project; - private String location; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder() {} - - private Builder(LocationName locationName) { - project = locationName.project; - location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof LocationName) { - LocationName that = (LocationName) o; - return (this.project.equals(that.project)) && (this.location.equals(that.location)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= location.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadata.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadata.java deleted file mode 100644 index 5d1a72e2..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadata.java +++ /dev/null @@ -1,2516 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Represents the metadata of the long-running operation.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.OperationMetadata} - */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.OperationMetadata) - OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use OperationMetadata.newBuilder() to construct. - private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OperationMetadata() { - target_ = ""; - verb_ = ""; - statusMessage_ = ""; - apiVersion_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OperationMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private OperationMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - apiVersion_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - unreachable_.add(s); - break; - } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - operationStatus_ = - com.google.protobuf.MapField.newMapField( - OperationStatusDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> - operationStatus__ = - input.readMessage( - OperationStatusDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - operationStatus_ - .getMutableMap() - .put(operationStatus__.getKey(), operationStatus__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 9: - return internalGetOperationStatus(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.OperationMetadata.class, - com.google.cloud.gaming.v1alpha.OperationMetadata.Builder.class); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - * - * - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTime_ != null; - } - /** - * - * - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - * - * - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int TARGET_FIELD_NUMBER = 3; - private volatile java.lang.Object target_; - /** - * - * - *
-   * Output only. Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The target. - */ - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for target. - */ - public com.google.protobuf.ByteString getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERB_FIELD_NUMBER = 4; - private volatile java.lang.Object verb_; - /** - * - * - *
-   * Output only. Name of the verb executed by the operation.
-   * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The verb. - */ - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Name of the verb executed by the operation.
-   * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for verb. - */ - public com.google.protobuf.ByteString getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - private volatile java.lang.Object statusMessage_; - /** - * - * - *
-   * Output only. Human-readable status of the operation, if any.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The statusMessage. - */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Human-readable status of the operation, if any.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for statusMessage. - */ - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; - private boolean requestedCancellation_; - /** - * - * - *
-   * 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`.
-   * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The requestedCancellation. - */ - public boolean getRequestedCancellation() { - return requestedCancellation_; - } - - public static final int API_VERSION_FIELD_NUMBER = 7; - private volatile java.lang.Object apiVersion_; - /** - * - * - *
-   * Output only. API version used to start the operation.
-   * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The apiVersion. - */ - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. API version used to start the operation.
-   * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for apiVersion. - */ - public com.google.protobuf.ByteString getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList unreachable_; - /** - * - * - *
-   * Output only. List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_; - } - /** - * - * - *
-   * Output only. List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-   * Output only. List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-   * Output only. List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - public static final int OPERATION_STATUS_FIELD_NUMBER = 9; - - private static final class OperationStatusDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gaming.v1alpha.OperationStatus.getDefaultInstance()); - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> - operationStatus_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> - internalGetOperationStatus() { - if (operationStatus_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OperationStatusDefaultEntryHolder.defaultEntry); - } - return operationStatus_; - } - - public int getOperationStatusCount() { - return internalGetOperationStatus().getMap().size(); - } - /** - * - * - *
-   * Output only. Operation status for game services 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.
-   * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public boolean containsOperationStatus(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetOperationStatus().getMap().containsKey(key); - } - /** Use {@link #getOperationStatusMap()} instead. */ - @java.lang.Deprecated - public java.util.Map - getOperationStatus() { - return getOperationStatusMap(); - } - /** - * - * - *
-   * Output only. Operation status for game services 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.
-   * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.Map - getOperationStatusMap() { - return internalGetOperationStatus().getMap(); - } - /** - * - * - *
-   * Output only. Operation status for game services 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.
-   * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrDefault( - java.lang.String key, com.google.cloud.gaming.v1alpha.OperationStatus defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetOperationStatus().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Output only. Operation status for game services 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.
-   * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrThrow( - java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetOperationStatus().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createTime_ != null) { - output.writeMessage(1, getCreateTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - if (!getTargetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); - } - if (!getVerbBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); - } - if (!getStatusMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); - } - if (requestedCancellation_ != false) { - output.writeBool(6, requestedCancellation_); - } - if (!getApiVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, unreachable_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetOperationStatus(), OperationStatusDefaultEntryHolder.defaultEntry, 9); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - if (!getTargetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); - } - if (!getVerbBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); - } - if (!getStatusMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); - } - if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); - } - if (!getApiVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - for (java.util.Map.Entry - entry : internalGetOperationStatus().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> - operationStatus__ = - OperationStatusDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, operationStatus__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.OperationMetadata)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.OperationMetadata other = - (com.google.cloud.gaming.v1alpha.OperationMetadata) obj; - - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!internalGetOperationStatus().equals(other.internalGetOperationStatus())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - hash = (37 * hash) + VERB_FIELD_NUMBER; - hash = (53 * hash) + getVerb().hashCode(); - hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStatusMessage().hashCode(); - hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); - hash = (37 * hash) + API_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getApiVersion().hashCode(); - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - if (!internalGetOperationStatus().getMap().isEmpty()) { - hash = (37 * hash) + OPERATION_STATUS_FIELD_NUMBER; - hash = (53 * hash) + internalGetOperationStatus().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.OperationMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents the metadata of the long-running operation.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.OperationMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.OperationMetadata) - com.google.cloud.gaming.v1alpha.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 9: - return internalGetOperationStatus(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 9: - return internalGetMutableOperationStatus(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.OperationMetadata.class, - com.google.cloud.gaming.v1alpha.OperationMetadata.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.OperationMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - target_ = ""; - - verb_ = ""; - - statusMessage_ = ""; - - requestedCancellation_ = false; - - apiVersion_ = ""; - - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableOperationStatus().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.OperationMetadata getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.OperationMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.OperationMetadata build() { - com.google.cloud.gaming.v1alpha.OperationMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.OperationMetadata buildPartial() { - com.google.cloud.gaming.v1alpha.OperationMetadata result = - new com.google.cloud.gaming.v1alpha.OperationMetadata(this); - int from_bitField0_ = bitField0_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.target_ = target_; - result.verb_ = verb_; - result.statusMessage_ = statusMessage_; - result.requestedCancellation_ = requestedCancellation_; - result.apiVersion_ = apiVersion_; - if (((bitField0_ & 0x00000001) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.unreachable_ = unreachable_; - result.operationStatus_ = internalGetOperationStatus(); - result.operationStatus_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.OperationMetadata) { - return mergeFrom((com.google.cloud.gaming.v1alpha.OperationMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.OperationMetadata other) { - if (other == com.google.cloud.gaming.v1alpha.OperationMetadata.getDefaultInstance()) - return this; - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (!other.getTarget().isEmpty()) { - target_ = other.target_; - onChanged(); - } - if (!other.getVerb().isEmpty()) { - verb_ = other.verb_; - onChanged(); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (other.getRequestedCancellation() != false) { - setRequestedCancellation(other.getRequestedCancellation()); - } - if (!other.getApiVersion().isEmpty()) { - apiVersion_ = other.apiVersion_; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - internalGetMutableOperationStatus().mergeFrom(other.internalGetOperationStatus()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.OperationMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.OperationMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The time the operation was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The time the operation was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time the operation was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time the operation was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time the operation was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time the operation was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time the operation was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time the operation was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The time the operation was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; - /** - * - * - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - * - * - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } else { - return endTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - onChanged(); - } else { - endTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); - } else { - endTime_ = value; - } - onChanged(); - } else { - endTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - * - * - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getEndTimeFieldBuilder() { - if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); - endTime_ = null; - } - return endTimeBuilder_; - } - - private java.lang.Object target_ = ""; - /** - * - * - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The target. - */ - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for target. - */ - public com.google.protobuf.ByteString getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The target to set. - * @return This builder for chaining. - */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - target_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTarget() { - - target_ = getDefaultInstance().getTarget(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for target to set. - * @return This builder for chaining. - */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - target_ = value; - onChanged(); - return this; - } - - private java.lang.Object verb_ = ""; - /** - * - * - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The verb. - */ - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for verb. - */ - public com.google.protobuf.ByteString getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The verb to set. - * @return This builder for chaining. - */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verb_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearVerb() { - - verb_ = getDefaultInstance().getVerb(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for verb to set. - * @return This builder for chaining. - */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verb_ = value; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - * - * - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The statusMessage. - */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for statusMessage. - */ - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private boolean requestedCancellation_; - /** - * - * - *
-     * 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`.
-     * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The requestedCancellation. - */ - public boolean getRequestedCancellation() { - return requestedCancellation_; - } - /** - * - * - *
-     * 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`.
-     * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The requestedCancellation to set. - * @return This builder for chaining. - */ - public Builder setRequestedCancellation(boolean value) { - - requestedCancellation_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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`.
-     * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearRequestedCancellation() { - - requestedCancellation_ = false; - onChanged(); - return this; - } - - private java.lang.Object apiVersion_ = ""; - /** - * - * - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The apiVersion. - */ - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for apiVersion. - */ - public com.google.protobuf.ByteString getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - apiVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearApiVersion() { - - apiVersion_ = getDefaultInstance().getApiVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - apiVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Output only. List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - * - * - *
-     * Output only. List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-     * Output only. List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-     * Output only. List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - * - * - *
-     * Output only. List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable(java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. List of locations that could not be reached.
-     * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> - operationStatus_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> - internalGetOperationStatus() { - if (operationStatus_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OperationStatusDefaultEntryHolder.defaultEntry); - } - return operationStatus_; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> - internalGetMutableOperationStatus() { - onChanged(); - ; - if (operationStatus_ == null) { - operationStatus_ = - com.google.protobuf.MapField.newMapField( - OperationStatusDefaultEntryHolder.defaultEntry); - } - if (!operationStatus_.isMutable()) { - operationStatus_ = operationStatus_.copy(); - } - return operationStatus_; - } - - public int getOperationStatusCount() { - return internalGetOperationStatus().getMap().size(); - } - /** - * - * - *
-     * Output only. Operation status for game services 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.
-     * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public boolean containsOperationStatus(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetOperationStatus().getMap().containsKey(key); - } - /** Use {@link #getOperationStatusMap()} instead. */ - @java.lang.Deprecated - public java.util.Map - getOperationStatus() { - return getOperationStatusMap(); - } - /** - * - * - *
-     * Output only. Operation status for game services 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.
-     * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.Map - getOperationStatusMap() { - return internalGetOperationStatus().getMap(); - } - /** - * - * - *
-     * Output only. Operation status for game services 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.
-     * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrDefault( - java.lang.String key, com.google.cloud.gaming.v1alpha.OperationStatus defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetOperationStatus().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Output only. Operation status for game services 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.
-     * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrThrow( - java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetOperationStatus().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearOperationStatus() { - internalGetMutableOperationStatus().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Output only. Operation status for game services 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.
-     * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeOperationStatus(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableOperationStatus().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableOperationStatus() { - return internalGetMutableOperationStatus().getMutableMap(); - } - /** - * - * - *
-     * Output only. Operation status for game services 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.
-     * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putOperationStatus( - java.lang.String key, com.google.cloud.gaming.v1alpha.OperationStatus value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableOperationStatus().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Output only. Operation status for game services 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.
-     * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putAllOperationStatus( - java.util.Map values) { - internalGetMutableOperationStatus().getMutableMap().putAll(values); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.OperationMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.OperationMetadata) - private static final com.google.cloud.gaming.v1alpha.OperationMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.OperationMetadata(); - } - - public static com.google.cloud.gaming.v1alpha.OperationMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.OperationMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadataOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadataOrBuilder.java deleted file mode 100644 index 56a582e4..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadataOrBuilder.java +++ /dev/null @@ -1,350 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public interface OperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.OperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * - * - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - * - * - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The target. - */ - java.lang.String getTarget(); - /** - * - * - *
-   * Output only. Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for target. - */ - com.google.protobuf.ByteString getTargetBytes(); - - /** - * - * - *
-   * Output only. Name of the verb executed by the operation.
-   * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The verb. - */ - java.lang.String getVerb(); - /** - * - * - *
-   * Output only. Name of the verb executed by the operation.
-   * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for verb. - */ - com.google.protobuf.ByteString getVerbBytes(); - - /** - * - * - *
-   * Output only. Human-readable status of the operation, if any.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The statusMessage. - */ - java.lang.String getStatusMessage(); - /** - * - * - *
-   * Output only. Human-readable status of the operation, if any.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for statusMessage. - */ - com.google.protobuf.ByteString getStatusMessageBytes(); - - /** - * - * - *
-   * 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`.
-   * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The requestedCancellation. - */ - boolean getRequestedCancellation(); - - /** - * - * - *
-   * Output only. API version used to start the operation.
-   * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The apiVersion. - */ - java.lang.String getApiVersion(); - /** - * - * - *
-   * Output only. API version used to start the operation.
-   * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for apiVersion. - */ - com.google.protobuf.ByteString getApiVersionBytes(); - - /** - * - * - *
-   * Output only. List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the unreachable. - */ - java.util.List getUnreachableList(); - /** - * - * - *
-   * Output only. List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - * - * - *
-   * Output only. List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - * - * - *
-   * Output only. List of locations that could not be reached.
-   * 
- * - * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString getUnreachableBytes(int index); - - /** - * - * - *
-   * Output only. Operation status for game services 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.
-   * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getOperationStatusCount(); - /** - * - * - *
-   * Output only. Operation status for game services 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.
-   * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - boolean containsOperationStatus(java.lang.String key); - /** Use {@link #getOperationStatusMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getOperationStatus(); - /** - * - * - *
-   * Output only. Operation status for game services 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.
-   * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.Map - getOperationStatusMap(); - /** - * - * - *
-   * Output only. Operation status for game services 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.
-   * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrDefault( - java.lang.String key, com.google.cloud.gaming.v1alpha.OperationStatus defaultValue); - /** - * - * - *
-   * Output only. Operation status for game services 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.
-   * 
- * - * - * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatus.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatus.java deleted file mode 100644 index bbcfac53..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatus.java +++ /dev/null @@ -1,961 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** Protobuf type {@code google.cloud.gaming.v1alpha.OperationStatus} */ -public final class OperationStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.OperationStatus) - OperationStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use OperationStatus.newBuilder() to construct. - private OperationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OperationStatus() { - errorCode_ = 0; - errorMessage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OperationStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private OperationStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - done_ = input.readBool(); - break; - } - case 16: - { - int rawValue = input.readEnum(); - - errorCode_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.OperationStatus.class, - com.google.cloud.gaming.v1alpha.OperationStatus.Builder.class); - } - - /** Protobuf enum {@code google.cloud.gaming.v1alpha.OperationStatus.ErrorCode} */ - public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { - /** ERROR_CODE_UNSPECIFIED = 0; */ - ERROR_CODE_UNSPECIFIED(0), - /** INTERNAL_ERROR = 1; */ - INTERNAL_ERROR(1), - /** PERMISSION_DENIED = 2; */ - PERMISSION_DENIED(2), - /** CLUSTER_CONNECTION = 3; */ - CLUSTER_CONNECTION(3), - UNRECOGNIZED(-1), - ; - - /** ERROR_CODE_UNSPECIFIED = 0; */ - public static final int ERROR_CODE_UNSPECIFIED_VALUE = 0; - /** INTERNAL_ERROR = 1; */ - public static final int INTERNAL_ERROR_VALUE = 1; - /** PERMISSION_DENIED = 2; */ - public static final int PERMISSION_DENIED_VALUE = 2; - /** CLUSTER_CONNECTION = 3; */ - public static final int CLUSTER_CONNECTION_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ErrorCode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ErrorCode forNumber(int value) { - switch (value) { - case 0: - return ERROR_CODE_UNSPECIFIED; - case 1: - return INTERNAL_ERROR; - case 2: - return PERMISSION_DENIED; - case 3: - return CLUSTER_CONNECTION; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ErrorCode findValueByNumber(int number) { - return ErrorCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.OperationStatus.getDescriptor().getEnumTypes().get(0); - } - - private static final ErrorCode[] VALUES = values(); - - public static ErrorCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ErrorCode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.gaming.v1alpha.OperationStatus.ErrorCode) - } - - public static final int DONE_FIELD_NUMBER = 1; - private boolean done_; - /** - * - * - *
-   * Output only. Whether the operation is done or still in progress.
-   * 
- * - * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - public boolean getDone() { - return done_; - } - - public static final int ERROR_CODE_FIELD_NUMBER = 2; - private int errorCode_; - /** - * - * - *
-   * The error code in case of failures.
-   * 
- * - * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; - * - * @return The enum numeric value on the wire for errorCode. - */ - public int getErrorCodeValue() { - return errorCode_; - } - /** - * - * - *
-   * The error code in case of failures.
-   * 
- * - * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; - * - * @return The errorCode. - */ - public com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode getErrorCode() { - @SuppressWarnings("deprecation") - com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode result = - com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.valueOf(errorCode_); - return result == null - ? com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.UNRECOGNIZED - : result; - } - - public static final int ERROR_MESSAGE_FIELD_NUMBER = 3; - private volatile java.lang.Object errorMessage_; - /** - * - * - *
-   * The human-readable error message.
-   * 
- * - * string error_message = 3; - * - * @return The errorMessage. - */ - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorMessage_ = s; - return s; - } - } - /** - * - * - *
-   * The human-readable error message.
-   * 
- * - * string error_message = 3; - * - * @return The bytes for errorMessage. - */ - public com.google.protobuf.ByteString getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - errorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (done_ != false) { - output.writeBool(1, done_); - } - if (errorCode_ - != com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.ERROR_CODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, errorCode_); - } - if (!getErrorMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorMessage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (done_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, done_); - } - if (errorCode_ - != com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.ERROR_CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, errorCode_); - } - if (!getErrorMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorMessage_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.OperationStatus)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.OperationStatus other = - (com.google.cloud.gaming.v1alpha.OperationStatus) obj; - - if (getDone() != other.getDone()) return false; - if (errorCode_ != other.errorCode_) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DONE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); - hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER; - hash = (53 * hash) + errorCode_; - hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getErrorMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.OperationStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code google.cloud.gaming.v1alpha.OperationStatus} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.OperationStatus) - com.google.cloud.gaming.v1alpha.OperationStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.OperationStatus.class, - com.google.cloud.gaming.v1alpha.OperationStatus.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.OperationStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - done_ = false; - - errorCode_ = 0; - - errorMessage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.OperationStatus getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.OperationStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.OperationStatus build() { - com.google.cloud.gaming.v1alpha.OperationStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.OperationStatus buildPartial() { - com.google.cloud.gaming.v1alpha.OperationStatus result = - new com.google.cloud.gaming.v1alpha.OperationStatus(this); - result.done_ = done_; - result.errorCode_ = errorCode_; - result.errorMessage_ = errorMessage_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.OperationStatus) { - return mergeFrom((com.google.cloud.gaming.v1alpha.OperationStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.OperationStatus other) { - if (other == com.google.cloud.gaming.v1alpha.OperationStatus.getDefaultInstance()) - return this; - if (other.getDone() != false) { - setDone(other.getDone()); - } - if (other.errorCode_ != 0) { - setErrorCodeValue(other.getErrorCodeValue()); - } - if (!other.getErrorMessage().isEmpty()) { - errorMessage_ = other.errorMessage_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.OperationStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.OperationStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean done_; - /** - * - * - *
-     * Output only. Whether the operation is done or still in progress.
-     * 
- * - * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - public boolean getDone() { - return done_; - } - /** - * - * - *
-     * Output only. Whether the operation is done or still in progress.
-     * 
- * - * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The done to set. - * @return This builder for chaining. - */ - public Builder setDone(boolean value) { - - done_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Whether the operation is done or still in progress.
-     * 
- * - * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDone() { - - done_ = false; - onChanged(); - return this; - } - - private int errorCode_ = 0; - /** - * - * - *
-     * The error code in case of failures.
-     * 
- * - * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; - * - * @return The enum numeric value on the wire for errorCode. - */ - public int getErrorCodeValue() { - return errorCode_; - } - /** - * - * - *
-     * The error code in case of failures.
-     * 
- * - * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; - * - * @param value The enum numeric value on the wire for errorCode to set. - * @return This builder for chaining. - */ - public Builder setErrorCodeValue(int value) { - errorCode_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The error code in case of failures.
-     * 
- * - * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; - * - * @return The errorCode. - */ - public com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode getErrorCode() { - @SuppressWarnings("deprecation") - com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode result = - com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.valueOf(errorCode_); - return result == null - ? com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The error code in case of failures.
-     * 
- * - * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; - * - * @param value The errorCode to set. - * @return This builder for chaining. - */ - public Builder setErrorCode(com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode value) { - if (value == null) { - throw new NullPointerException(); - } - - errorCode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The error code in case of failures.
-     * 
- * - * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; - * - * @return This builder for chaining. - */ - public Builder clearErrorCode() { - - errorCode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object errorMessage_ = ""; - /** - * - * - *
-     * The human-readable error message.
-     * 
- * - * string error_message = 3; - * - * @return The errorMessage. - */ - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The human-readable error message.
-     * 
- * - * string error_message = 3; - * - * @return The bytes for errorMessage. - */ - public com.google.protobuf.ByteString getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - errorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The human-readable error message.
-     * 
- * - * string error_message = 3; - * - * @param value The errorMessage to set. - * @return This builder for chaining. - */ - public Builder setErrorMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - errorMessage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The human-readable error message.
-     * 
- * - * string error_message = 3; - * - * @return This builder for chaining. - */ - public Builder clearErrorMessage() { - - errorMessage_ = getDefaultInstance().getErrorMessage(); - onChanged(); - return this; - } - /** - * - * - *
-     * The human-readable error message.
-     * 
- * - * string error_message = 3; - * - * @param value The bytes for errorMessage to set. - * @return This builder for chaining. - */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - errorMessage_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.OperationStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.OperationStatus) - private static final com.google.cloud.gaming.v1alpha.OperationStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.OperationStatus(); - } - - public static com.google.cloud.gaming.v1alpha.OperationStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.OperationStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatusOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatusOrBuilder.java deleted file mode 100644 index cef89095..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatusOrBuilder.java +++ /dev/null @@ -1,88 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public interface OperationStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.OperationStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Whether the operation is done or still in progress.
-   * 
- * - * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - boolean getDone(); - - /** - * - * - *
-   * The error code in case of failures.
-   * 
- * - * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; - * - * @return The enum numeric value on the wire for errorCode. - */ - int getErrorCodeValue(); - /** - * - * - *
-   * The error code in case of failures.
-   * 
- * - * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; - * - * @return The errorCode. - */ - com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode getErrorCode(); - - /** - * - * - *
-   * The human-readable error message.
-   * 
- * - * string error_message = 3; - * - * @return The errorMessage. - */ - java.lang.String getErrorMessage(); - /** - * - * - *
-   * The human-readable error message.
-   * 
- * - * string error_message = 3; - * - * @return The bytes for errorMessage. - */ - com.google.protobuf.ByteString getErrorMessageBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequest.java deleted file mode 100644 index e3a2269f..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequest.java +++ /dev/null @@ -1,1417 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerClustersService.PreviewCreateGameServerCluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest} - */ -public final class PreviewCreateGameServerClusterRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) - PreviewCreateGameServerClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewCreateGameServerClusterRequest.newBuilder() to construct. - private PreviewCreateGameServerClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewCreateGameServerClusterRequest() { - parent_ = ""; - gameServerClusterId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewCreateGameServerClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewCreateGameServerClusterRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - gameServerClusterId_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder subBuilder = null; - if (gameServerCluster_ != null) { - subBuilder = gameServerCluster_.toBuilder(); - } - gameServerCluster_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerCluster.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameServerCluster_); - gameServerCluster_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (previewTime_ != null) { - subBuilder = previewTime_.toBuilder(); - } - previewTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(previewTime_); - previewTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAME_SERVER_CLUSTER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object gameServerClusterId_; - /** - * - * - *
-   * Required. The ID of the game server cluster resource to be created.
-   * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The gameServerClusterId. - */ - public java.lang.String getGameServerClusterId() { - java.lang.Object ref = gameServerClusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerClusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the game server cluster resource to be created.
-   * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for gameServerClusterId. - */ - public com.google.protobuf.ByteString getGameServerClusterIdBytes() { - java.lang.Object ref = gameServerClusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerClusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAME_SERVER_CLUSTER_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - public boolean hasGameServerCluster() { - return gameServerCluster_ != null; - } - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder - getGameServerClusterOrBuilder() { - return getGameServerCluster(); - } - - public static final int PREVIEW_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp previewTime_; - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTime_ != null; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - return getPreviewTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!getGameServerClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gameServerClusterId_); - } - if (gameServerCluster_ != null) { - output.writeMessage(3, getGameServerCluster()); - } - if (previewTime_ != null) { - output.writeMessage(4, getPreviewTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!getGameServerClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gameServerClusterId_); - } - if (gameServerCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGameServerCluster()); - } - if (previewTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPreviewTime()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest other = - (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getGameServerClusterId().equals(other.getGameServerClusterId())) return false; - if (hasGameServerCluster() != other.hasGameServerCluster()) return false; - if (hasGameServerCluster()) { - if (!getGameServerCluster().equals(other.getGameServerCluster())) return false; - } - if (hasPreviewTime() != other.hasPreviewTime()) return false; - if (hasPreviewTime()) { - if (!getPreviewTime().equals(other.getPreviewTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + GAME_SERVER_CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getGameServerClusterId().hashCode(); - if (hasGameServerCluster()) { - hash = (37 * hash) + GAME_SERVER_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getGameServerCluster().hashCode(); - } - if (hasPreviewTime()) { - hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; - hash = (53 * hash) + getPreviewTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerClustersService.PreviewCreateGameServerCluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - gameServerClusterId_ = ""; - - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = null; - } else { - gameServerCluster_ = null; - gameServerClusterBuilder_ = null; - } - if (previewTimeBuilder_ == null) { - previewTime_ = null; - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest build() { - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest result = - new com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest(this); - result.parent_ = parent_; - result.gameServerClusterId_ = gameServerClusterId_; - if (gameServerClusterBuilder_ == null) { - result.gameServerCluster_ = gameServerCluster_; - } else { - result.gameServerCluster_ = gameServerClusterBuilder_.build(); - } - if (previewTimeBuilder_ == null) { - result.previewTime_ = previewTime_; - } else { - result.previewTime_ = previewTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getGameServerClusterId().isEmpty()) { - gameServerClusterId_ = other.gameServerClusterId_; - onChanged(); - } - if (other.hasGameServerCluster()) { - mergeGameServerCluster(other.getGameServerCluster()); - } - if (other.hasPreviewTime()) { - mergePreviewTime(other.getPreviewTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource name, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm-id}`.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object gameServerClusterId_ = ""; - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The gameServerClusterId. - */ - public java.lang.String getGameServerClusterId() { - java.lang.Object ref = gameServerClusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerClusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for gameServerClusterId. - */ - public com.google.protobuf.ByteString getGameServerClusterIdBytes() { - java.lang.Object ref = gameServerClusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerClusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The gameServerClusterId to set. - * @return This builder for chaining. - */ - public Builder setGameServerClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameServerClusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearGameServerClusterId() { - - gameServerClusterId_ = getDefaultInstance().getGameServerClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the game server cluster resource to be created.
-     * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for gameServerClusterId to set. - * @return This builder for chaining. - */ - public Builder setGameServerClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameServerClusterId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - gameServerClusterBuilder_; - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - public boolean hasGameServerCluster() { - return gameServerClusterBuilder_ != null || gameServerCluster_ != null; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { - if (gameServerClusterBuilder_ == null) { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } else { - return gameServerClusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gameServerCluster_ = value; - onChanged(); - } else { - gameServerClusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerCluster( - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = builderForValue.build(); - onChanged(); - } else { - gameServerClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClusterBuilder_ == null) { - if (gameServerCluster_ != null) { - gameServerCluster_ = - com.google.cloud.gaming.v1alpha.GameServerCluster.newBuilder(gameServerCluster_) - .mergeFrom(value) - .buildPartial(); - } else { - gameServerCluster_ = value; - } - onChanged(); - } else { - gameServerClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGameServerCluster() { - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = null; - onChanged(); - } else { - gameServerCluster_ = null; - gameServerClusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerClusterBuilder() { - - onChanged(); - return getGameServerClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder - getGameServerClusterOrBuilder() { - if (gameServerClusterBuilder_ != null) { - return gameServerClusterBuilder_.getMessageOrBuilder(); - } else { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } - } - /** - * - * - *
-     * Required. The game server cluster resource to be created.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - getGameServerClusterFieldBuilder() { - if (gameServerClusterBuilder_ == null) { - gameServerClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder>( - getGameServerCluster(), getParentForChildren(), isClean()); - gameServerCluster_ = null; - } - return gameServerClusterBuilder_; - } - - private com.google.protobuf.Timestamp previewTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - previewTimeBuilder_; - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTimeBuilder_ != null || previewTime_ != null; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - if (previewTimeBuilder_ == null) { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } else { - return previewTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - previewTime_ = value; - onChanged(); - } else { - previewTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (previewTimeBuilder_ == null) { - previewTime_ = builderForValue.build(); - onChanged(); - } else { - previewTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (previewTime_ != null) { - previewTime_ = - com.google.protobuf.Timestamp.newBuilder(previewTime_) - .mergeFrom(value) - .buildPartial(); - } else { - previewTime_ = value; - } - onChanged(); - } else { - previewTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPreviewTime() { - if (previewTimeBuilder_ == null) { - previewTime_ = null; - onChanged(); - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { - - onChanged(); - return getPreviewTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - if (previewTimeBuilder_ != null) { - return previewTimeBuilder_.getMessageOrBuilder(); - } else { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getPreviewTimeFieldBuilder() { - if (previewTimeBuilder_ == null) { - previewTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getPreviewTime(), getParentForChildren(), isClean()); - previewTime_ = null; - } - return previewTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) - private static final com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewCreateGameServerClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewCreateGameServerClusterRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequestOrBuilder.java deleted file mode 100644 index 2fe11d2c..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequestOrBuilder.java +++ /dev/null @@ -1,156 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewCreateGameServerClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm-id}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ID of the game server cluster resource to be created.
-   * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The gameServerClusterId. - */ - java.lang.String getGameServerClusterId(); - /** - * - * - *
-   * Required. The ID of the game server cluster resource to be created.
-   * 
- * - * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for gameServerClusterId. - */ - com.google.protobuf.ByteString getGameServerClusterIdBytes(); - - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - boolean hasGameServerCluster(); - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster(); - /** - * - * - *
-   * Required. The game server cluster resource to be created.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder(); - - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - boolean hasPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - com.google.protobuf.Timestamp getPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponse.java deleted file mode 100644 index ba82a27b..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponse.java +++ /dev/null @@ -1,1221 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for
- * GameServerClustersService.PreviewCreateGameServerCluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse} - */ -public final class PreviewCreateGameServerClusterResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) - PreviewCreateGameServerClusterResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewCreateGameServerClusterResponse.newBuilder() to construct. - private PreviewCreateGameServerClusterResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewCreateGameServerClusterResponse() { - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewCreateGameServerClusterResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewCreateGameServerClusterResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.DeployedState.Builder subBuilder = null; - if (deployedState_ != null) { - subBuilder = deployedState_.toBuilder(); - } - deployedState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployedState_); - deployedState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; - if (targetState_ != null) { - subBuilder = targetState_.toBuilder(); - } - targetState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetState_); - targetState_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.class, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.Builder.class); - } - - public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedState_ != null; - } - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - return getDeployedState(); - } - - public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_STATE_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetState_ != null; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - return getTargetState(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (deployedState_ != null) { - output.writeMessage(1, getDeployedState()); - } - if (!getEtagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); - } - if (targetState_ != null) { - output.writeMessage(3, getTargetState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (deployedState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); - } - if (!getEtagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); - } - if (targetState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse other = - (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) obj; - - if (hasDeployedState() != other.hasDeployedState()) return false; - if (hasDeployedState()) { - if (!getDeployedState().equals(other.getDeployedState())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasTargetState() != other.hasTargetState()) return false; - if (hasTargetState()) { - if (!getTargetState().equals(other.getTargetState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDeployedState()) { - hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; - hash = (53 * hash) + getDeployedState().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasTargetState()) { - hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; - hash = (53 * hash) + getTargetState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for
-   * GameServerClustersService.PreviewCreateGameServerCluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.class, - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (deployedStateBuilder_ == null) { - deployedState_ = null; - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - etag_ = ""; - - if (targetStateBuilder_ == null) { - targetState_ = null; - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse build() { - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse result = - new com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse(this); - if (deployedStateBuilder_ == null) { - result.deployedState_ = deployedState_; - } else { - result.deployedState_ = deployedStateBuilder_.build(); - } - result.etag_ = etag_; - if (targetStateBuilder_ == null) { - result.targetState_ = targetState_; - } else { - result.targetState_ = targetStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse other) { - if (other - == com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - .getDefaultInstance()) return this; - if (other.hasDeployedState()) { - mergeDeployedState(other.getDeployedState()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (other.hasTargetState()) { - mergeTargetState(other.getTargetState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - deployedStateBuilder_; - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedStateBuilder_ != null || deployedState_ != null; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - if (deployedStateBuilder_ == null) { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } else { - return deployedStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deployedState_ = value; - onChanged(); - } else { - deployedStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState( - com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { - if (deployedStateBuilder_ == null) { - deployedState_ = builderForValue.build(); - onChanged(); - } else { - deployedStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (deployedState_ != null) { - deployedState_ = - com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) - .mergeFrom(value) - .buildPartial(); - } else { - deployedState_ = value; - } - onChanged(); - } else { - deployedStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearDeployedState() { - if (deployedStateBuilder_ == null) { - deployedState_ = null; - onChanged(); - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { - - onChanged(); - return getDeployedStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - if (deployedStateBuilder_ != null) { - return deployedStateBuilder_.getMessageOrBuilder(); - } else { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - getDeployedStateFieldBuilder() { - if (deployedStateBuilder_ == null) { - deployedStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( - getDeployedState(), getParentForChildren(), isClean()); - deployedState_ = null; - } - return deployedStateBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - targetStateBuilder_; - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetStateBuilder_ != null || targetState_ != null; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - if (targetStateBuilder_ == null) { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } else { - return targetStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetState_ = value; - onChanged(); - } else { - targetStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder setTargetState( - com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { - if (targetStateBuilder_ == null) { - targetState_ = builderForValue.build(); - onChanged(); - } else { - targetStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (targetState_ != null) { - targetState_ = - com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) - .mergeFrom(value) - .buildPartial(); - } else { - targetState_ = value; - } - onChanged(); - } else { - targetStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder clearTargetState() { - if (targetStateBuilder_ == null) { - targetState_ = null; - onChanged(); - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { - - onChanged(); - return getTargetStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - if (targetStateBuilder_ != null) { - return targetStateBuilder_.getMessageOrBuilder(); - } else { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - getTargetStateFieldBuilder() { - if (targetStateBuilder_ == null) { - targetStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( - getTargetState(), getParentForChildren(), isClean()); - targetState_ = null; - } - return targetStateBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) - private static final com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewCreateGameServerClusterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewCreateGameServerClusterResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponseOrBuilder.java deleted file mode 100644 index b35e136c..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponseOrBuilder.java +++ /dev/null @@ -1,123 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewCreateGameServerClusterResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - boolean hasDeployedState(); - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); - - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - boolean hasTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - com.google.cloud.gaming.v1alpha.TargetState getTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequest.java deleted file mode 100644 index c8bb1565..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequest.java +++ /dev/null @@ -1,938 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerClustersService.PreviewDeleteGameServerCluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest} - */ -public final class PreviewDeleteGameServerClusterRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) - PreviewDeleteGameServerClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewDeleteGameServerClusterRequest.newBuilder() to construct. - private PreviewDeleteGameServerClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewDeleteGameServerClusterRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewDeleteGameServerClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewDeleteGameServerClusterRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (previewTime_ != null) { - subBuilder = previewTime_.toBuilder(); - } - previewTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(previewTime_); - previewTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREVIEW_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp previewTime_; - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTime_ != null; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - return getPreviewTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (previewTime_ != null) { - output.writeMessage(2, getPreviewTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (previewTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPreviewTime()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest other = - (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasPreviewTime() != other.hasPreviewTime()) return false; - if (hasPreviewTime()) { - if (!getPreviewTime().equals(other.getPreviewTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasPreviewTime()) { - hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; - hash = (53 * hash) + getPreviewTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerClustersService.PreviewDeleteGameServerCluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (previewTimeBuilder_ == null) { - previewTime_ = null; - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest build() { - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest result = - new com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest(this); - result.name_ = name_; - if (previewTimeBuilder_ == null) { - result.previewTime_ = previewTime_; - } else { - result.previewTime_ = previewTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasPreviewTime()) { - mergePreviewTime(other.getPreviewTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp previewTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - previewTimeBuilder_; - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTimeBuilder_ != null || previewTime_ != null; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - if (previewTimeBuilder_ == null) { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } else { - return previewTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - previewTime_ = value; - onChanged(); - } else { - previewTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (previewTimeBuilder_ == null) { - previewTime_ = builderForValue.build(); - onChanged(); - } else { - previewTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (previewTime_ != null) { - previewTime_ = - com.google.protobuf.Timestamp.newBuilder(previewTime_) - .mergeFrom(value) - .buildPartial(); - } else { - previewTime_ = value; - } - onChanged(); - } else { - previewTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPreviewTime() { - if (previewTimeBuilder_ == null) { - previewTime_ = null; - onChanged(); - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { - - onChanged(); - return getPreviewTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - if (previewTimeBuilder_ != null) { - return previewTimeBuilder_.getMessageOrBuilder(); - } else { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getPreviewTimeFieldBuilder() { - if (previewTimeBuilder_ == null) { - previewTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getPreviewTime(), getParentForChildren(), isClean()); - previewTime_ = null; - } - return previewTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) - private static final com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewDeleteGameServerClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewDeleteGameServerClusterRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequestOrBuilder.java deleted file mode 100644 index 74343b68..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequestOrBuilder.java +++ /dev/null @@ -1,90 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewDeleteGameServerClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - boolean hasPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - com.google.protobuf.Timestamp getPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponse.java deleted file mode 100644 index a4bb73b9..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponse.java +++ /dev/null @@ -1,1221 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for
- * GameServerClustersService.PreviewDeleteGameServerCluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse} - */ -public final class PreviewDeleteGameServerClusterResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) - PreviewDeleteGameServerClusterResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewDeleteGameServerClusterResponse.newBuilder() to construct. - private PreviewDeleteGameServerClusterResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewDeleteGameServerClusterResponse() { - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewDeleteGameServerClusterResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewDeleteGameServerClusterResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.DeployedState.Builder subBuilder = null; - if (deployedState_ != null) { - subBuilder = deployedState_.toBuilder(); - } - deployedState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployedState_); - deployedState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; - if (targetState_ != null) { - subBuilder = targetState_.toBuilder(); - } - targetState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetState_); - targetState_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.class, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.Builder.class); - } - - public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedState_ != null; - } - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - return getDeployedState(); - } - - public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_STATE_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetState_ != null; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - return getTargetState(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (deployedState_ != null) { - output.writeMessage(1, getDeployedState()); - } - if (!getEtagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); - } - if (targetState_ != null) { - output.writeMessage(3, getTargetState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (deployedState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); - } - if (!getEtagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); - } - if (targetState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse other = - (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) obj; - - if (hasDeployedState() != other.hasDeployedState()) return false; - if (hasDeployedState()) { - if (!getDeployedState().equals(other.getDeployedState())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasTargetState() != other.hasTargetState()) return false; - if (hasTargetState()) { - if (!getTargetState().equals(other.getTargetState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDeployedState()) { - hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; - hash = (53 * hash) + getDeployedState().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasTargetState()) { - hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; - hash = (53 * hash) + getTargetState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for
-   * GameServerClustersService.PreviewDeleteGameServerCluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.class, - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (deployedStateBuilder_ == null) { - deployedState_ = null; - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - etag_ = ""; - - if (targetStateBuilder_ == null) { - targetState_ = null; - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse build() { - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse result = - new com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse(this); - if (deployedStateBuilder_ == null) { - result.deployedState_ = deployedState_; - } else { - result.deployedState_ = deployedStateBuilder_.build(); - } - result.etag_ = etag_; - if (targetStateBuilder_ == null) { - result.targetState_ = targetState_; - } else { - result.targetState_ = targetStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse other) { - if (other - == com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - .getDefaultInstance()) return this; - if (other.hasDeployedState()) { - mergeDeployedState(other.getDeployedState()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (other.hasTargetState()) { - mergeTargetState(other.getTargetState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - deployedStateBuilder_; - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedStateBuilder_ != null || deployedState_ != null; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - if (deployedStateBuilder_ == null) { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } else { - return deployedStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deployedState_ = value; - onChanged(); - } else { - deployedStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState( - com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { - if (deployedStateBuilder_ == null) { - deployedState_ = builderForValue.build(); - onChanged(); - } else { - deployedStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (deployedState_ != null) { - deployedState_ = - com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) - .mergeFrom(value) - .buildPartial(); - } else { - deployedState_ = value; - } - onChanged(); - } else { - deployedStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearDeployedState() { - if (deployedStateBuilder_ == null) { - deployedState_ = null; - onChanged(); - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { - - onChanged(); - return getDeployedStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - if (deployedStateBuilder_ != null) { - return deployedStateBuilder_.getMessageOrBuilder(); - } else { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - getDeployedStateFieldBuilder() { - if (deployedStateBuilder_ == null) { - deployedStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( - getDeployedState(), getParentForChildren(), isClean()); - deployedState_ = null; - } - return deployedStateBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - targetStateBuilder_; - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetStateBuilder_ != null || targetState_ != null; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - if (targetStateBuilder_ == null) { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } else { - return targetStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetState_ = value; - onChanged(); - } else { - targetStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder setTargetState( - com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { - if (targetStateBuilder_ == null) { - targetState_ = builderForValue.build(); - onChanged(); - } else { - targetStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (targetState_ != null) { - targetState_ = - com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) - .mergeFrom(value) - .buildPartial(); - } else { - targetState_ = value; - } - onChanged(); - } else { - targetStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder clearTargetState() { - if (targetStateBuilder_ == null) { - targetState_ = null; - onChanged(); - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { - - onChanged(); - return getTargetStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - if (targetStateBuilder_ != null) { - return targetStateBuilder_.getMessageOrBuilder(); - } else { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - getTargetStateFieldBuilder() { - if (targetStateBuilder_ == null) { - targetStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( - getTargetState(), getParentForChildren(), isClean()); - targetState_ = null; - } - return targetStateBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) - private static final com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewDeleteGameServerClusterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewDeleteGameServerClusterResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponseOrBuilder.java deleted file mode 100644 index 488f4f49..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponseOrBuilder.java +++ /dev/null @@ -1,123 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewDeleteGameServerClusterResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - boolean hasDeployedState(); - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); - - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - boolean hasTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - com.google.cloud.gaming.v1alpha.TargetState getTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequest.java deleted file mode 100644 index 4190566d..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequest.java +++ /dev/null @@ -1,1417 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for PreviewGameServerDeploymentRollout.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest} - */ -public final class PreviewGameServerDeploymentRolloutRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) - PreviewGameServerDeploymentRolloutRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewGameServerDeploymentRolloutRequest.newBuilder() to construct. - private PreviewGameServerDeploymentRolloutRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewGameServerDeploymentRolloutRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewGameServerDeploymentRolloutRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewGameServerDeploymentRolloutRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder subBuilder = null; - if (rollout_ != null) { - subBuilder = rollout_.toBuilder(); - } - rollout_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rollout_); - rollout_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (previewTime_ != null) { - subBuilder = previewTime_.toBuilder(); - } - previewTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(previewTime_); - previewTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.class, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.Builder - .class); - } - - public static final int ROLLOUT_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout_; - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the rollout field is set. - */ - public boolean hasRollout() { - return rollout_ != null; - } - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The rollout. - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout() { - return rollout_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() - : rollout_; - } - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder - getRolloutOrBuilder() { - return getRollout(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int PREVIEW_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp previewTime_; - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed. If
-   * unspecified, defaults to the time after the suggested rollout finishes.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTime_ != null; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed. If
-   * unspecified, defaults to the time after the suggested rollout finishes.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed. If
-   * unspecified, defaults to the time after the suggested rollout finishes.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - return getPreviewTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (rollout_ != null) { - output.writeMessage(1, getRollout()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - if (previewTime_ != null) { - output.writeMessage(3, getPreviewTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rollout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRollout()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - if (previewTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreviewTime()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest other = - (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) obj; - - if (hasRollout() != other.hasRollout()) return false; - if (hasRollout()) { - if (!getRollout().equals(other.getRollout())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (hasPreviewTime() != other.hasPreviewTime()) return false; - if (hasPreviewTime()) { - if (!getPreviewTime().equals(other.getPreviewTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRollout()) { - hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; - hash = (53 * hash) + getRollout().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - if (hasPreviewTime()) { - hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; - hash = (53 * hash) + getPreviewTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for PreviewGameServerDeploymentRollout.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.class, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (rolloutBuilder_ == null) { - rollout_ = null; - } else { - rollout_ = null; - rolloutBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - if (previewTimeBuilder_ == null) { - previewTime_ = null; - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest build() { - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest - buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest result = - new com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest(this); - if (rolloutBuilder_ == null) { - result.rollout_ = rollout_; - } else { - result.rollout_ = rolloutBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (previewTimeBuilder_ == null) { - result.previewTime_ = previewTime_; - } else { - result.previewTime_ = previewTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest - .getDefaultInstance()) return this; - if (other.hasRollout()) { - mergeRollout(other.getRollout()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.hasPreviewTime()) { - mergePreviewTime(other.getPreviewTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder> - rolloutBuilder_; - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the rollout field is set. - */ - public boolean hasRollout() { - return rolloutBuilder_ != null || rollout_ != null; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The rollout. - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout() { - if (rolloutBuilder_ == null) { - return rollout_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() - : rollout_; - } else { - return rolloutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRollout(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout value) { - if (rolloutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rollout_ = value; - onChanged(); - } else { - rolloutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRollout( - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder builderForValue) { - if (rolloutBuilder_ == null) { - rollout_ = builderForValue.build(); - onChanged(); - } else { - rolloutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRollout(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout value) { - if (rolloutBuilder_ == null) { - if (rollout_ != null) { - rollout_ = - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.newBuilder(rollout_) - .mergeFrom(value) - .buildPartial(); - } else { - rollout_ = value; - } - onChanged(); - } else { - rolloutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRollout() { - if (rolloutBuilder_ == null) { - rollout_ = null; - onChanged(); - } else { - rollout_ = null; - rolloutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder getRolloutBuilder() { - - onChanged(); - return getRolloutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder - getRolloutOrBuilder() { - if (rolloutBuilder_ != null) { - return rolloutBuilder_.getMessageOrBuilder(); - } else { - return rollout_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() - : rollout_; - } - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder> - getRolloutFieldBuilder() { - if (rolloutBuilder_ == null) { - rolloutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder>( - getRollout(), getParentForChildren(), isClean()); - rollout_ = null; - } - return rolloutBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private com.google.protobuf.Timestamp previewTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - previewTimeBuilder_; - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed. If
-     * unspecified, defaults to the time after the suggested rollout finishes.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTimeBuilder_ != null || previewTime_ != null; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed. If
-     * unspecified, defaults to the time after the suggested rollout finishes.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - if (previewTimeBuilder_ == null) { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } else { - return previewTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed. If
-     * unspecified, defaults to the time after the suggested rollout finishes.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - previewTime_ = value; - onChanged(); - } else { - previewTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed. If
-     * unspecified, defaults to the time after the suggested rollout finishes.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (previewTimeBuilder_ == null) { - previewTime_ = builderForValue.build(); - onChanged(); - } else { - previewTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed. If
-     * unspecified, defaults to the time after the suggested rollout finishes.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (previewTime_ != null) { - previewTime_ = - com.google.protobuf.Timestamp.newBuilder(previewTime_) - .mergeFrom(value) - .buildPartial(); - } else { - previewTime_ = value; - } - onChanged(); - } else { - previewTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed. If
-     * unspecified, defaults to the time after the suggested rollout finishes.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPreviewTime() { - if (previewTimeBuilder_ == null) { - previewTime_ = null; - onChanged(); - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed. If
-     * unspecified, defaults to the time after the suggested rollout finishes.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { - - onChanged(); - return getPreviewTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed. If
-     * unspecified, defaults to the time after the suggested rollout finishes.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - if (previewTimeBuilder_ != null) { - return previewTimeBuilder_.getMessageOrBuilder(); - } else { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed. If
-     * unspecified, defaults to the time after the suggested rollout finishes.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getPreviewTimeFieldBuilder() { - if (previewTimeBuilder_ == null) { - previewTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getPreviewTime(), getParentForChildren(), isClean()); - previewTime_ = null; - } - return previewTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) - private static final com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewGameServerDeploymentRolloutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewGameServerDeploymentRolloutRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequestOrBuilder.java deleted file mode 100644 index 9d83a01e..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequestOrBuilder.java +++ /dev/null @@ -1,160 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewGameServerDeploymentRolloutRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the rollout field is set. - */ - boolean hasRollout(); - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The rollout. - */ - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout(); - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder getRolloutOrBuilder(); - - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed. If
-   * unspecified, defaults to the time after the suggested rollout finishes.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - boolean hasPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed. If
-   * unspecified, defaults to the time after the suggested rollout finishes.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - com.google.protobuf.Timestamp getPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed. If
-   * unspecified, defaults to the time after the suggested rollout finishes.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponse.java deleted file mode 100644 index 894a482a..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponse.java +++ /dev/null @@ -1,1514 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for PreviewGameServerDeploymentRollout.
- * This has details about the fleet and the autoscaler.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse} - */ -public final class PreviewGameServerDeploymentRolloutResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) - PreviewGameServerDeploymentRolloutResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewGameServerDeploymentRolloutResponse.newBuilder() to construct. - private PreviewGameServerDeploymentRolloutResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewGameServerDeploymentRolloutResponse() { - unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewGameServerDeploymentRolloutResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewGameServerDeploymentRolloutResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.DeployedState.Builder subBuilder = null; - if (deployedState_ != null) { - subBuilder = deployedState_.toBuilder(); - } - deployedState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployedState_); - deployedState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - unavailable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - unavailable_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 34: - { - com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; - if (targetState_ != null) { - subBuilder = targetState_.toBuilder(); - } - targetState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetState_); - targetState_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - unavailable_ = unavailable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.class, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.Builder - .class); - } - - public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedState_ != null; - } - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - return getDeployedState(); - } - - public static final int UNAVAILABLE_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList unavailable_; - /** - * - * - *
-   * Locations that could not be reached on this request.
-   * 
- * - * repeated string unavailable = 2; - * - * @return A list containing the unavailable. - */ - public com.google.protobuf.ProtocolStringList getUnavailableList() { - return unavailable_; - } - /** - * - * - *
-   * Locations that could not be reached on this request.
-   * 
- * - * repeated string unavailable = 2; - * - * @return The count of unavailable. - */ - public int getUnavailableCount() { - return unavailable_.size(); - } - /** - * - * - *
-   * Locations that could not be reached on this request.
-   * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the element to return. - * @return The unavailable at the given index. - */ - public java.lang.String getUnavailable(int index) { - return unavailable_.get(index); - } - /** - * - * - *
-   * Locations that could not be reached on this request.
-   * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the value to return. - * @return The bytes of the unavailable at the given index. - */ - public com.google.protobuf.ByteString getUnavailableBytes(int index) { - return unavailable_.getByteString(index); - } - - public static final int ETAG_FIELD_NUMBER = 3; - private volatile java.lang.Object etag_; - /** - * - * - *
-   * ETag of the game server deployment.
-   * 
- * - * string etag = 3; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * ETag of the game server deployment.
-   * 
- * - * string etag = 3; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_STATE_FIELD_NUMBER = 4; - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetState_ != null; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - return getTargetState(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (deployedState_ != null) { - output.writeMessage(1, getDeployedState()); - } - for (int i = 0; i < unavailable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unavailable_.getRaw(i)); - } - if (!getEtagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); - } - if (targetState_ != null) { - output.writeMessage(4, getTargetState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (deployedState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); - } - { - int dataSize = 0; - for (int i = 0; i < unavailable_.size(); i++) { - dataSize += computeStringSizeNoTag(unavailable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnavailableList().size(); - } - if (!getEtagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); - } - if (targetState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTargetState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse other = - (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) obj; - - if (hasDeployedState() != other.hasDeployedState()) return false; - if (hasDeployedState()) { - if (!getDeployedState().equals(other.getDeployedState())) return false; - } - if (!getUnavailableList().equals(other.getUnavailableList())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (hasTargetState() != other.hasTargetState()) return false; - if (hasTargetState()) { - if (!getTargetState().equals(other.getTargetState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDeployedState()) { - hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; - hash = (53 * hash) + getDeployedState().hashCode(); - } - if (getUnavailableCount() > 0) { - hash = (37 * hash) + UNAVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnavailableList().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasTargetState()) { - hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; - hash = (53 * hash) + getTargetState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for PreviewGameServerDeploymentRollout.
-   * This has details about the fleet and the autoscaler.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.class, - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.Builder - .class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (deployedStateBuilder_ == null) { - deployedState_ = null; - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - etag_ = ""; - - if (targetStateBuilder_ == null) { - targetState_ = null; - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse build() { - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse result = - new com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse(this); - int from_bitField0_ = bitField0_; - if (deployedStateBuilder_ == null) { - result.deployedState_ = deployedState_; - } else { - result.deployedState_ = deployedStateBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - unavailable_ = unavailable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.unavailable_ = unavailable_; - result.etag_ = etag_; - if (targetStateBuilder_ == null) { - result.targetState_ = targetState_; - } else { - result.targetState_ = targetStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse other) { - if (other - == com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - .getDefaultInstance()) return this; - if (other.hasDeployedState()) { - mergeDeployedState(other.getDeployedState()); - } - if (!other.unavailable_.isEmpty()) { - if (unavailable_.isEmpty()) { - unavailable_ = other.unavailable_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUnavailableIsMutable(); - unavailable_.addAll(other.unavailable_); - } - onChanged(); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (other.hasTargetState()) { - mergeTargetState(other.getTargetState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - deployedStateBuilder_; - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedStateBuilder_ != null || deployedState_ != null; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - if (deployedStateBuilder_ == null) { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } else { - return deployedStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deployedState_ = value; - onChanged(); - } else { - deployedStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState( - com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { - if (deployedStateBuilder_ == null) { - deployedState_ = builderForValue.build(); - onChanged(); - } else { - deployedStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (deployedState_ != null) { - deployedState_ = - com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) - .mergeFrom(value) - .buildPartial(); - } else { - deployedState_ = value; - } - onChanged(); - } else { - deployedStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearDeployedState() { - if (deployedStateBuilder_ == null) { - deployedState_ = null; - onChanged(); - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { - - onChanged(); - return getDeployedStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - if (deployedStateBuilder_ != null) { - return deployedStateBuilder_.getMessageOrBuilder(); - } else { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - getDeployedStateFieldBuilder() { - if (deployedStateBuilder_ == null) { - deployedStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( - getDeployedState(), getParentForChildren(), isClean()); - deployedState_ = null; - } - return deployedStateBuilder_; - } - - private com.google.protobuf.LazyStringList unavailable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnavailableIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - unavailable_ = new com.google.protobuf.LazyStringArrayList(unavailable_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Locations that could not be reached on this request.
-     * 
- * - * repeated string unavailable = 2; - * - * @return A list containing the unavailable. - */ - public com.google.protobuf.ProtocolStringList getUnavailableList() { - return unavailable_.getUnmodifiableView(); - } - /** - * - * - *
-     * Locations that could not be reached on this request.
-     * 
- * - * repeated string unavailable = 2; - * - * @return The count of unavailable. - */ - public int getUnavailableCount() { - return unavailable_.size(); - } - /** - * - * - *
-     * Locations that could not be reached on this request.
-     * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the element to return. - * @return The unavailable at the given index. - */ - public java.lang.String getUnavailable(int index) { - return unavailable_.get(index); - } - /** - * - * - *
-     * Locations that could not be reached on this request.
-     * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the value to return. - * @return The bytes of the unavailable at the given index. - */ - public com.google.protobuf.ByteString getUnavailableBytes(int index) { - return unavailable_.getByteString(index); - } - /** - * - * - *
-     * Locations that could not be reached on this request.
-     * 
- * - * repeated string unavailable = 2; - * - * @param index The index to set the value at. - * @param value The unavailable to set. - * @return This builder for chaining. - */ - public Builder setUnavailable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnavailableIsMutable(); - unavailable_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Locations that could not be reached on this request.
-     * 
- * - * repeated string unavailable = 2; - * - * @param value The unavailable to add. - * @return This builder for chaining. - */ - public Builder addUnavailable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnavailableIsMutable(); - unavailable_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Locations that could not be reached on this request.
-     * 
- * - * repeated string unavailable = 2; - * - * @param values The unavailable to add. - * @return This builder for chaining. - */ - public Builder addAllUnavailable(java.lang.Iterable values) { - ensureUnavailableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unavailable_); - onChanged(); - return this; - } - /** - * - * - *
-     * Locations that could not be reached on this request.
-     * 
- * - * repeated string unavailable = 2; - * - * @return This builder for chaining. - */ - public Builder clearUnavailable() { - unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Locations that could not be reached on this request.
-     * 
- * - * repeated string unavailable = 2; - * - * @param value The bytes of the unavailable to add. - * @return This builder for chaining. - */ - public Builder addUnavailableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnavailableIsMutable(); - unavailable_.add(value); - onChanged(); - return this; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * ETag of the game server deployment.
-     * 
- * - * string etag = 3; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * ETag of the game server deployment.
-     * 
- * - * string etag = 3; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * ETag of the game server deployment.
-     * 
- * - * string etag = 3; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the game server deployment.
-     * 
- * - * string etag = 3; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the game server deployment.
-     * 
- * - * string etag = 3; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - targetStateBuilder_; - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetStateBuilder_ != null || targetState_ != null; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - if (targetStateBuilder_ == null) { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } else { - return targetStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - */ - public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetState_ = value; - onChanged(); - } else { - targetStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - */ - public Builder setTargetState( - com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { - if (targetStateBuilder_ == null) { - targetState_ = builderForValue.build(); - onChanged(); - } else { - targetStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - */ - public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (targetState_ != null) { - targetState_ = - com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) - .mergeFrom(value) - .buildPartial(); - } else { - targetState_ = value; - } - onChanged(); - } else { - targetStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - */ - public Builder clearTargetState() { - if (targetStateBuilder_ == null) { - targetState_ = null; - onChanged(); - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - */ - public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { - - onChanged(); - return getTargetStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - if (targetStateBuilder_ != null) { - return targetStateBuilder_.getMessageOrBuilder(); - } else { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - getTargetStateFieldBuilder() { - if (targetStateBuilder_ == null) { - targetStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( - getTargetState(), getParentForChildren(), isClean()); - targetState_ = null; - } - return targetStateBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) - private static final com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewGameServerDeploymentRolloutResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewGameServerDeploymentRolloutResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponseOrBuilder.java deleted file mode 100644 index 366a943d..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponseOrBuilder.java +++ /dev/null @@ -1,174 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewGameServerDeploymentRolloutResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - boolean hasDeployedState(); - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); - - /** - * - * - *
-   * Locations that could not be reached on this request.
-   * 
- * - * repeated string unavailable = 2; - * - * @return A list containing the unavailable. - */ - java.util.List getUnavailableList(); - /** - * - * - *
-   * Locations that could not be reached on this request.
-   * 
- * - * repeated string unavailable = 2; - * - * @return The count of unavailable. - */ - int getUnavailableCount(); - /** - * - * - *
-   * Locations that could not be reached on this request.
-   * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the element to return. - * @return The unavailable at the given index. - */ - java.lang.String getUnavailable(int index); - /** - * - * - *
-   * Locations that could not be reached on this request.
-   * 
- * - * repeated string unavailable = 2; - * - * @param index The index of the value to return. - * @return The bytes of the unavailable at the given index. - */ - com.google.protobuf.ByteString getUnavailableBytes(int index); - - /** - * - * - *
-   * ETag of the game server deployment.
-   * 
- * - * string etag = 3; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * ETag of the game server deployment.
-   * 
- * - * string etag = 3; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - * - * @return Whether the targetState field is set. - */ - boolean hasTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - * - * @return The targetState. - */ - com.google.cloud.gaming.v1alpha.TargetState getTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 4; - */ - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequest.java deleted file mode 100644 index 1380bba2..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequest.java +++ /dev/null @@ -1,1361 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for RealmsService.PreviewRealmUpdate.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest} - */ -public final class PreviewRealmUpdateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) - PreviewRealmUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewRealmUpdateRequest.newBuilder() to construct. - private PreviewRealmUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewRealmUpdateRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewRealmUpdateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewRealmUpdateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.Realm.Builder subBuilder = null; - if (realm_ != null) { - subBuilder = realm_.toBuilder(); - } - realm_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.Realm.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(realm_); - realm_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (previewTime_ != null) { - subBuilder = previewTime_.toBuilder(); - } - previewTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(previewTime_); - previewTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.class, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.Builder.class); - } - - public static final int REALM_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.Realm realm_; - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the realm field is set. - */ - public boolean hasRealm() { - return realm_ != null; - } - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The realm. - */ - public com.google.cloud.gaming.v1alpha.Realm getRealm() { - return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; - } - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { - return getRealm(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int PREVIEW_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp previewTime_; - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTime_ != null; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - return getPreviewTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (realm_ != null) { - output.writeMessage(1, getRealm()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - if (previewTime_ != null) { - output.writeMessage(3, getPreviewTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (realm_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRealm()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - if (previewTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreviewTime()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest other = - (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) obj; - - if (hasRealm() != other.hasRealm()) return false; - if (hasRealm()) { - if (!getRealm().equals(other.getRealm())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (hasPreviewTime() != other.hasPreviewTime()) return false; - if (hasPreviewTime()) { - if (!getPreviewTime().equals(other.getPreviewTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRealm()) { - hash = (37 * hash) + REALM_FIELD_NUMBER; - hash = (53 * hash) + getRealm().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - if (hasPreviewTime()) { - hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; - hash = (53 * hash) + getPreviewTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for RealmsService.PreviewRealmUpdate.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.class, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (realmBuilder_ == null) { - realm_ = null; - } else { - realm_ = null; - realmBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - if (previewTimeBuilder_ == null) { - previewTime_ = null; - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest build() { - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest result = - new com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest(this); - if (realmBuilder_ == null) { - result.realm_ = realm_; - } else { - result.realm_ = realmBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (previewTimeBuilder_ == null) { - result.previewTime_ = previewTime_; - } else { - result.previewTime_ = previewTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest other) { - if (other == com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.getDefaultInstance()) - return this; - if (other.hasRealm()) { - mergeRealm(other.getRealm()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.hasPreviewTime()) { - mergePreviewTime(other.getPreviewTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.Realm realm_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder> - realmBuilder_; - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the realm field is set. - */ - public boolean hasRealm() { - return realmBuilder_ != null || realm_ != null; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The realm. - */ - public com.google.cloud.gaming.v1alpha.Realm getRealm() { - if (realmBuilder_ == null) { - return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; - } else { - return realmBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm value) { - if (realmBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - realm_ = value; - onChanged(); - } else { - realmBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm.Builder builderForValue) { - if (realmBuilder_ == null) { - realm_ = builderForValue.build(); - onChanged(); - } else { - realmBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRealm(com.google.cloud.gaming.v1alpha.Realm value) { - if (realmBuilder_ == null) { - if (realm_ != null) { - realm_ = - com.google.cloud.gaming.v1alpha.Realm.newBuilder(realm_) - .mergeFrom(value) - .buildPartial(); - } else { - realm_ = value; - } - onChanged(); - } else { - realmBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRealm() { - if (realmBuilder_ == null) { - realm_ = null; - onChanged(); - } else { - realm_ = null; - realmBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.Realm.Builder getRealmBuilder() { - - onChanged(); - return getRealmFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { - if (realmBuilder_ != null) { - return realmBuilder_.getMessageOrBuilder(); - } else { - return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; - } - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder> - getRealmFieldBuilder() { - if (realmBuilder_ == null) { - realmBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder>( - getRealm(), getParentForChildren(), isClean()); - realm_ = null; - } - return realmBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private com.google.protobuf.Timestamp previewTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - previewTimeBuilder_; - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTimeBuilder_ != null || previewTime_ != null; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - if (previewTimeBuilder_ == null) { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } else { - return previewTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - previewTime_ = value; - onChanged(); - } else { - previewTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (previewTimeBuilder_ == null) { - previewTime_ = builderForValue.build(); - onChanged(); - } else { - previewTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (previewTime_ != null) { - previewTime_ = - com.google.protobuf.Timestamp.newBuilder(previewTime_) - .mergeFrom(value) - .buildPartial(); - } else { - previewTime_ = value; - } - onChanged(); - } else { - previewTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPreviewTime() { - if (previewTimeBuilder_ == null) { - previewTime_ = null; - onChanged(); - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { - - onChanged(); - return getPreviewTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - if (previewTimeBuilder_ != null) { - return previewTimeBuilder_.getMessageOrBuilder(); - } else { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getPreviewTimeFieldBuilder() { - if (previewTimeBuilder_ == null) { - previewTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getPreviewTime(), getParentForChildren(), isClean()); - previewTime_ = null; - } - return previewTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) - private static final com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewRealmUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewRealmUpdateRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequestOrBuilder.java deleted file mode 100644 index 8aac8cdb..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequestOrBuilder.java +++ /dev/null @@ -1,154 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewRealmUpdateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the realm field is set. - */ - boolean hasRealm(); - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The realm. - */ - com.google.cloud.gaming.v1alpha.Realm getRealm(); - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder(); - - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - boolean hasPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - com.google.protobuf.Timestamp getPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponse.java deleted file mode 100644 index b1a5ea1c..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponse.java +++ /dev/null @@ -1,1205 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for RealmsService.PreviewRealmUpdate.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse} - */ -public final class PreviewRealmUpdateResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) - PreviewRealmUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewRealmUpdateResponse.newBuilder() to construct. - private PreviewRealmUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewRealmUpdateResponse() { - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewRealmUpdateResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewRealmUpdateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.DeployedState.Builder subBuilder = null; - if (deployedState_ != null) { - subBuilder = deployedState_.toBuilder(); - } - deployedState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployedState_); - deployedState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; - if (targetState_ != null) { - subBuilder = targetState_.toBuilder(); - } - targetState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetState_); - targetState_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.class, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.Builder.class); - } - - public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - /** - * - * - *
-   * The deployment state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedState_ != null; - } - /** - * - * - *
-   * The deployment state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - /** - * - * - *
-   * The deployment state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - return getDeployedState(); - } - - public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; - /** - * - * - *
-   * ETag of the realm.
-   * 
- * - * string etag = 2; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * ETag of the realm.
-   * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_STATE_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetState_ != null; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - return getTargetState(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (deployedState_ != null) { - output.writeMessage(1, getDeployedState()); - } - if (!getEtagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); - } - if (targetState_ != null) { - output.writeMessage(3, getTargetState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (deployedState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); - } - if (!getEtagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); - } - if (targetState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse other = - (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) obj; - - if (hasDeployedState() != other.hasDeployedState()) return false; - if (hasDeployedState()) { - if (!getDeployedState().equals(other.getDeployedState())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasTargetState() != other.hasTargetState()) return false; - if (hasTargetState()) { - if (!getTargetState().equals(other.getTargetState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDeployedState()) { - hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; - hash = (53 * hash) + getDeployedState().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasTargetState()) { - hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; - hash = (53 * hash) + getTargetState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for RealmsService.PreviewRealmUpdate.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.class, - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (deployedStateBuilder_ == null) { - deployedState_ = null; - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - etag_ = ""; - - if (targetStateBuilder_ == null) { - targetState_ = null; - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse build() { - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse result = - new com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse(this); - if (deployedStateBuilder_ == null) { - result.deployedState_ = deployedState_; - } else { - result.deployedState_ = deployedStateBuilder_.build(); - } - result.etag_ = etag_; - if (targetStateBuilder_ == null) { - result.targetState_ = targetState_; - } else { - result.targetState_ = targetStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) { - return mergeFrom((com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse other) { - if (other == com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.getDefaultInstance()) - return this; - if (other.hasDeployedState()) { - mergeDeployedState(other.getDeployedState()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (other.hasTargetState()) { - mergeTargetState(other.getTargetState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - deployedStateBuilder_; - /** - * - * - *
-     * The deployment state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedStateBuilder_ != null || deployedState_ != null; - } - /** - * - * - *
-     * The deployment state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - if (deployedStateBuilder_ == null) { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } else { - return deployedStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The deployment state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deployedState_ = value; - onChanged(); - } else { - deployedStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The deployment state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState( - com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { - if (deployedStateBuilder_ == null) { - deployedState_ = builderForValue.build(); - onChanged(); - } else { - deployedStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The deployment state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (deployedState_ != null) { - deployedState_ = - com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) - .mergeFrom(value) - .buildPartial(); - } else { - deployedState_ = value; - } - onChanged(); - } else { - deployedStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The deployment state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearDeployedState() { - if (deployedStateBuilder_ == null) { - deployedState_ = null; - onChanged(); - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The deployment state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { - - onChanged(); - return getDeployedStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The deployment state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - if (deployedStateBuilder_ != null) { - return deployedStateBuilder_.getMessageOrBuilder(); - } else { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - } - /** - * - * - *
-     * The deployment state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - getDeployedStateFieldBuilder() { - if (deployedStateBuilder_ == null) { - deployedStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( - getDeployedState(), getParentForChildren(), isClean()); - deployedState_ = null; - } - return deployedStateBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * ETag of the realm.
-     * 
- * - * string etag = 2; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * ETag of the realm.
-     * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * ETag of the realm.
-     * 
- * - * string etag = 2; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the realm.
-     * 
- * - * string etag = 2; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the realm.
-     * 
- * - * string etag = 2; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - targetStateBuilder_; - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetStateBuilder_ != null || targetState_ != null; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - if (targetStateBuilder_ == null) { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } else { - return targetStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetState_ = value; - onChanged(); - } else { - targetStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder setTargetState( - com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { - if (targetStateBuilder_ == null) { - targetState_ = builderForValue.build(); - onChanged(); - } else { - targetStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (targetState_ != null) { - targetState_ = - com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) - .mergeFrom(value) - .buildPartial(); - } else { - targetState_ = value; - } - onChanged(); - } else { - targetStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder clearTargetState() { - if (targetStateBuilder_ == null) { - targetState_ = null; - onChanged(); - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { - - onChanged(); - return getTargetStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - if (targetStateBuilder_ != null) { - return targetStateBuilder_.getMessageOrBuilder(); - } else { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - getTargetStateFieldBuilder() { - if (targetStateBuilder_ == null) { - targetStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( - getTargetState(), getParentForChildren(), isClean()); - targetState_ = null; - } - return targetStateBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) - private static final com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewRealmUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewRealmUpdateResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponseOrBuilder.java deleted file mode 100644 index a9c46130..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponseOrBuilder.java +++ /dev/null @@ -1,123 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewRealmUpdateResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The deployment state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - boolean hasDeployedState(); - /** - * - * - *
-   * The deployment state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); - /** - * - * - *
-   * The deployment state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); - - /** - * - * - *
-   * ETag of the realm.
-   * 
- * - * string etag = 2; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * ETag of the realm.
-   * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - boolean hasTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - com.google.cloud.gaming.v1alpha.TargetState getTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequest.java deleted file mode 100644 index 2d5ce0c3..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequest.java +++ /dev/null @@ -1,1396 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerClustersService.UpdateGameServerCluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest} - */ -public final class PreviewUpdateGameServerClusterRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) - PreviewUpdateGameServerClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewUpdateGameServerClusterRequest.newBuilder() to construct. - private PreviewUpdateGameServerClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewUpdateGameServerClusterRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewUpdateGameServerClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewUpdateGameServerClusterRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder subBuilder = null; - if (gameServerCluster_ != null) { - subBuilder = gameServerCluster_.toBuilder(); - } - gameServerCluster_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerCluster.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameServerCluster_); - gameServerCluster_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (previewTime_ != null) { - subBuilder = previewTime_.toBuilder(); - } - previewTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(previewTime_); - previewTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.Builder.class); - } - - public static final int GAME_SERVER_CLUSTER_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - public boolean hasGameServerCluster() { - return gameServerCluster_ != null; - } - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder - getGameServerClusterOrBuilder() { - return getGameServerCluster(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int PREVIEW_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp previewTime_; - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTime_ != null; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; - } - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - return getPreviewTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (gameServerCluster_ != null) { - output.writeMessage(1, getGameServerCluster()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - if (previewTime_ != null) { - output.writeMessage(3, getPreviewTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gameServerCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGameServerCluster()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - if (previewTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreviewTime()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest other = - (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) obj; - - if (hasGameServerCluster() != other.hasGameServerCluster()) return false; - if (hasGameServerCluster()) { - if (!getGameServerCluster().equals(other.getGameServerCluster())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (hasPreviewTime() != other.hasPreviewTime()) return false; - if (hasPreviewTime()) { - if (!getPreviewTime().equals(other.getPreviewTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGameServerCluster()) { - hash = (37 * hash) + GAME_SERVER_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getGameServerCluster().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - if (hasPreviewTime()) { - hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; - hash = (53 * hash) + getPreviewTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerClustersService.UpdateGameServerCluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = null; - } else { - gameServerCluster_ = null; - gameServerClusterBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - if (previewTimeBuilder_ == null) { - previewTime_ = null; - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest build() { - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest result = - new com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest(this); - if (gameServerClusterBuilder_ == null) { - result.gameServerCluster_ = gameServerCluster_; - } else { - result.gameServerCluster_ = gameServerClusterBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (previewTimeBuilder_ == null) { - result.previewTime_ = previewTime_; - } else { - result.previewTime_ = previewTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest - .getDefaultInstance()) return this; - if (other.hasGameServerCluster()) { - mergeGameServerCluster(other.getGameServerCluster()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.hasPreviewTime()) { - mergePreviewTime(other.getPreviewTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - gameServerClusterBuilder_; - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - public boolean hasGameServerCluster() { - return gameServerClusterBuilder_ != null || gameServerCluster_ != null; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { - if (gameServerClusterBuilder_ == null) { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } else { - return gameServerClusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gameServerCluster_ = value; - onChanged(); - } else { - gameServerClusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerCluster( - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = builderForValue.build(); - onChanged(); - } else { - gameServerClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClusterBuilder_ == null) { - if (gameServerCluster_ != null) { - gameServerCluster_ = - com.google.cloud.gaming.v1alpha.GameServerCluster.newBuilder(gameServerCluster_) - .mergeFrom(value) - .buildPartial(); - } else { - gameServerCluster_ = value; - } - onChanged(); - } else { - gameServerClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGameServerCluster() { - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = null; - onChanged(); - } else { - gameServerCluster_ = null; - gameServerClusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerClusterBuilder() { - - onChanged(); - return getGameServerClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder - getGameServerClusterOrBuilder() { - if (gameServerClusterBuilder_ != null) { - return gameServerClusterBuilder_.getMessageOrBuilder(); - } else { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - getGameServerClusterFieldBuilder() { - if (gameServerClusterBuilder_ == null) { - gameServerClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder>( - getGameServerCluster(), getParentForChildren(), isClean()); - gameServerCluster_ = null; - } - return gameServerClusterBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private com.google.protobuf.Timestamp previewTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - previewTimeBuilder_; - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - public boolean hasPreviewTime() { - return previewTimeBuilder_ != null || previewTime_ != null; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - public com.google.protobuf.Timestamp getPreviewTime() { - if (previewTimeBuilder_ == null) { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } else { - return previewTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - previewTime_ = value; - onChanged(); - } else { - previewTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (previewTimeBuilder_ == null) { - previewTime_ = builderForValue.build(); - onChanged(); - } else { - previewTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { - if (previewTimeBuilder_ == null) { - if (previewTime_ != null) { - previewTime_ = - com.google.protobuf.Timestamp.newBuilder(previewTime_) - .mergeFrom(value) - .buildPartial(); - } else { - previewTime_ = value; - } - onChanged(); - } else { - previewTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPreviewTime() { - if (previewTimeBuilder_ == null) { - previewTime_ = null; - onChanged(); - } else { - previewTime_ = null; - previewTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { - - onChanged(); - return getPreviewTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { - if (previewTimeBuilder_ != null) { - return previewTimeBuilder_.getMessageOrBuilder(); - } else { - return previewTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : previewTime_; - } - } - /** - * - * - *
-     * Optional. The instant of time at which the preview needs to be computed.
-     * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getPreviewTimeFieldBuilder() { - if (previewTimeBuilder_ == null) { - previewTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getPreviewTime(), getParentForChildren(), isClean()); - previewTime_ = null; - } - return previewTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) - private static final com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewUpdateGameServerClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewUpdateGameServerClusterRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequestOrBuilder.java deleted file mode 100644 index ce3c9094..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequestOrBuilder.java +++ /dev/null @@ -1,157 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewUpdateGameServerClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - boolean hasGameServerCluster(); - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster(); - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder(); - - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the previewTime field is set. - */ - boolean hasPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The previewTime. - */ - com.google.protobuf.Timestamp getPreviewTime(); - /** - * - * - *
-   * Optional. The instant of time at which the preview needs to be computed.
-   * 
- * - * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponse.java deleted file mode 100644 index bc8c8970..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponse.java +++ /dev/null @@ -1,1219 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for GameServerClustersService.PreviewUpdateGameServerCluster
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse} - */ -public final class PreviewUpdateGameServerClusterResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) - PreviewUpdateGameServerClusterResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreviewUpdateGameServerClusterResponse.newBuilder() to construct. - private PreviewUpdateGameServerClusterResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PreviewUpdateGameServerClusterResponse() { - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PreviewUpdateGameServerClusterResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PreviewUpdateGameServerClusterResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.DeployedState.Builder subBuilder = null; - if (deployedState_ != null) { - subBuilder = deployedState_.toBuilder(); - } - deployedState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployedState_); - deployedState_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; - if (targetState_ != null) { - subBuilder = targetState_.toBuilder(); - } - targetState_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetState_); - targetState_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.class, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.Builder.class); - } - - public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedState_ != null; - } - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - return getDeployedState(); - } - - public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_STATE_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetState_ != null; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - return getTargetState(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (deployedState_ != null) { - output.writeMessage(1, getDeployedState()); - } - if (!getEtagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); - } - if (targetState_ != null) { - output.writeMessage(3, getTargetState()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (deployedState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); - } - if (!getEtagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); - } - if (targetState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetState()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse other = - (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) obj; - - if (hasDeployedState() != other.hasDeployedState()) return false; - if (hasDeployedState()) { - if (!getDeployedState().equals(other.getDeployedState())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasTargetState() != other.hasTargetState()) return false; - if (hasTargetState()) { - if (!getTargetState().equals(other.getTargetState())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDeployedState()) { - hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; - hash = (53 * hash) + getDeployedState().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasTargetState()) { - hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; - hash = (53 * hash) + getTargetState().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for GameServerClustersService.PreviewUpdateGameServerCluster
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.class, - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (deployedStateBuilder_ == null) { - deployedState_ = null; - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - etag_ = ""; - - if (targetStateBuilder_ == null) { - targetState_ = null; - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse build() { - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse buildPartial() { - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse result = - new com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse(this); - if (deployedStateBuilder_ == null) { - result.deployedState_ = deployedState_; - } else { - result.deployedState_ = deployedStateBuilder_.build(); - } - result.etag_ = etag_; - if (targetStateBuilder_ == null) { - result.targetState_ = targetState_; - } else { - result.targetState_ = targetStateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse other) { - if (other - == com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - .getDefaultInstance()) return this; - if (other.hasDeployedState()) { - mergeDeployedState(other.getDeployedState()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (other.hasTargetState()) { - mergeTargetState(other.getTargetState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - deployedStateBuilder_; - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - public boolean hasDeployedState() { - return deployedStateBuilder_ != null || deployedState_ != null; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * - * @return The deployedState. - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { - if (deployedStateBuilder_ == null) { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } else { - return deployedStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deployedState_ = value; - onChanged(); - } else { - deployedStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDeployedState( - com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { - if (deployedStateBuilder_ == null) { - deployedState_ = builderForValue.build(); - onChanged(); - } else { - deployedStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { - if (deployedStateBuilder_ == null) { - if (deployedState_ != null) { - deployedState_ = - com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) - .mergeFrom(value) - .buildPartial(); - } else { - deployedState_ = value; - } - onChanged(); - } else { - deployedStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearDeployedState() { - if (deployedStateBuilder_ == null) { - deployedState_ = null; - onChanged(); - } else { - deployedState_ = null; - deployedStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { - - onChanged(); - return getDeployedStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { - if (deployedStateBuilder_ != null) { - return deployedStateBuilder_.getMessageOrBuilder(); - } else { - return deployedState_ == null - ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() - : deployedState_; - } - } - /** - * - * - *
-     * The deployed state.
-     * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> - getDeployedStateFieldBuilder() { - if (deployedStateBuilder_ == null) { - deployedStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeployedState, - com.google.cloud.gaming.v1alpha.DeployedState.Builder, - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( - getDeployedState(), getParentForChildren(), isClean()); - deployedState_ = null; - } - return deployedStateBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - * - * - *
-     * The ETag of the game server cluster.
-     * 
- * - * string etag = 2; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.TargetState targetState_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - targetStateBuilder_; - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - public boolean hasTargetState() { - return targetStateBuilder_ != null || targetState_ != null; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { - if (targetStateBuilder_ == null) { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } else { - return targetStateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetState_ = value; - onChanged(); - } else { - targetStateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder setTargetState( - com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { - if (targetStateBuilder_ == null) { - targetState_ = builderForValue.build(); - onChanged(); - } else { - targetStateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { - if (targetStateBuilder_ == null) { - if (targetState_ != null) { - targetState_ = - com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) - .mergeFrom(value) - .buildPartial(); - } else { - targetState_ = value; - } - onChanged(); - } else { - targetStateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public Builder clearTargetState() { - if (targetStateBuilder_ == null) { - targetState_ = null; - onChanged(); - } else { - targetState_ = null; - targetStateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { - - onChanged(); - return getTargetStateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { - if (targetStateBuilder_ != null) { - return targetStateBuilder_.getMessageOrBuilder(); - } else { - return targetState_ == null - ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() - : targetState_; - } - } - /** - * - * - *
-     * The target state.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> - getTargetStateFieldBuilder() { - if (targetStateBuilder_ == null) { - targetStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetState, - com.google.cloud.gaming.v1alpha.TargetState.Builder, - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( - getTargetState(), getParentForChildren(), isClean()); - targetState_ = null; - } - return targetStateBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) - private static final com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse(); - } - - public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreviewUpdateGameServerClusterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreviewUpdateGameServerClusterResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponseOrBuilder.java deleted file mode 100644 index 1c8fb931..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponseOrBuilder.java +++ /dev/null @@ -1,123 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface PreviewUpdateGameServerClusterResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return Whether the deployedState field is set. - */ - @java.lang.Deprecated - boolean hasDeployedState(); - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - * - * @return The deployedState. - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); - /** - * - * - *
-   * The deployed state.
-   * 
- * - * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; - */ - @java.lang.Deprecated - com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); - - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * The ETag of the game server cluster.
-   * 
- * - * string etag = 2; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return Whether the targetState field is set. - */ - boolean hasTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - * - * @return The targetState. - */ - com.google.cloud.gaming.v1alpha.TargetState getTargetState(); - /** - * - * - *
-   * The target state.
-   * 
- * - * .google.cloud.gaming.v1alpha.TargetState target_state = 3; - */ - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realm.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realm.java deleted file mode 100644 index 98dc361b..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realm.java +++ /dev/null @@ -1,2083 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * A Realm resource.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.Realm} - */ -public final class Realm extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.Realm) - RealmOrBuilder { - private static final long serialVersionUID = 0L; - // Use Realm.newBuilder() to construct. - private Realm(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Realm() { - name_ = ""; - timeZone_ = ""; - etag_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Realm(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Realm( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - timeZone_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_Realm_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_Realm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.Realm.class, - com.google.cloud.gaming.v1alpha.Realm.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The resource name of the realm, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`. For
-   * example, `projects/my-project/locations/{location}/realms/my-realm`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The resource name of the realm, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`. For
-   * example, `projects/my-project/locations/{location}/realms/my-realm`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int LABELS_FIELD_NUMBER = 4; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_Realm_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * The labels associated with this realm. Each label is a key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * The labels associated with this realm. Each label is a key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * The labels associated with this realm. Each label is a key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The labels associated with this realm. Each label is a key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int TIME_ZONE_FIELD_NUMBER = 6; - private volatile java.lang.Object timeZone_; - /** - * - * - *
-   * Required. Time zone where all realm-specific policies are evaluated. The value of
-   * this field must be from the IANA time zone database:
-   * https://www.iana.org/time-zones.
-   * 
- * - * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Time zone where all realm-specific policies are evaluated. The value of
-   * this field must be from the IANA time zone database:
-   * https://www.iana.org/time-zones.
-   * 
- * - * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 7; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 7; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 8; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Human readable description of the realm.
-   * 
- * - * string description = 8; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Human readable description of the realm.
-   * 
- * - * string description = 8; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (!getTimeZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, timeZone_); - } - if (!getEtagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, etag_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - if (!getTimeZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, timeZone_); - } - if (!getEtagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.Realm)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.Realm other = (com.google.cloud.gaming.v1alpha.Realm) obj; - - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getTimeZone().equals(other.getTimeZone())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().hashCode(); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.Realm parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.Realm prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A Realm resource.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.Realm} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.Realm) - com.google.cloud.gaming.v1alpha.RealmOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_Realm_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_Realm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.Realm.class, - com.google.cloud.gaming.v1alpha.Realm.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.Realm.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - timeZone_ = ""; - - etag_ = ""; - - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_Realm_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.Realm getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.Realm build() { - com.google.cloud.gaming.v1alpha.Realm result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.Realm buildPartial() { - com.google.cloud.gaming.v1alpha.Realm result = - new com.google.cloud.gaming.v1alpha.Realm(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.timeZone_ = timeZone_; - result.etag_ = etag_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.Realm) { - return mergeFrom((com.google.cloud.gaming.v1alpha.Realm) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.Realm other) { - if (other == com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - onChanged(); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.Realm parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.Realm) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The resource name of the realm, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`. For
-     * example, `projects/my-project/locations/{location}/realms/my-realm`.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource name of the realm, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`. For
-     * example, `projects/my-project/locations/{location}/realms/my-realm`.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource name of the realm, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`. For
-     * example, `projects/my-project/locations/{location}/realms/my-realm`.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the realm, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`. For
-     * example, `projects/my-project/locations/{location}/realms/my-realm`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the realm, using the form:
-     * `projects/{project}/locations/{location}/realms/{realm}`. For
-     * example, `projects/my-project/locations/{location}/realms/my-realm`.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The creation time.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. The last-modified time.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * The labels associated with this realm. Each label is a key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * The labels associated with this realm. Each label is a key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * The labels associated with this realm. Each label is a key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The labels associated with this realm. Each label is a key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The labels associated with this realm. Each label is a key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * The labels associated with this realm. Each label is a key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The labels associated with this realm. Each label is a key-value pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private java.lang.Object timeZone_ = ""; - /** - * - * - *
-     * Required. Time zone where all realm-specific policies are evaluated. The value of
-     * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones.
-     * 
- * - * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Time zone where all realm-specific policies are evaluated. The value of
-     * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones.
-     * 
- * - * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Time zone where all realm-specific policies are evaluated. The value of
-     * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones.
-     * 
- * - * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - timeZone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Time zone where all realm-specific policies are evaluated. The value of
-     * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones.
-     * 
- * - * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTimeZone() { - - timeZone_ = getDefaultInstance().getTimeZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Time zone where all realm-specific policies are evaluated. The value of
-     * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones.
-     * 
- * - * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - timeZone_ = value; - onChanged(); - return this; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - * - * - *
-     * ETag of the resource.
-     * 
- * - * string etag = 7; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Human readable description of the realm.
-     * 
- * - * string description = 8; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human readable description of the realm.
-     * 
- * - * string description = 8; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human readable description of the realm.
-     * 
- * - * string description = 8; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human readable description of the realm.
-     * 
- * - * string description = 8; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human readable description of the realm.
-     * 
- * - * string description = 8; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.Realm) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.Realm) - private static final com.google.cloud.gaming.v1alpha.Realm DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.Realm(); - } - - public static com.google.cloud.gaming.v1alpha.Realm getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Realm parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Realm(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.Realm getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmName.java deleted file mode 100644 index ad4a289b..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmName.java +++ /dev/null @@ -1,210 +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 - * - * 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. - */ - -package com.google.cloud.gaming.v1alpha; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** AUTO-GENERATED DOCUMENTATION AND CLASS */ -@javax.annotation.Generated("by GAPIC protoc plugin") -public class RealmName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/realms/{realm}"); - - private volatile Map fieldValuesMap; - - private final String project; - private final String location; - private final String realm; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRealm() { - return realm; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private RealmName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - realm = Preconditions.checkNotNull(builder.getRealm()); - } - - public static RealmName of(String project, String location, String realm) { - return newBuilder().setProject(project).setLocation(location).setRealm(realm).build(); - } - - public static String format(String project, String location, String realm) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setRealm(realm) - .build() - .toString(); - } - - public static RealmName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "RealmName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("realm")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (RealmName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("location", location); - fieldMapBuilder.put("realm", realm); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate("project", project, "location", location, "realm", realm); - } - - /** Builder for RealmName. */ - public static class Builder { - - private String project; - private String location; - private String realm; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getRealm() { - return realm; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setRealm(String realm) { - this.realm = realm; - return this; - } - - private Builder() {} - - private Builder(RealmName realmName) { - project = realmName.project; - location = realmName.location; - realm = realmName.realm; - } - - public RealmName build() { - return new RealmName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof RealmName) { - RealmName that = (RealmName) o; - return (this.project.equals(that.project)) - && (this.location.equals(that.location)) - && (this.realm.equals(that.realm)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= location.hashCode(); - h *= 1000003; - h ^= realm.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmOrBuilder.java deleted file mode 100644 index 517eadfd..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmOrBuilder.java +++ /dev/null @@ -1,263 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public interface RealmOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.Realm) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource name of the realm, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`. For
-   * example, `projects/my-project/locations/{location}/realms/my-realm`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The resource name of the realm, using the form:
-   * `projects/{project}/locations/{location}/realms/{realm}`. For
-   * example, `projects/my-project/locations/{location}/realms/my-realm`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The creation time.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. The last-modified time.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * The labels associated with this realm. Each label is a key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - int getLabelsCount(); - /** - * - * - *
-   * The labels associated with this realm. Each label is a key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * The labels associated with this realm. Each label is a key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * The labels associated with this realm. Each label is a key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * The labels associated with this realm. Each label is a key-value pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Required. Time zone where all realm-specific policies are evaluated. The value of
-   * this field must be from the IANA time zone database:
-   * https://www.iana.org/time-zones.
-   * 
- * - * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The timeZone. - */ - java.lang.String getTimeZone(); - /** - * - * - *
-   * Required. Time zone where all realm-specific policies are evaluated. The value of
-   * this field must be from the IANA time zone database:
-   * https://www.iana.org/time-zones.
-   * 
- * - * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for timeZone. - */ - com.google.protobuf.ByteString getTimeZoneBytes(); - - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 7; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * ETag of the resource.
-   * 
- * - * string etag = 7; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * Human readable description of the realm.
-   * 
- * - * string description = 8; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Human readable description of the realm.
-   * 
- * - * string description = 8; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelector.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelector.java deleted file mode 100644 index 1105adf5..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelector.java +++ /dev/null @@ -1,735 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * The realm selector, used to match realm resources.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.RealmSelector} - */ -public final class RealmSelector extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.RealmSelector) - RealmSelectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use RealmSelector.newBuilder() to construct. - private RealmSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RealmSelector() { - realms_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RealmSelector(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RealmSelector( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - realms_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - realms_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - realms_ = realms_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_RealmSelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.RealmSelector.class, - com.google.cloud.gaming.v1alpha.RealmSelector.Builder.class); - } - - public static final int REALMS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList realms_; - /** - * - * - *
-   * List of realms to match against.
-   * 
- * - * repeated string realms = 1; - * - * @return A list containing the realms. - */ - public com.google.protobuf.ProtocolStringList getRealmsList() { - return realms_; - } - /** - * - * - *
-   * List of realms to match against.
-   * 
- * - * repeated string realms = 1; - * - * @return The count of realms. - */ - public int getRealmsCount() { - return realms_.size(); - } - /** - * - * - *
-   * List of realms to match against.
-   * 
- * - * repeated string realms = 1; - * - * @param index The index of the element to return. - * @return The realms at the given index. - */ - public java.lang.String getRealms(int index) { - return realms_.get(index); - } - /** - * - * - *
-   * List of realms to match against.
-   * 
- * - * repeated string realms = 1; - * - * @param index The index of the value to return. - * @return The bytes of the realms at the given index. - */ - public com.google.protobuf.ByteString getRealmsBytes(int index) { - return realms_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < realms_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, realms_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < realms_.size(); i++) { - dataSize += computeStringSizeNoTag(realms_.getRaw(i)); - } - size += dataSize; - size += 1 * getRealmsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.RealmSelector)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.RealmSelector other = - (com.google.cloud.gaming.v1alpha.RealmSelector) obj; - - if (!getRealmsList().equals(other.getRealmsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRealmsCount() > 0) { - hash = (37 * hash) + REALMS_FIELD_NUMBER; - hash = (53 * hash) + getRealmsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.RealmSelector prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The realm selector, used to match realm resources.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.RealmSelector} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.RealmSelector) - com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_RealmSelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.RealmSelector.class, - com.google.cloud.gaming.v1alpha.RealmSelector.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.RealmSelector.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - realms_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.RealmSelector getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.RealmSelector build() { - com.google.cloud.gaming.v1alpha.RealmSelector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.RealmSelector buildPartial() { - com.google.cloud.gaming.v1alpha.RealmSelector result = - new com.google.cloud.gaming.v1alpha.RealmSelector(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - realms_ = realms_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.realms_ = realms_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.RealmSelector) { - return mergeFrom((com.google.cloud.gaming.v1alpha.RealmSelector) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.RealmSelector other) { - if (other == com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance()) return this; - if (!other.realms_.isEmpty()) { - if (realms_.isEmpty()) { - realms_ = other.realms_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRealmsIsMutable(); - realms_.addAll(other.realms_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.RealmSelector parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.RealmSelector) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList realms_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureRealmsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - realms_ = new com.google.protobuf.LazyStringArrayList(realms_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * List of realms to match against.
-     * 
- * - * repeated string realms = 1; - * - * @return A list containing the realms. - */ - public com.google.protobuf.ProtocolStringList getRealmsList() { - return realms_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of realms to match against.
-     * 
- * - * repeated string realms = 1; - * - * @return The count of realms. - */ - public int getRealmsCount() { - return realms_.size(); - } - /** - * - * - *
-     * List of realms to match against.
-     * 
- * - * repeated string realms = 1; - * - * @param index The index of the element to return. - * @return The realms at the given index. - */ - public java.lang.String getRealms(int index) { - return realms_.get(index); - } - /** - * - * - *
-     * List of realms to match against.
-     * 
- * - * repeated string realms = 1; - * - * @param index The index of the value to return. - * @return The bytes of the realms at the given index. - */ - public com.google.protobuf.ByteString getRealmsBytes(int index) { - return realms_.getByteString(index); - } - /** - * - * - *
-     * List of realms to match against.
-     * 
- * - * repeated string realms = 1; - * - * @param index The index to set the value at. - * @param value The realms to set. - * @return This builder for chaining. - */ - public Builder setRealms(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRealmsIsMutable(); - realms_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of realms to match against.
-     * 
- * - * repeated string realms = 1; - * - * @param value The realms to add. - * @return This builder for chaining. - */ - public Builder addRealms(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRealmsIsMutable(); - realms_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of realms to match against.
-     * 
- * - * repeated string realms = 1; - * - * @param values The realms to add. - * @return This builder for chaining. - */ - public Builder addAllRealms(java.lang.Iterable values) { - ensureRealmsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, realms_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of realms to match against.
-     * 
- * - * repeated string realms = 1; - * - * @return This builder for chaining. - */ - public Builder clearRealms() { - realms_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * List of realms to match against.
-     * 
- * - * repeated string realms = 1; - * - * @param value The bytes of the realms to add. - * @return This builder for chaining. - */ - public Builder addRealmsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRealmsIsMutable(); - realms_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.RealmSelector) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.RealmSelector) - private static final com.google.cloud.gaming.v1alpha.RealmSelector DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.RealmSelector(); - } - - public static com.google.cloud.gaming.v1alpha.RealmSelector getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RealmSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RealmSelector(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.RealmSelector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelectorOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelectorOrBuilder.java deleted file mode 100644 index 7913b813..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelectorOrBuilder.java +++ /dev/null @@ -1,76 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public interface RealmSelectorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.RealmSelector) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of realms to match against.
-   * 
- * - * repeated string realms = 1; - * - * @return A list containing the realms. - */ - java.util.List getRealmsList(); - /** - * - * - *
-   * List of realms to match against.
-   * 
- * - * repeated string realms = 1; - * - * @return The count of realms. - */ - int getRealmsCount(); - /** - * - * - *
-   * List of realms to match against.
-   * 
- * - * repeated string realms = 1; - * - * @param index The index of the element to return. - * @return The realms at the given index. - */ - java.lang.String getRealms(int index); - /** - * - * - *
-   * List of realms to match against.
-   * 
- * - * repeated string realms = 1; - * - * @param index The index of the value to return. - * @return The bytes of the realms at the given index. - */ - com.google.protobuf.ByteString getRealmsBytes(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realms.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realms.java deleted file mode 100644 index 7f56e6c6..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realms.java +++ /dev/null @@ -1,235 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public final class Realms { - private Realms() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_Realm_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_Realm_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_Realm_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_Realm_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n(google/cloud/gaming/v1alpha/realms.pro" - + "to\022\033google.cloud.gaming.v1alpha\032\037google/" - + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032(google/cloud/gaming/v1alpha" - + "/common.proto\032 google/protobuf/field_mas" - + "k.proto\032\037google/protobuf/timestamp.proto" - + "\032\034google/api/annotations.proto\"\253\001\n\021ListR" - + "ealmsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!ga" - + "meservices.googleapis.com/Realm\022\026\n\tpage_" - + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" - + "\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB" - + "\003\340A\001\"v\n\022ListRealmsResponse\0222\n\006realms\030\001 \003" - + "(\0132\".google.cloud.gaming.v1alpha.Realm\022\027" - + "\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003" - + " \003(\t\"J\n\017GetRealmRequest\0227\n\004name\030\001 \001(\tB)\340" - + "A\002\372A#\n!gameservices.googleapis.com/Realm" - + "\"\236\001\n\022CreateRealmRequest\0229\n\006parent\030\001 \001(\tB" - + ")\340A\002\372A#\n!gameservices.googleapis.com/Rea" - + "lm\022\025\n\010realm_id\030\002 \001(\tB\003\340A\002\0226\n\005realm\030\003 \001(\013" - + "2\".google.cloud.gaming.v1alpha.RealmB\003\340A" - + "\002\"M\n\022DeleteRealmRequest\0227\n\004name\030\001 \001(\tB)\340" - + "A\002\372A#\n!gameservices.googleapis.com/Realm" - + "\"\202\001\n\022UpdateRealmRequest\0226\n\005realm\030\001 \001(\0132\"" - + ".google.cloud.gaming.v1alpha.RealmB\003\340A\002\022" - + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMaskB\003\340A\002\"\300\001\n\031PreviewRealmUpdateRequ" - + "est\0226\n\005realm\030\001 \001(\0132\".google.cloud.gaming" - + ".v1alpha.RealmB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\002\0225\n\014pre" - + "view_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\001\"\262\001\n\032PreviewRealmUpdateResponse\022" - + "F\n\016deployed_state\030\001 \001(\0132*.google.cloud.g" - + "aming.v1alpha.DeployedStateB\002\030\001\022\014\n\004etag\030" - + "\002 \001(\t\022>\n\014target_state\030\003 \001(\0132(.google.clo" - + "ud.gaming.v1alpha.TargetState\"\213\003\n\005Realm\022" - + "\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" - + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022>\n\006labels\030\004 \003(\0132..google.cloud.gaming." - + "v1alpha.Realm.LabelsEntry\022\026\n\ttime_zone\030\006" - + " \001(\tB\003\340A\002\022\014\n\004etag\030\007 \001(\t\022\023\n\013description\030\010" - + " \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001:^\352A[\n!gameservices.googleapi" - + "s.com/Realm\0226projects/{project}/location" - + "s/{location}/realms/{realm}Bf\n\037com.googl" - + "e.cloud.gaming.v1alphaP\001ZAgoogle.golang." - + "org/genproto/googleapis/cloud/gaming/v1a" - + "lpha;gamingb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.gaming.v1alpha.Common.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_descriptor, - new java.lang.String[] { - "Realms", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_CreateRealmRequest_descriptor, - new java.lang.String[] { - "Parent", "RealmId", "Realm", - }); - internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_DeleteRealmRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_descriptor, - new java.lang.String[] { - "Realm", "UpdateMask", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor, - new java.lang.String[] { - "Realm", "UpdateMask", "PreviewTime", - }); - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor, - new java.lang.String[] { - "DeployedState", "Etag", "TargetState", - }); - internal_static_google_cloud_gaming_v1alpha_Realm_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gaming_v1alpha_Realm_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_Realm_descriptor, - new java.lang.String[] { - "Name", "CreateTime", "UpdateTime", "Labels", "TimeZone", "Etag", "Description", - }); - internal_static_google_cloud_gaming_v1alpha_Realm_LabelsEntry_descriptor = - internal_static_google_cloud_gaming_v1alpha_Realm_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gaming_v1alpha_Realm_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_Realm_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.Common.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceOuterClass.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceOuterClass.java deleted file mode 100644 index 6f60ec06..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceOuterClass.java +++ /dev/null @@ -1,104 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms_service.proto - -package com.google.cloud.gaming.v1alpha; - -public final class RealmsServiceOuterClass { - private RealmsServiceOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/gaming/v1alpha/realms_ser" - + "vice.proto\022\033google.cloud.gaming.v1alpha\032" - + "\034google/api/annotations.proto\032\027google/ap" - + "i/client.proto\032(google/cloud/gaming/v1al" - + "pha/realms.proto\032#google/longrunning/ope" - + "rations.proto2\366\t\n\rRealmsService\022\257\001\n\nList" - + "Realms\022..google.cloud.gaming.v1alpha.Lis" - + "tRealmsRequest\032/.google.cloud.gaming.v1a" - + "lpha.ListRealmsResponse\"@\202\323\344\223\0021\022//v1alph" - + "a/{parent=projects/*/locations/*}/realms" - + "\332A\006parent\022\234\001\n\010GetRealm\022,.google.cloud.ga" - + "ming.v1alpha.GetRealmRequest\032\".google.cl" - + "oud.gaming.v1alpha.Realm\">\202\323\344\223\0021\022//v1alp" - + "ha/{name=projects/*/locations/*/realms/*" - + "}\332A\004name\022\322\001\n\013CreateRealm\022/.google.cloud." - + "gaming.v1alpha.CreateRealmRequest\032\035.goog" - + "le.longrunning.Operation\"s\202\323\344\223\0028\"//v1alp" - + "ha/{parent=projects/*/locations/*}/realm" - + "s:\005realm\332A\025parent,realm,realm_id\312A\032\n\005Rea" - + "lm\022\021OperationMetadata\022\272\001\n\013DeleteRealm\022/." - + "google.cloud.gaming.v1alpha.DeleteRealmR" - + "equest\032\035.google.longrunning.Operation\"[\202" - + "\323\344\223\0021*//v1alpha/{name=projects/*/locatio" - + "ns/*/realms/*}\332A\004name\312A\032\n\005Realm\022\021Operati" - + "onMetadata\022\324\001\n\013UpdateRealm\022/.google.clou" - + "d.gaming.v1alpha.UpdateRealmRequest\032\035.go" - + "ogle.longrunning.Operation\"u\202\323\344\223\002>25/v1a" - + "lpha/{realm.name=projects/*/locations/*/" - + "realms/*}:\005realm\332A\021realm,update_mask\312A\032\n" - + "\005Realm\022\021OperationMetadata\022\331\001\n\022PreviewRea" - + "lmUpdate\0226.google.cloud.gaming.v1alpha.P" - + "reviewRealmUpdateRequest\0327.google.cloud." - + "gaming.v1alpha.PreviewRealmUpdateRespons" - + "e\"R\202\323\344\223\002L2C/v1alpha/{realm.name=projects" - + "/*/locations/*/realms/*}:previewUpdate:\005" - + "realm\032O\312A\033gameservices.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformBf\n\037com.google.cloud.gaming.v1alph" - + "aP\001ZAgoogle.golang.org/genproto/googleap" - + "is/cloud/gaming/v1alpha;gamingb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.gaming.v1alpha.Realms.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.Realms.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfig.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfig.java deleted file mode 100644 index 50d2cff3..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfig.java +++ /dev/null @@ -1,1841 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Autoscaling configs for Agones fleet.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ScalingConfig} - */ -public final class ScalingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ScalingConfig) - ScalingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ScalingConfig.newBuilder() to construct. - private ScalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ScalingConfig() { - name_ = ""; - fleetAutoscalerSpec_ = ""; - selectors_ = java.util.Collections.emptyList(); - schedules_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ScalingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ScalingConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - fleetAutoscalerSpec_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - selectors_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - selectors_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.LabelSelector.parser(), extensionRegistry)); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - schedules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - schedules_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.Schedule.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - selectors_ = java.util.Collections.unmodifiableList(selectors_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - schedules_ = java.util.Collections.unmodifiableList(schedules_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ScalingConfig.class, - com.google.cloud.gaming.v1alpha.ScalingConfig.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the ScalingConfig
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the ScalingConfig
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FLEET_AUTOSCALER_SPEC_FIELD_NUMBER = 2; - private volatile java.lang.Object fleetAutoscalerSpec_; - /** - * - * - *
-   * Required. Fleet autoscaler spec, which is sent to Agones.
-   * Example spec can be found :
-   * https://agones.dev/site/docs/reference/fleetautoscaler/
-   * 
- * - * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The fleetAutoscalerSpec. - */ - public java.lang.String getFleetAutoscalerSpec() { - java.lang.Object ref = fleetAutoscalerSpec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fleetAutoscalerSpec_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Fleet autoscaler spec, which is sent to Agones.
-   * Example spec can be found :
-   * https://agones.dev/site/docs/reference/fleetautoscaler/
-   * 
- * - * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for fleetAutoscalerSpec. - */ - public com.google.protobuf.ByteString getFleetAutoscalerSpecBytes() { - java.lang.Object ref = fleetAutoscalerSpec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fleetAutoscalerSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELECTORS_FIELD_NUMBER = 4; - private java.util.List selectors_; - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public java.util.List getSelectorsList() { - return selectors_; - } - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public java.util.List - getSelectorsOrBuilderList() { - return selectors_; - } - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public int getSelectorsCount() { - return selectors_.size(); - } - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector getSelectors(int index) { - return selectors_.get(index); - } - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getSelectorsOrBuilder(int index) { - return selectors_.get(index); - } - - public static final int SCHEDULES_FIELD_NUMBER = 5; - private java.util.List schedules_; - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public java.util.List getSchedulesList() { - return schedules_; - } - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public java.util.List - getSchedulesOrBuilderList() { - return schedules_; - } - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public int getSchedulesCount() { - return schedules_.size(); - } - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index) { - return schedules_.get(index); - } - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index) { - return schedules_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getFleetAutoscalerSpecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fleetAutoscalerSpec_); - } - for (int i = 0; i < selectors_.size(); i++) { - output.writeMessage(4, selectors_.get(i)); - } - for (int i = 0; i < schedules_.size(); i++) { - output.writeMessage(5, schedules_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getFleetAutoscalerSpecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fleetAutoscalerSpec_); - } - for (int i = 0; i < selectors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, selectors_.get(i)); - } - for (int i = 0; i < schedules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, schedules_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ScalingConfig)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ScalingConfig other = - (com.google.cloud.gaming.v1alpha.ScalingConfig) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFleetAutoscalerSpec().equals(other.getFleetAutoscalerSpec())) return false; - if (!getSelectorsList().equals(other.getSelectorsList())) return false; - if (!getSchedulesList().equals(other.getSchedulesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + FLEET_AUTOSCALER_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getFleetAutoscalerSpec().hashCode(); - if (getSelectorsCount() > 0) { - hash = (37 * hash) + SELECTORS_FIELD_NUMBER; - hash = (53 * hash) + getSelectorsList().hashCode(); - } - if (getSchedulesCount() > 0) { - hash = (37 * hash) + SCHEDULES_FIELD_NUMBER; - hash = (53 * hash) + getSchedulesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.ScalingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Autoscaling configs for Agones fleet.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ScalingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ScalingConfig) - com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ScalingConfig.class, - com.google.cloud.gaming.v1alpha.ScalingConfig.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ScalingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSelectorsFieldBuilder(); - getSchedulesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - fleetAutoscalerSpec_ = ""; - - if (selectorsBuilder_ == null) { - selectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - selectorsBuilder_.clear(); - } - if (schedulesBuilder_ == null) { - schedules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - schedulesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerConfigs - .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ScalingConfig getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ScalingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ScalingConfig build() { - com.google.cloud.gaming.v1alpha.ScalingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ScalingConfig buildPartial() { - com.google.cloud.gaming.v1alpha.ScalingConfig result = - new com.google.cloud.gaming.v1alpha.ScalingConfig(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.fleetAutoscalerSpec_ = fleetAutoscalerSpec_; - if (selectorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - selectors_ = java.util.Collections.unmodifiableList(selectors_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.selectors_ = selectors_; - } else { - result.selectors_ = selectorsBuilder_.build(); - } - if (schedulesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - schedules_ = java.util.Collections.unmodifiableList(schedules_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.schedules_ = schedules_; - } else { - result.schedules_ = schedulesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ScalingConfig) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ScalingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ScalingConfig other) { - if (other == com.google.cloud.gaming.v1alpha.ScalingConfig.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getFleetAutoscalerSpec().isEmpty()) { - fleetAutoscalerSpec_ = other.fleetAutoscalerSpec_; - onChanged(); - } - if (selectorsBuilder_ == null) { - if (!other.selectors_.isEmpty()) { - if (selectors_.isEmpty()) { - selectors_ = other.selectors_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSelectorsIsMutable(); - selectors_.addAll(other.selectors_); - } - onChanged(); - } - } else { - if (!other.selectors_.isEmpty()) { - if (selectorsBuilder_.isEmpty()) { - selectorsBuilder_.dispose(); - selectorsBuilder_ = null; - selectors_ = other.selectors_; - bitField0_ = (bitField0_ & ~0x00000001); - selectorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSelectorsFieldBuilder() - : null; - } else { - selectorsBuilder_.addAllMessages(other.selectors_); - } - } - } - if (schedulesBuilder_ == null) { - if (!other.schedules_.isEmpty()) { - if (schedules_.isEmpty()) { - schedules_ = other.schedules_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSchedulesIsMutable(); - schedules_.addAll(other.schedules_); - } - onChanged(); - } - } else { - if (!other.schedules_.isEmpty()) { - if (schedulesBuilder_.isEmpty()) { - schedulesBuilder_.dispose(); - schedulesBuilder_ = null; - schedules_ = other.schedules_; - bitField0_ = (bitField0_ & ~0x00000002); - schedulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSchedulesFieldBuilder() - : null; - } else { - schedulesBuilder_.addAllMessages(other.schedules_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ScalingConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.ScalingConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the ScalingConfig
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the ScalingConfig
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the ScalingConfig
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the ScalingConfig
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the ScalingConfig
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object fleetAutoscalerSpec_ = ""; - /** - * - * - *
-     * Required. Fleet autoscaler spec, which is sent to Agones.
-     * Example spec can be found :
-     * https://agones.dev/site/docs/reference/fleetautoscaler/
-     * 
- * - * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The fleetAutoscalerSpec. - */ - public java.lang.String getFleetAutoscalerSpec() { - java.lang.Object ref = fleetAutoscalerSpec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fleetAutoscalerSpec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Fleet autoscaler spec, which is sent to Agones.
-     * Example spec can be found :
-     * https://agones.dev/site/docs/reference/fleetautoscaler/
-     * 
- * - * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for fleetAutoscalerSpec. - */ - public com.google.protobuf.ByteString getFleetAutoscalerSpecBytes() { - java.lang.Object ref = fleetAutoscalerSpec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fleetAutoscalerSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Fleet autoscaler spec, which is sent to Agones.
-     * Example spec can be found :
-     * https://agones.dev/site/docs/reference/fleetautoscaler/
-     * 
- * - * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The fleetAutoscalerSpec to set. - * @return This builder for chaining. - */ - public Builder setFleetAutoscalerSpec(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fleetAutoscalerSpec_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fleet autoscaler spec, which is sent to Agones.
-     * Example spec can be found :
-     * https://agones.dev/site/docs/reference/fleetautoscaler/
-     * 
- * - * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearFleetAutoscalerSpec() { - - fleetAutoscalerSpec_ = getDefaultInstance().getFleetAutoscalerSpec(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fleet autoscaler spec, which is sent to Agones.
-     * Example spec can be found :
-     * https://agones.dev/site/docs/reference/fleetautoscaler/
-     * 
- * - * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for fleetAutoscalerSpec to set. - * @return This builder for chaining. - */ - public Builder setFleetAutoscalerSpecBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fleetAutoscalerSpec_ = value; - onChanged(); - return this; - } - - private java.util.List selectors_ = - java.util.Collections.emptyList(); - - private void ensureSelectorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - selectors_ = - new java.util.ArrayList(selectors_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder> - selectorsBuilder_; - - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public java.util.List getSelectorsList() { - if (selectorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(selectors_); - } else { - return selectorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public int getSelectorsCount() { - if (selectorsBuilder_ == null) { - return selectors_.size(); - } else { - return selectorsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector getSelectors(int index) { - if (selectorsBuilder_ == null) { - return selectors_.get(index); - } else { - return selectorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public Builder setSelectors(int index, com.google.cloud.gaming.v1alpha.LabelSelector value) { - if (selectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectorsIsMutable(); - selectors_.set(index, value); - onChanged(); - } else { - selectorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public Builder setSelectors( - int index, com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) { - if (selectorsBuilder_ == null) { - ensureSelectorsIsMutable(); - selectors_.set(index, builderForValue.build()); - onChanged(); - } else { - selectorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public Builder addSelectors(com.google.cloud.gaming.v1alpha.LabelSelector value) { - if (selectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectorsIsMutable(); - selectors_.add(value); - onChanged(); - } else { - selectorsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public Builder addSelectors(int index, com.google.cloud.gaming.v1alpha.LabelSelector value) { - if (selectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectorsIsMutable(); - selectors_.add(index, value); - onChanged(); - } else { - selectorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public Builder addSelectors( - com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) { - if (selectorsBuilder_ == null) { - ensureSelectorsIsMutable(); - selectors_.add(builderForValue.build()); - onChanged(); - } else { - selectorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public Builder addSelectors( - int index, com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) { - if (selectorsBuilder_ == null) { - ensureSelectorsIsMutable(); - selectors_.add(index, builderForValue.build()); - onChanged(); - } else { - selectorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public Builder addAllSelectors( - java.lang.Iterable values) { - if (selectorsBuilder_ == null) { - ensureSelectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectors_); - onChanged(); - } else { - selectorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public Builder clearSelectors() { - if (selectorsBuilder_ == null) { - selectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - selectorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public Builder removeSelectors(int index) { - if (selectorsBuilder_ == null) { - ensureSelectorsIsMutable(); - selectors_.remove(index); - onChanged(); - } else { - selectorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector.Builder getSelectorsBuilder(int index) { - return getSelectorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getSelectorsOrBuilder(int index) { - if (selectorsBuilder_ == null) { - return selectors_.get(index); - } else { - return selectorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public java.util.List - getSelectorsOrBuilderList() { - if (selectorsBuilder_ != null) { - return selectorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(selectors_); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addSelectorsBuilder() { - return getSelectorsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()); - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addSelectorsBuilder(int index) { - return getSelectorsFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()); - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling config
-     * applies. A cluster is subject to this scaling config if its labels match
-     * any of the selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - public java.util.List - getSelectorsBuilderList() { - return getSelectorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder> - getSelectorsFieldBuilder() { - if (selectorsBuilder_ == null) { - selectorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder>( - selectors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - selectors_ = null; - } - return selectorsBuilder_; - } - - private java.util.List schedules_ = - java.util.Collections.emptyList(); - - private void ensureSchedulesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - schedules_ = new java.util.ArrayList(schedules_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Schedule, - com.google.cloud.gaming.v1alpha.Schedule.Builder, - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder> - schedulesBuilder_; - - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public java.util.List getSchedulesList() { - if (schedulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(schedules_); - } else { - return schedulesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public int getSchedulesCount() { - if (schedulesBuilder_ == null) { - return schedules_.size(); - } else { - return schedulesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index) { - if (schedulesBuilder_ == null) { - return schedules_.get(index); - } else { - return schedulesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public Builder setSchedules(int index, com.google.cloud.gaming.v1alpha.Schedule value) { - if (schedulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchedulesIsMutable(); - schedules_.set(index, value); - onChanged(); - } else { - schedulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public Builder setSchedules( - int index, com.google.cloud.gaming.v1alpha.Schedule.Builder builderForValue) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.set(index, builderForValue.build()); - onChanged(); - } else { - schedulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public Builder addSchedules(com.google.cloud.gaming.v1alpha.Schedule value) { - if (schedulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchedulesIsMutable(); - schedules_.add(value); - onChanged(); - } else { - schedulesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public Builder addSchedules(int index, com.google.cloud.gaming.v1alpha.Schedule value) { - if (schedulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchedulesIsMutable(); - schedules_.add(index, value); - onChanged(); - } else { - schedulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public Builder addSchedules(com.google.cloud.gaming.v1alpha.Schedule.Builder builderForValue) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.add(builderForValue.build()); - onChanged(); - } else { - schedulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public Builder addSchedules( - int index, com.google.cloud.gaming.v1alpha.Schedule.Builder builderForValue) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.add(index, builderForValue.build()); - onChanged(); - } else { - schedulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public Builder addAllSchedules( - java.lang.Iterable values) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schedules_); - onChanged(); - } else { - schedulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public Builder clearSchedules() { - if (schedulesBuilder_ == null) { - schedules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - schedulesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public Builder removeSchedules(int index) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.remove(index); - onChanged(); - } else { - schedulesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public com.google.cloud.gaming.v1alpha.Schedule.Builder getSchedulesBuilder(int index) { - return getSchedulesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index) { - if (schedulesBuilder_ == null) { - return schedules_.get(index); - } else { - return schedulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public java.util.List - getSchedulesOrBuilderList() { - if (schedulesBuilder_ != null) { - return schedulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(schedules_); - } - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder() { - return getSchedulesFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance()); - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder(int index) { - return getSchedulesFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance()); - } - /** - * - * - *
-     * The schedules to which this scaling config applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - public java.util.List - getSchedulesBuilderList() { - return getSchedulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Schedule, - com.google.cloud.gaming.v1alpha.Schedule.Builder, - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder> - getSchedulesFieldBuilder() { - if (schedulesBuilder_ == null) { - schedulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Schedule, - com.google.cloud.gaming.v1alpha.Schedule.Builder, - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder>( - schedules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - schedules_ = null; - } - return schedulesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ScalingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ScalingConfig) - private static final com.google.cloud.gaming.v1alpha.ScalingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ScalingConfig(); - } - - public static com.google.cloud.gaming.v1alpha.ScalingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScalingConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ScalingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfigOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfigOrBuilder.java deleted file mode 100644 index 91bb2110..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfigOrBuilder.java +++ /dev/null @@ -1,193 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_configs.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ScalingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ScalingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the ScalingConfig
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the ScalingConfig
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Fleet autoscaler spec, which is sent to Agones.
-   * Example spec can be found :
-   * https://agones.dev/site/docs/reference/fleetautoscaler/
-   * 
- * - * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The fleetAutoscalerSpec. - */ - java.lang.String getFleetAutoscalerSpec(); - /** - * - * - *
-   * Required. Fleet autoscaler spec, which is sent to Agones.
-   * Example spec can be found :
-   * https://agones.dev/site/docs/reference/fleetautoscaler/
-   * 
- * - * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for fleetAutoscalerSpec. - */ - com.google.protobuf.ByteString getFleetAutoscalerSpecBytes(); - - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - java.util.List getSelectorsList(); - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - com.google.cloud.gaming.v1alpha.LabelSelector getSelectors(int index); - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - int getSelectorsCount(); - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - java.util.List - getSelectorsOrBuilderList(); - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling config
-   * applies. A cluster is subject to this scaling config if its labels match
-   * any of the selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; - */ - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getSelectorsOrBuilder(int index); - - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - java.util.List getSchedulesList(); - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index); - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - int getSchedulesCount(); - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - java.util.List - getSchedulesOrBuilderList(); - /** - * - * - *
-   * The schedules to which this scaling config applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; - */ - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Schedule.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Schedule.java deleted file mode 100644 index fcb0bb5a..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Schedule.java +++ /dev/null @@ -1,1474 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * The schedule of an event - the event can be recurring or one time.  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 cron_spec + cron_job_duration is only specified, the event is effective
- * starting at the local time specified by cron_spec and is recurrent.
- *   start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time
- *   cron job: cron spec start time + duration
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.Schedule} - */ -public final class Schedule extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.Schedule) - ScheduleOrBuilder { - private static final long serialVersionUID = 0L; - // Use Schedule.newBuilder() to construct. - private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Schedule() { - cronSpec_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Schedule(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Schedule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (cronJobDuration_ != null) { - subBuilder = cronJobDuration_.toBuilder(); - } - cronJobDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cronJobDuration_); - cronJobDuration_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - cronSpec_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.Schedule.class, - com.google.cloud.gaming.v1alpha.Schedule.Builder.class); - } - - public static final int START_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp startTime_; - /** - * - * - *
-   * The start time of the event.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return startTime_ != null; - } - /** - * - * - *
-   * The start time of the event.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return The startTime. - */ - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - * - * - *
-   * The start time of the event.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - * - * - *
-   * The end time of the event.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTime_ != null; - } - /** - * - * - *
-   * The end time of the event.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - * - * - *
-   * The end time of the event.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int CRON_JOB_DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration cronJobDuration_; - /** - * - * - *
-   * The duration for the cron job event. The duration of the event is effective
-   * after the cron job's start time.
-   * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - * - * @return Whether the cronJobDuration field is set. - */ - public boolean hasCronJobDuration() { - return cronJobDuration_ != null; - } - /** - * - * - *
-   * The duration for the cron job event. The duration of the event is effective
-   * after the cron job's start time.
-   * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - * - * @return The cronJobDuration. - */ - public com.google.protobuf.Duration getCronJobDuration() { - return cronJobDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cronJobDuration_; - } - /** - * - * - *
-   * The duration for the cron job event. The duration of the event is effective
-   * after the cron job's start time.
-   * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - */ - public com.google.protobuf.DurationOrBuilder getCronJobDurationOrBuilder() { - return getCronJobDuration(); - } - - public static final int CRON_SPEC_FIELD_NUMBER = 4; - private volatile java.lang.Object cronSpec_; - /** - * - * - *
-   * 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.
-   * 
- * - * string cron_spec = 4; - * - * @return The cronSpec. - */ - public java.lang.String getCronSpec() { - java.lang.Object ref = cronSpec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cronSpec_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string cron_spec = 4; - * - * @return The bytes for cronSpec. - */ - public com.google.protobuf.ByteString getCronSpecBytes() { - java.lang.Object ref = cronSpec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cronSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (startTime_ != null) { - output.writeMessage(1, getStartTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - if (cronJobDuration_ != null) { - output.writeMessage(3, getCronJobDuration()); - } - if (!getCronSpecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cronSpec_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - if (cronJobDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCronJobDuration()); - } - if (!getCronSpecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cronSpec_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.Schedule)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.Schedule other = (com.google.cloud.gaming.v1alpha.Schedule) obj; - - if (hasStartTime() != other.hasStartTime()) return false; - if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (hasCronJobDuration() != other.hasCronJobDuration()) return false; - if (hasCronJobDuration()) { - if (!getCronJobDuration().equals(other.getCronJobDuration())) return false; - } - if (!getCronSpec().equals(other.getCronSpec())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStartTime()) { - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - if (hasCronJobDuration()) { - hash = (37 * hash) + CRON_JOB_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getCronJobDuration().hashCode(); - } - hash = (37 * hash) + CRON_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getCronSpec().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.Schedule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.Schedule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The schedule of an event - the event can be recurring or one time.  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 cron_spec + cron_job_duration is only specified, the event is effective
-   * starting at the local time specified by cron_spec and is recurrent.
-   *   start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time
-   *   cron job: cron spec start time + duration
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.Schedule} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.Schedule) - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.Schedule.class, - com.google.cloud.gaming.v1alpha.Schedule.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.Schedule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - if (cronJobDurationBuilder_ == null) { - cronJobDuration_ = null; - } else { - cronJobDuration_ = null; - cronJobDurationBuilder_ = null; - } - cronSpec_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.Schedule getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.Schedule build() { - com.google.cloud.gaming.v1alpha.Schedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.Schedule buildPartial() { - com.google.cloud.gaming.v1alpha.Schedule result = - new com.google.cloud.gaming.v1alpha.Schedule(this); - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - if (cronJobDurationBuilder_ == null) { - result.cronJobDuration_ = cronJobDuration_; - } else { - result.cronJobDuration_ = cronJobDurationBuilder_.build(); - } - result.cronSpec_ = cronSpec_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.Schedule) { - return mergeFrom((com.google.cloud.gaming.v1alpha.Schedule) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.Schedule other) { - if (other == com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance()) return this; - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (other.hasCronJobDuration()) { - mergeCronJobDuration(other.getCronJobDuration()); - } - if (!other.getCronSpec().isEmpty()) { - cronSpec_ = other.cronSpec_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.Schedule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.Schedule) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Timestamp startTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; - /** - * - * - *
-     * The start time of the event.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; - } - /** - * - * - *
-     * The start time of the event.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return The startTime. - */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The start time of the event.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - onChanged(); - } else { - startTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The start time of the event.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The start time of the event.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder mergeStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); - } else { - startTime_ = value; - } - onChanged(); - } else { - startTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The start time of the event.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The start time of the event.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The start time of the event.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - * - * - *
-     * The start time of the event.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStartTimeFieldBuilder() { - if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); - startTime_ = null; - } - return startTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; - /** - * - * - *
-     * The end time of the event.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - * - * - *
-     * The end time of the event.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } else { - return endTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The end time of the event.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - onChanged(); - } else { - endTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The end time of the event.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The end time of the event.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder mergeEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); - } else { - endTime_ = value; - } - onChanged(); - } else { - endTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The end time of the event.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The end time of the event.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The end time of the event.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - * - * - *
-     * The end time of the event.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getEndTimeFieldBuilder() { - if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); - endTime_ = null; - } - return endTimeBuilder_; - } - - private com.google.protobuf.Duration cronJobDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - cronJobDurationBuilder_; - /** - * - * - *
-     * The duration for the cron job event. The duration of the event is effective
-     * after the cron job's start time.
-     * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - * - * @return Whether the cronJobDuration field is set. - */ - public boolean hasCronJobDuration() { - return cronJobDurationBuilder_ != null || cronJobDuration_ != null; - } - /** - * - * - *
-     * The duration for the cron job event. The duration of the event is effective
-     * after the cron job's start time.
-     * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - * - * @return The cronJobDuration. - */ - public com.google.protobuf.Duration getCronJobDuration() { - if (cronJobDurationBuilder_ == null) { - return cronJobDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cronJobDuration_; - } else { - return cronJobDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The duration for the cron job event. The duration of the event is effective
-     * after the cron job's start time.
-     * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - */ - public Builder setCronJobDuration(com.google.protobuf.Duration value) { - if (cronJobDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cronJobDuration_ = value; - onChanged(); - } else { - cronJobDurationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The duration for the cron job event. The duration of the event is effective
-     * after the cron job's start time.
-     * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - */ - public Builder setCronJobDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (cronJobDurationBuilder_ == null) { - cronJobDuration_ = builderForValue.build(); - onChanged(); - } else { - cronJobDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The duration for the cron job event. The duration of the event is effective
-     * after the cron job's start time.
-     * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - */ - public Builder mergeCronJobDuration(com.google.protobuf.Duration value) { - if (cronJobDurationBuilder_ == null) { - if (cronJobDuration_ != null) { - cronJobDuration_ = - com.google.protobuf.Duration.newBuilder(cronJobDuration_) - .mergeFrom(value) - .buildPartial(); - } else { - cronJobDuration_ = value; - } - onChanged(); - } else { - cronJobDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The duration for the cron job event. The duration of the event is effective
-     * after the cron job's start time.
-     * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - */ - public Builder clearCronJobDuration() { - if (cronJobDurationBuilder_ == null) { - cronJobDuration_ = null; - onChanged(); - } else { - cronJobDuration_ = null; - cronJobDurationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The duration for the cron job event. The duration of the event is effective
-     * after the cron job's start time.
-     * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - */ - public com.google.protobuf.Duration.Builder getCronJobDurationBuilder() { - - onChanged(); - return getCronJobDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The duration for the cron job event. The duration of the event is effective
-     * after the cron job's start time.
-     * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - */ - public com.google.protobuf.DurationOrBuilder getCronJobDurationOrBuilder() { - if (cronJobDurationBuilder_ != null) { - return cronJobDurationBuilder_.getMessageOrBuilder(); - } else { - return cronJobDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cronJobDuration_; - } - } - /** - * - * - *
-     * The duration for the cron job event. The duration of the event is effective
-     * after the cron job's start time.
-     * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getCronJobDurationFieldBuilder() { - if (cronJobDurationBuilder_ == null) { - cronJobDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getCronJobDuration(), getParentForChildren(), isClean()); - cronJobDuration_ = null; - } - return cronJobDurationBuilder_; - } - - private java.lang.Object cronSpec_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string cron_spec = 4; - * - * @return The cronSpec. - */ - public java.lang.String getCronSpec() { - java.lang.Object ref = cronSpec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cronSpec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string cron_spec = 4; - * - * @return The bytes for cronSpec. - */ - public com.google.protobuf.ByteString getCronSpecBytes() { - java.lang.Object ref = cronSpec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cronSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string cron_spec = 4; - * - * @param value The cronSpec to set. - * @return This builder for chaining. - */ - public Builder setCronSpec(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cronSpec_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string cron_spec = 4; - * - * @return This builder for chaining. - */ - public Builder clearCronSpec() { - - cronSpec_ = getDefaultInstance().getCronSpec(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string cron_spec = 4; - * - * @param value The bytes for cronSpec to set. - * @return This builder for chaining. - */ - public Builder setCronSpecBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cronSpec_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.Schedule) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.Schedule) - private static final com.google.cloud.gaming.v1alpha.Schedule DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.Schedule(); - } - - public static com.google.cloud.gaming.v1alpha.Schedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.Schedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScheduleOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScheduleOrBuilder.java deleted file mode 100644 index f598ca28..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScheduleOrBuilder.java +++ /dev/null @@ -1,162 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ScheduleOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.Schedule) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The start time of the event.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * - * - *
-   * The start time of the event.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return The startTime. - */ - com.google.protobuf.Timestamp getStartTime(); - /** - * - * - *
-   * The start time of the event.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); - - /** - * - * - *
-   * The end time of the event.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * - * - *
-   * The end time of the event.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - * - * - *
-   * The end time of the event.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - * - * - *
-   * The duration for the cron job event. The duration of the event is effective
-   * after the cron job's start time.
-   * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - * - * @return Whether the cronJobDuration field is set. - */ - boolean hasCronJobDuration(); - /** - * - * - *
-   * The duration for the cron job event. The duration of the event is effective
-   * after the cron job's start time.
-   * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - * - * @return The cronJobDuration. - */ - com.google.protobuf.Duration getCronJobDuration(); - /** - * - * - *
-   * The duration for the cron job event. The duration of the event is effective
-   * after the cron job's start time.
-   * 
- * - * .google.protobuf.Duration cron_job_duration = 3; - */ - com.google.protobuf.DurationOrBuilder getCronJobDurationOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string cron_spec = 4; - * - * @return The cronSpec. - */ - java.lang.String getCronSpec(); - /** - * - * - *
-   * 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.
-   * 
- * - * string cron_spec = 4; - * - * @return The bytes for cronSpec. - */ - com.google.protobuf.ByteString getCronSpecBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSource.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSource.java deleted file mode 100644 index e44483b3..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSource.java +++ /dev/null @@ -1,823 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Encapsulates fleet spec and autoscaler spec sources.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.SpecSource} - */ -public final class SpecSource extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.SpecSource) - SpecSourceOrBuilder { - private static final long serialVersionUID = 0L; - // Use SpecSource.newBuilder() to construct. - private SpecSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SpecSource() { - gameServerConfigName_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SpecSource(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SpecSource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - gameServerConfigName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_SpecSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.SpecSource.class, - com.google.cloud.gaming.v1alpha.SpecSource.Builder.class); - } - - public static final int GAME_SERVER_CONFIG_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object gameServerConfigName_; - /** - * - * - *
-   * The game server config resource. It is of the form
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
-   * 
- * - * string game_server_config_name = 1; - * - * @return The gameServerConfigName. - */ - public java.lang.String getGameServerConfigName() { - java.lang.Object ref = gameServerConfigName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerConfigName_ = s; - return s; - } - } - /** - * - * - *
-   * The game server config resource. It is of the form
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
-   * 
- * - * string game_server_config_name = 1; - * - * @return The bytes for gameServerConfigName. - */ - public com.google.protobuf.ByteString getGameServerConfigNameBytes() { - java.lang.Object ref = gameServerConfigName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerConfigName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name of the fleet config or scaling config that is used to derive
-   * the fleet or fleet autoscaler spec.
-   * 
- * - * string name = 2; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the fleet config or scaling config that is used to derive
-   * the fleet or fleet autoscaler spec.
-   * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getGameServerConfigNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gameServerConfigName_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGameServerConfigNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gameServerConfigName_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.SpecSource)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.SpecSource other = - (com.google.cloud.gaming.v1alpha.SpecSource) obj; - - if (!getGameServerConfigName().equals(other.getGameServerConfigName())) return false; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GAME_SERVER_CONFIG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGameServerConfigName().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.SpecSource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Encapsulates fleet spec and autoscaler spec sources.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.SpecSource} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.SpecSource) - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_SpecSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.SpecSource.class, - com.google.cloud.gaming.v1alpha.SpecSource.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.SpecSource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - gameServerConfigName_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.SpecSource getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.SpecSource build() { - com.google.cloud.gaming.v1alpha.SpecSource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.SpecSource buildPartial() { - com.google.cloud.gaming.v1alpha.SpecSource result = - new com.google.cloud.gaming.v1alpha.SpecSource(this); - result.gameServerConfigName_ = gameServerConfigName_; - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.SpecSource) { - return mergeFrom((com.google.cloud.gaming.v1alpha.SpecSource) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.SpecSource other) { - if (other == com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance()) return this; - if (!other.getGameServerConfigName().isEmpty()) { - gameServerConfigName_ = other.gameServerConfigName_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.SpecSource parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.SpecSource) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object gameServerConfigName_ = ""; - /** - * - * - *
-     * The game server config resource. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
-     * 
- * - * string game_server_config_name = 1; - * - * @return The gameServerConfigName. - */ - public java.lang.String getGameServerConfigName() { - java.lang.Object ref = gameServerConfigName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerConfigName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The game server config resource. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
-     * 
- * - * string game_server_config_name = 1; - * - * @return The bytes for gameServerConfigName. - */ - public com.google.protobuf.ByteString getGameServerConfigNameBytes() { - java.lang.Object ref = gameServerConfigName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerConfigName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The game server config resource. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
-     * 
- * - * string game_server_config_name = 1; - * - * @param value The gameServerConfigName to set. - * @return This builder for chaining. - */ - public Builder setGameServerConfigName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameServerConfigName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The game server config resource. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
-     * 
- * - * string game_server_config_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearGameServerConfigName() { - - gameServerConfigName_ = getDefaultInstance().getGameServerConfigName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The game server config resource. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
-     * 
- * - * string game_server_config_name = 1; - * - * @param value The bytes for gameServerConfigName to set. - * @return This builder for chaining. - */ - public Builder setGameServerConfigNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameServerConfigName_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name of the fleet config or scaling config that is used to derive
-     * the fleet or fleet autoscaler spec.
-     * 
- * - * string name = 2; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the fleet config or scaling config that is used to derive
-     * the fleet or fleet autoscaler spec.
-     * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the fleet config or scaling config that is used to derive
-     * the fleet or fleet autoscaler spec.
-     * 
- * - * string name = 2; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the fleet config or scaling config that is used to derive
-     * the fleet or fleet autoscaler spec.
-     * 
- * - * string name = 2; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the fleet config or scaling config that is used to derive
-     * the fleet or fleet autoscaler spec.
-     * 
- * - * string name = 2; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.SpecSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.SpecSource) - private static final com.google.cloud.gaming.v1alpha.SpecSource DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.SpecSource(); - } - - public static com.google.cloud.gaming.v1alpha.SpecSource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpecSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpecSource(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.SpecSource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSourceOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSourceOrBuilder.java deleted file mode 100644 index a1176a25..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSourceOrBuilder.java +++ /dev/null @@ -1,79 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public interface SpecSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.SpecSource) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The game server config resource. It is of the form
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
-   * 
- * - * string game_server_config_name = 1; - * - * @return The gameServerConfigName. - */ - java.lang.String getGameServerConfigName(); - /** - * - * - *
-   * The game server config resource. It is of the form
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
-   * 
- * - * string game_server_config_name = 1; - * - * @return The bytes for gameServerConfigName. - */ - com.google.protobuf.ByteString getGameServerConfigNameBytes(); - - /** - * - * - *
-   * The name of the fleet config or scaling config that is used to derive
-   * the fleet or fleet autoscaler spec.
-   * 
- * - * string name = 2; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name of the fleet config or scaling config that is used to derive
-   * the fleet or fleet autoscaler spec.
-   * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetails.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetails.java deleted file mode 100644 index 0edd3cb6..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetails.java +++ /dev/null @@ -1,4610 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Details about the Agones resources.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.TargetDetails} - */ -public final class TargetDetails extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetDetails) - TargetDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use TargetDetails.newBuilder() to construct. - private TargetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TargetDetails() { - gameServerClusterName_ = ""; - gameServerDeploymentName_ = ""; - fleetDetails_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TargetDetails(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TargetDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - gameServerClusterName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - gameServerDeploymentName_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fleetDetails_ = - new java.util.ArrayList< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails>(); - mutable_bitField0_ |= 0x00000001; - } - fleetDetails_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fleetDetails_ = java.util.Collections.unmodifiableList(fleetDetails_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetDetails.class, - com.google.cloud.gaming.v1alpha.TargetDetails.Builder.class); - } - - public interface TargetFleetDetailsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Reference to target fleet.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - * - * @return Whether the fleet field is set. - */ - boolean hasFleet(); - /** - * - * - *
-     * Reference to target fleet.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - * - * @return The fleet. - */ - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet getFleet(); - /** - * - * - *
-     * Reference to target fleet.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - */ - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder - getFleetOrBuilder(); - - /** - * - * - *
-     * Reference to target fleet autoscaling policy.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - * - * @return Whether the autoscaler field is set. - */ - boolean hasAutoscaler(); - /** - * - * - *
-     * Reference to target fleet autoscaling policy.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - * - * @return The autoscaler. - */ - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - getAutoscaler(); - /** - * - * - *
-     * Reference to target fleet autoscaling policy.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - */ - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscalerOrBuilder - getAutoscalerOrBuilder(); - } - /** - * - * - *
-   * Details of the target fleet.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails} - */ - public static final class TargetFleetDetails extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) - TargetFleetDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use TargetFleetDetails.newBuilder() to construct. - private TargetFleetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TargetFleetDetails() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TargetFleetDetails(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TargetFleetDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder - subBuilder = null; - if (fleet_ != null) { - subBuilder = fleet_.toBuilder(); - } - fleet_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fleet_); - fleet_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.Builder - subBuilder = null; - if (autoscaler_ != null) { - subBuilder = autoscaler_.toBuilder(); - } - autoscaler_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoscaler_); - autoscaler_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.class, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder.class); - } - - public interface TargetFleetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * The name of the Agones game server fleet.
-       * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-       * The name of the Agones game server fleet.
-       * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * The fleet spec source.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return Whether the specSource field is set. - */ - boolean hasSpecSource(); - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * The fleet spec source.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return The specSource. - */ - com.google.cloud.gaming.v1alpha.SpecSource getSpecSource(); - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * The fleet spec source.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder(); - } - /** - * - * - *
-     * Target fleet specification.
-     * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet} - */ - public static final class TargetFleet extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) - TargetFleetOrBuilder { - private static final long serialVersionUID = 0L; - // Use TargetFleet.newBuilder() to construct. - private TargetFleet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TargetFleet() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TargetFleet(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TargetFleet( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.cloud.gaming.v1alpha.SpecSource.Builder subBuilder = null; - if (specSource_ != null) { - subBuilder = specSource_.toBuilder(); - } - specSource_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.SpecSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(specSource_); - specSource_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.class, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder - .class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-       * The name of the Agones game server fleet.
-       * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-       * The name of the Agones game server fleet.
-       * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPEC_SOURCE_FIELD_NUMBER = 2; - private com.google.cloud.gaming.v1alpha.SpecSource specSource_; - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * The fleet spec source.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return Whether the specSource field is set. - */ - public boolean hasSpecSource() { - return specSource_ != null; - } - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * The fleet spec source.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return The specSource. - */ - public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * The fleet spec source.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { - return getSpecSource(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (specSource_ != null) { - output.writeMessage(2, getSpecSource()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (specSource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpecSource()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet other = - (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) obj; - - if (!getName().equals(other.getName())) return false; - if (hasSpecSource() != other.hasSpecSource()) return false; - if (hasSpecSource()) { - if (!getSpecSource().equals(other.getSpecSource())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasSpecSource()) { - hash = (37 * hash) + SPEC_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSpecSource().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * Target fleet specification.
-       * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .class, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (specSourceBuilder_ == null) { - specSource_ = null; - } else { - specSource_ = null; - specSourceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - build() { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - buildPartial() { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet result = - new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet( - this); - result.name_ = name_; - if (specSourceBuilder_ == null) { - result.specSource_ = specSource_; - } else { - result.specSource_ = specSourceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet other) { - if (other - == com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasSpecSource()) { - mergeSpecSource(other.getSpecSource()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the Agones game server fleet.
-         * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.SpecSource specSource_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> - specSourceBuilder_; - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * The fleet spec source.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return Whether the specSource field is set. - */ - public boolean hasSpecSource() { - return specSourceBuilder_ != null || specSource_ != null; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * The fleet spec source.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return The specSource. - */ - public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { - if (specSourceBuilder_ == null) { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } else { - return specSourceBuilder_.getMessage(); - } - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * The fleet spec source.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public Builder setSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { - if (specSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - specSource_ = value; - onChanged(); - } else { - specSourceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * The fleet spec source.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public Builder setSpecSource( - com.google.cloud.gaming.v1alpha.SpecSource.Builder builderForValue) { - if (specSourceBuilder_ == null) { - specSource_ = builderForValue.build(); - onChanged(); - } else { - specSourceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * The fleet spec source.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public Builder mergeSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { - if (specSourceBuilder_ == null) { - if (specSource_ != null) { - specSource_ = - com.google.cloud.gaming.v1alpha.SpecSource.newBuilder(specSource_) - .mergeFrom(value) - .buildPartial(); - } else { - specSource_ = value; - } - onChanged(); - } else { - specSourceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * The fleet spec source.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public Builder clearSpecSource() { - if (specSourceBuilder_ == null) { - specSource_ = null; - onChanged(); - } else { - specSource_ = null; - specSourceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * The fleet spec source.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public com.google.cloud.gaming.v1alpha.SpecSource.Builder getSpecSourceBuilder() { - - onChanged(); - return getSpecSourceFieldBuilder().getBuilder(); - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * The fleet spec source.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { - if (specSourceBuilder_ != null) { - return specSourceBuilder_.getMessageOrBuilder(); - } else { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * The fleet spec source.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> - getSpecSourceFieldBuilder() { - if (specSourceBuilder_ == null) { - specSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder>( - getSpecSource(), getParentForChildren(), isClean()); - specSource_ = null; - } - return specSourceBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) - private static final com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleet - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet(); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TargetFleet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TargetFleet(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface TargetFleetAutoscalerOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * Details about the agones autoscaler spec.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return Whether the specSource field is set. - */ - boolean hasSpecSource(); - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * Details about the agones autoscaler spec.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return The specSource. - */ - com.google.cloud.gaming.v1alpha.SpecSource getSpecSource(); - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * Details about the agones autoscaler spec.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder(); - } - /** - * - * - *
-     * Target autoscaler policy reference.
-     * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler} - */ - public static final class TargetFleetAutoscaler extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) - TargetFleetAutoscalerOrBuilder { - private static final long serialVersionUID = 0L; - // Use TargetFleetAutoscaler.newBuilder() to construct. - private TargetFleetAutoscaler(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TargetFleetAutoscaler() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TargetFleetAutoscaler(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TargetFleetAutoscaler( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.cloud.gaming.v1alpha.SpecSource.Builder subBuilder = null; - if (specSource_ != null) { - subBuilder = specSource_.toBuilder(); - } - specSource_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.SpecSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(specSource_); - specSource_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.class, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-       * The name of the Agones autoscaler.
-       * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPEC_SOURCE_FIELD_NUMBER = 2; - private com.google.cloud.gaming.v1alpha.SpecSource specSource_; - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * Details about the agones autoscaler spec.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return Whether the specSource field is set. - */ - public boolean hasSpecSource() { - return specSource_ != null; - } - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * Details about the agones autoscaler spec.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return The specSource. - */ - public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } - /** - * - * - *
-       * Encapsulates the source of the fleet spec.
-       * Details about the agones autoscaler spec.
-       * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { - return getSpecSource(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (specSource_ != null) { - output.writeMessage(2, getSpecSource()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (specSource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpecSource()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - other = - (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler) - obj; - - if (!getName().equals(other.getName())) return false; - if (hasSpecSource() != other.hasSpecSource()) return false; - if (hasSpecSource()) { - if (!getSpecSource().equals(other.getSpecSource())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasSpecSource()) { - hash = (37 * hash) + SPEC_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSpecSource().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-       * Target autoscaler policy reference.
-       * 
- * - * Protobuf type {@code - * google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscalerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.class, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (specSourceBuilder_ == null) { - specSource_ = null; - } else { - specSource_ = null; - specSourceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - build() { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - buildPartial() { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - result = - new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler(this); - result.name_ = name_; - if (specSourceBuilder_ == null) { - result.specSource_ = specSource_; - } else { - result.specSource_ = specSourceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - other) { - if (other - == com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasSpecSource()) { - mergeSpecSource(other.getSpecSource()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-         * The name of the Agones autoscaler.
-         * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.SpecSource specSource_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> - specSourceBuilder_; - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * Details about the agones autoscaler spec.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return Whether the specSource field is set. - */ - public boolean hasSpecSource() { - return specSourceBuilder_ != null || specSource_ != null; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * Details about the agones autoscaler spec.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - * - * @return The specSource. - */ - public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { - if (specSourceBuilder_ == null) { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } else { - return specSourceBuilder_.getMessage(); - } - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * Details about the agones autoscaler spec.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public Builder setSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { - if (specSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - specSource_ = value; - onChanged(); - } else { - specSourceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * Details about the agones autoscaler spec.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public Builder setSpecSource( - com.google.cloud.gaming.v1alpha.SpecSource.Builder builderForValue) { - if (specSourceBuilder_ == null) { - specSource_ = builderForValue.build(); - onChanged(); - } else { - specSourceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * Details about the agones autoscaler spec.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public Builder mergeSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { - if (specSourceBuilder_ == null) { - if (specSource_ != null) { - specSource_ = - com.google.cloud.gaming.v1alpha.SpecSource.newBuilder(specSource_) - .mergeFrom(value) - .buildPartial(); - } else { - specSource_ = value; - } - onChanged(); - } else { - specSourceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * Details about the agones autoscaler spec.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public Builder clearSpecSource() { - if (specSourceBuilder_ == null) { - specSource_ = null; - onChanged(); - } else { - specSource_ = null; - specSourceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * Details about the agones autoscaler spec.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public com.google.cloud.gaming.v1alpha.SpecSource.Builder getSpecSourceBuilder() { - - onChanged(); - return getSpecSourceFieldBuilder().getBuilder(); - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * Details about the agones autoscaler spec.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { - if (specSourceBuilder_ != null) { - return specSourceBuilder_.getMessageOrBuilder(); - } else { - return specSource_ == null - ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() - : specSource_; - } - } - /** - * - * - *
-         * Encapsulates the source of the fleet spec.
-         * Details about the agones autoscaler spec.
-         * 
- * - * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> - getSpecSourceFieldBuilder() { - if (specSourceBuilder_ == null) { - specSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.SpecSource, - com.google.cloud.gaming.v1alpha.SpecSource.Builder, - com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder>( - getSpecSource(), getParentForChildren(), isClean()); - specSource_ = null; - } - return specSourceBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) - private static final com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler(); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TargetFleetAutoscaler parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TargetFleetAutoscaler(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int FLEET_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet_; - /** - * - * - *
-     * Reference to target fleet.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - * - * @return Whether the fleet field is set. - */ - public boolean hasFleet() { - return fleet_ != null; - } - /** - * - * - *
-     * Reference to target fleet.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - * - * @return The fleet. - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet getFleet() { - return fleet_ == null - ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .getDefaultInstance() - : fleet_; - } - /** - * - * - *
-     * Reference to target fleet.
-     * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder - getFleetOrBuilder() { - return getFleet(); - } - - public static final int AUTOSCALER_FIELD_NUMBER = 2; - private com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - autoscaler_; - /** - * - * - *
-     * Reference to target fleet autoscaling policy.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - * - * @return Whether the autoscaler field is set. - */ - public boolean hasAutoscaler() { - return autoscaler_ != null; - } - /** - * - * - *
-     * Reference to target fleet autoscaling policy.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - * - * @return The autoscaler. - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - getAutoscaler() { - return autoscaler_ == null - ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - .getDefaultInstance() - : autoscaler_; - } - /** - * - * - *
-     * Reference to target fleet autoscaling policy.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscalerOrBuilder - getAutoscalerOrBuilder() { - return getAutoscaler(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (fleet_ != null) { - output.writeMessage(1, getFleet()); - } - if (autoscaler_ != null) { - output.writeMessage(2, getAutoscaler()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fleet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFleet()); - } - if (autoscaler_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAutoscaler()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails other = - (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) obj; - - if (hasFleet() != other.hasFleet()) return false; - if (hasFleet()) { - if (!getFleet().equals(other.getFleet())) return false; - } - if (hasAutoscaler() != other.hasAutoscaler()) return false; - if (hasAutoscaler()) { - if (!getAutoscaler().equals(other.getAutoscaler())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFleet()) { - hash = (37 * hash) + FLEET_FIELD_NUMBER; - hash = (53 * hash) + getFleet().hashCode(); - } - if (hasAutoscaler()) { - hash = (37 * hash) + AUTOSCALER_FIELD_NUMBER; - hash = (53 * hash) + getAutoscaler().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Details of the target fleet.
-     * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.class, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (fleetBuilder_ == null) { - fleet_ = null; - } else { - fleet_ = null; - fleetBuilder_ = null; - } - if (autoscalerBuilder_ == null) { - autoscaler_ = null; - } else { - autoscaler_ = null; - autoscalerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails build() { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails buildPartial() { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails result = - new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails(this); - if (fleetBuilder_ == null) { - result.fleet_ = fleet_; - } else { - result.fleet_ = fleetBuilder_.build(); - } - if (autoscalerBuilder_ == null) { - result.autoscaler_ = autoscaler_; - } else { - result.autoscaler_ = autoscalerBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails other) { - if (other - == com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .getDefaultInstance()) return this; - if (other.hasFleet()) { - mergeFleet(other.getFleet()); - } - if (other.hasAutoscaler()) { - mergeAutoscaler(other.getAutoscaler()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder> - fleetBuilder_; - /** - * - * - *
-       * Reference to target fleet.
-       * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - * - * @return Whether the fleet field is set. - */ - public boolean hasFleet() { - return fleetBuilder_ != null || fleet_ != null; - } - /** - * - * - *
-       * Reference to target fleet.
-       * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - * - * @return The fleet. - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - getFleet() { - if (fleetBuilder_ == null) { - return fleet_ == null - ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .getDefaultInstance() - : fleet_; - } else { - return fleetBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Reference to target fleet.
-       * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - */ - public Builder setFleet( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet value) { - if (fleetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fleet_ = value; - onChanged(); - } else { - fleetBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Reference to target fleet.
-       * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - */ - public Builder setFleet( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder - builderForValue) { - if (fleetBuilder_ == null) { - fleet_ = builderForValue.build(); - onChanged(); - } else { - fleetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Reference to target fleet.
-       * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - */ - public Builder mergeFleet( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet value) { - if (fleetBuilder_ == null) { - if (fleet_ != null) { - fleet_ = - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .newBuilder(fleet_) - .mergeFrom(value) - .buildPartial(); - } else { - fleet_ = value; - } - onChanged(); - } else { - fleetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Reference to target fleet.
-       * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - */ - public Builder clearFleet() { - if (fleetBuilder_ == null) { - fleet_ = null; - onChanged(); - } else { - fleet_ = null; - fleetBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Reference to target fleet.
-       * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder - getFleetBuilder() { - - onChanged(); - return getFleetFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Reference to target fleet.
-       * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder - getFleetOrBuilder() { - if (fleetBuilder_ != null) { - return fleetBuilder_.getMessageOrBuilder(); - } else { - return fleet_ == null - ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .getDefaultInstance() - : fleet_; - } - } - /** - * - * - *
-       * Reference to target fleet.
-       * 
- * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder> - getFleetFieldBuilder() { - if (fleetBuilder_ == null) { - fleetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet - .Builder, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetOrBuilder>(getFleet(), getParentForChildren(), isClean()); - fleet_ = null; - } - return fleetBuilder_; - } - - private com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - autoscaler_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - .Builder, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscalerOrBuilder> - autoscalerBuilder_; - /** - * - * - *
-       * Reference to target fleet autoscaling policy.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - * - * @return Whether the autoscaler field is set. - */ - public boolean hasAutoscaler() { - return autoscalerBuilder_ != null || autoscaler_ != null; - } - /** - * - * - *
-       * Reference to target fleet autoscaling policy.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - * - * @return The autoscaler. - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - getAutoscaler() { - if (autoscalerBuilder_ == null) { - return autoscaler_ == null - ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.getDefaultInstance() - : autoscaler_; - } else { - return autoscalerBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Reference to target fleet autoscaling policy.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - */ - public Builder setAutoscaler( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - value) { - if (autoscalerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaler_ = value; - onChanged(); - } else { - autoscalerBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Reference to target fleet autoscaling policy.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - */ - public Builder setAutoscaler( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - .Builder - builderForValue) { - if (autoscalerBuilder_ == null) { - autoscaler_ = builderForValue.build(); - onChanged(); - } else { - autoscalerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Reference to target fleet autoscaling policy.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - */ - public Builder mergeAutoscaler( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - value) { - if (autoscalerBuilder_ == null) { - if (autoscaler_ != null) { - autoscaler_ = - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.newBuilder(autoscaler_) - .mergeFrom(value) - .buildPartial(); - } else { - autoscaler_ = value; - } - onChanged(); - } else { - autoscalerBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Reference to target fleet autoscaling policy.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - */ - public Builder clearAutoscaler() { - if (autoscalerBuilder_ == null) { - autoscaler_ = null; - onChanged(); - } else { - autoscaler_ = null; - autoscalerBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Reference to target fleet autoscaling policy.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - .Builder - getAutoscalerBuilder() { - - onChanged(); - return getAutoscalerFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Reference to target fleet autoscaling policy.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscalerOrBuilder - getAutoscalerOrBuilder() { - if (autoscalerBuilder_ != null) { - return autoscalerBuilder_.getMessageOrBuilder(); - } else { - return autoscaler_ == null - ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.getDefaultInstance() - : autoscaler_; - } - } - /** - * - * - *
-       * Reference to target fleet autoscaling policy.
-       * 
- * - * - * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - .Builder, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscalerOrBuilder> - getAutoscalerFieldBuilder() { - if (autoscalerBuilder_ == null) { - autoscalerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscaler.Builder, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .TargetFleetAutoscalerOrBuilder>( - getAutoscaler(), getParentForChildren(), isClean()); - autoscaler_ = null; - } - return autoscalerBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) - private static final com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails(); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TargetFleetDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TargetFleetDetails(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int GAME_SERVER_CLUSTER_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object gameServerClusterName_; - /** - * - * - *
-   * The game server cluster name. It is of the form
-   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
-   * 
- * - * string game_server_cluster_name = 1; - * - * @return The gameServerClusterName. - */ - public java.lang.String getGameServerClusterName() { - java.lang.Object ref = gameServerClusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerClusterName_ = s; - return s; - } - } - /** - * - * - *
-   * The game server cluster name. It is of the form
-   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
-   * 
- * - * string game_server_cluster_name = 1; - * - * @return The bytes for gameServerClusterName. - */ - public com.google.protobuf.ByteString getGameServerClusterNameBytes() { - java.lang.Object ref = gameServerClusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerClusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GAME_SERVER_DEPLOYMENT_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object gameServerDeploymentName_; - /** - * - * - *
-   * The game server deployment name. It is of the form
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
-   * 
- * - * string game_server_deployment_name = 2; - * - * @return The gameServerDeploymentName. - */ - public java.lang.String getGameServerDeploymentName() { - java.lang.Object ref = gameServerDeploymentName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerDeploymentName_ = s; - return s; - } - } - /** - * - * - *
-   * The game server deployment name. It is of the form
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
-   * 
- * - * string game_server_deployment_name = 2; - * - * @return The bytes for gameServerDeploymentName. - */ - public com.google.protobuf.ByteString getGameServerDeploymentNameBytes() { - java.lang.Object ref = gameServerDeploymentName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerDeploymentName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FLEET_DETAILS_FIELD_NUMBER = 3; - private java.util.List - fleetDetails_; - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public java.util.List - getFleetDetailsList() { - return fleetDetails_; - } - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public java.util.List< - ? extends com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> - getFleetDetailsOrBuilderList() { - return fleetDetails_; - } - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public int getFleetDetailsCount() { - return fleetDetails_.size(); - } - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails getFleetDetails( - int index) { - return fleetDetails_.get(index); - } - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder - getFleetDetailsOrBuilder(int index) { - return fleetDetails_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getGameServerClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gameServerClusterName_); - } - if (!getGameServerDeploymentNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gameServerDeploymentName_); - } - for (int i = 0; i < fleetDetails_.size(); i++) { - output.writeMessage(3, fleetDetails_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGameServerClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gameServerClusterName_); - } - if (!getGameServerDeploymentNameBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gameServerDeploymentName_); - } - for (int i = 0; i < fleetDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fleetDetails_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.TargetDetails)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.TargetDetails other = - (com.google.cloud.gaming.v1alpha.TargetDetails) obj; - - if (!getGameServerClusterName().equals(other.getGameServerClusterName())) return false; - if (!getGameServerDeploymentName().equals(other.getGameServerDeploymentName())) return false; - if (!getFleetDetailsList().equals(other.getFleetDetailsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GAME_SERVER_CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGameServerClusterName().hashCode(); - hash = (37 * hash) + GAME_SERVER_DEPLOYMENT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGameServerDeploymentName().hashCode(); - if (getFleetDetailsCount() > 0) { - hash = (37 * hash) + FLEET_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getFleetDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.TargetDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Details about the Agones resources.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.TargetDetails} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetDetails) - com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetDetails.class, - com.google.cloud.gaming.v1alpha.TargetDetails.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.TargetDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFleetDetailsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - gameServerClusterName_ = ""; - - gameServerDeploymentName_ = ""; - - if (fleetDetailsBuilder_ == null) { - fleetDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - fleetDetailsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.TargetDetails.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails build() { - com.google.cloud.gaming.v1alpha.TargetDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails buildPartial() { - com.google.cloud.gaming.v1alpha.TargetDetails result = - new com.google.cloud.gaming.v1alpha.TargetDetails(this); - int from_bitField0_ = bitField0_; - result.gameServerClusterName_ = gameServerClusterName_; - result.gameServerDeploymentName_ = gameServerDeploymentName_; - if (fleetDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - fleetDetails_ = java.util.Collections.unmodifiableList(fleetDetails_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fleetDetails_ = fleetDetails_; - } else { - result.fleetDetails_ = fleetDetailsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.TargetDetails) { - return mergeFrom((com.google.cloud.gaming.v1alpha.TargetDetails) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.TargetDetails other) { - if (other == com.google.cloud.gaming.v1alpha.TargetDetails.getDefaultInstance()) return this; - if (!other.getGameServerClusterName().isEmpty()) { - gameServerClusterName_ = other.gameServerClusterName_; - onChanged(); - } - if (!other.getGameServerDeploymentName().isEmpty()) { - gameServerDeploymentName_ = other.gameServerDeploymentName_; - onChanged(); - } - if (fleetDetailsBuilder_ == null) { - if (!other.fleetDetails_.isEmpty()) { - if (fleetDetails_.isEmpty()) { - fleetDetails_ = other.fleetDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFleetDetailsIsMutable(); - fleetDetails_.addAll(other.fleetDetails_); - } - onChanged(); - } - } else { - if (!other.fleetDetails_.isEmpty()) { - if (fleetDetailsBuilder_.isEmpty()) { - fleetDetailsBuilder_.dispose(); - fleetDetailsBuilder_ = null; - fleetDetails_ = other.fleetDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - fleetDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFleetDetailsFieldBuilder() - : null; - } else { - fleetDetailsBuilder_.addAllMessages(other.fleetDetails_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.TargetDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.TargetDetails) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object gameServerClusterName_ = ""; - /** - * - * - *
-     * The game server cluster name. It is of the form
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
-     * 
- * - * string game_server_cluster_name = 1; - * - * @return The gameServerClusterName. - */ - public java.lang.String getGameServerClusterName() { - java.lang.Object ref = gameServerClusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerClusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The game server cluster name. It is of the form
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
-     * 
- * - * string game_server_cluster_name = 1; - * - * @return The bytes for gameServerClusterName. - */ - public com.google.protobuf.ByteString getGameServerClusterNameBytes() { - java.lang.Object ref = gameServerClusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerClusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The game server cluster name. It is of the form
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
-     * 
- * - * string game_server_cluster_name = 1; - * - * @param value The gameServerClusterName to set. - * @return This builder for chaining. - */ - public Builder setGameServerClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameServerClusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The game server cluster name. It is of the form
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
-     * 
- * - * string game_server_cluster_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearGameServerClusterName() { - - gameServerClusterName_ = getDefaultInstance().getGameServerClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The game server cluster name. It is of the form
-     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
-     * 
- * - * string game_server_cluster_name = 1; - * - * @param value The bytes for gameServerClusterName to set. - * @return This builder for chaining. - */ - public Builder setGameServerClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameServerClusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object gameServerDeploymentName_ = ""; - /** - * - * - *
-     * The game server deployment name. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
-     * 
- * - * string game_server_deployment_name = 2; - * - * @return The gameServerDeploymentName. - */ - public java.lang.String getGameServerDeploymentName() { - java.lang.Object ref = gameServerDeploymentName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerDeploymentName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The game server deployment name. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
-     * 
- * - * string game_server_deployment_name = 2; - * - * @return The bytes for gameServerDeploymentName. - */ - public com.google.protobuf.ByteString getGameServerDeploymentNameBytes() { - java.lang.Object ref = gameServerDeploymentName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerDeploymentName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The game server deployment name. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
-     * 
- * - * string game_server_deployment_name = 2; - * - * @param value The gameServerDeploymentName to set. - * @return This builder for chaining. - */ - public Builder setGameServerDeploymentName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameServerDeploymentName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The game server deployment name. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
-     * 
- * - * string game_server_deployment_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearGameServerDeploymentName() { - - gameServerDeploymentName_ = getDefaultInstance().getGameServerDeploymentName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The game server deployment name. It is of the form
-     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
-     * 
- * - * string game_server_deployment_name = 2; - * - * @param value The bytes for gameServerDeploymentName to set. - * @return This builder for chaining. - */ - public Builder setGameServerDeploymentNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameServerDeploymentName_ = value; - onChanged(); - return this; - } - - private java.util.List - fleetDetails_ = java.util.Collections.emptyList(); - - private void ensureFleetDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fleetDetails_ = - new java.util.ArrayList< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails>(fleetDetails_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> - fleetDetailsBuilder_; - - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public java.util.List - getFleetDetailsList() { - if (fleetDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(fleetDetails_); - } else { - return fleetDetailsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public int getFleetDetailsCount() { - if (fleetDetailsBuilder_ == null) { - return fleetDetails_.size(); - } else { - return fleetDetailsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails getFleetDetails( - int index) { - if (fleetDetailsBuilder_ == null) { - return fleetDetails_.get(index); - } else { - return fleetDetailsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public Builder setFleetDetails( - int index, com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails value) { - if (fleetDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFleetDetailsIsMutable(); - fleetDetails_.set(index, value); - onChanged(); - } else { - fleetDetailsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public Builder setFleetDetails( - int index, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder builderForValue) { - if (fleetDetailsBuilder_ == null) { - ensureFleetDetailsIsMutable(); - fleetDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - fleetDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public Builder addFleetDetails( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails value) { - if (fleetDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFleetDetailsIsMutable(); - fleetDetails_.add(value); - onChanged(); - } else { - fleetDetailsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public Builder addFleetDetails( - int index, com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails value) { - if (fleetDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFleetDetailsIsMutable(); - fleetDetails_.add(index, value); - onChanged(); - } else { - fleetDetailsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public Builder addFleetDetails( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder builderForValue) { - if (fleetDetailsBuilder_ == null) { - ensureFleetDetailsIsMutable(); - fleetDetails_.add(builderForValue.build()); - onChanged(); - } else { - fleetDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public Builder addFleetDetails( - int index, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder builderForValue) { - if (fleetDetailsBuilder_ == null) { - ensureFleetDetailsIsMutable(); - fleetDetails_.add(index, builderForValue.build()); - onChanged(); - } else { - fleetDetailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public Builder addAllFleetDetails( - java.lang.Iterable< - ? extends com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails> - values) { - if (fleetDetailsBuilder_ == null) { - ensureFleetDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fleetDetails_); - onChanged(); - } else { - fleetDetailsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public Builder clearFleetDetails() { - if (fleetDetailsBuilder_ == null) { - fleetDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - fleetDetailsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public Builder removeFleetDetails(int index) { - if (fleetDetailsBuilder_ == null) { - ensureFleetDetailsIsMutable(); - fleetDetails_.remove(index); - onChanged(); - } else { - fleetDetailsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder - getFleetDetailsBuilder(int index) { - return getFleetDetailsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder - getFleetDetailsOrBuilder(int index) { - if (fleetDetailsBuilder_ == null) { - return fleetDetails_.get(index); - } else { - return fleetDetailsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public java.util.List< - ? extends com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> - getFleetDetailsOrBuilderList() { - if (fleetDetailsBuilder_ != null) { - return fleetDetailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fleetDetails_); - } - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder - addFleetDetailsBuilder() { - return getFleetDetailsFieldBuilder() - .addBuilder( - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .getDefaultInstance()); - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder - addFleetDetailsBuilder(int index) { - return getFleetDetailsFieldBuilder() - .addBuilder( - index, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails - .getDefaultInstance()); - } - /** - * - * - *
-     * Agones fleet details for game server clusters and deployments.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - public java.util.List - getFleetDetailsBuilderList() { - return getFleetDetailsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> - getFleetDetailsFieldBuilder() { - if (fleetDetailsBuilder_ == null) { - fleetDetailsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder, - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder>( - fleetDetails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - fleetDetails_ = null; - } - return fleetDetailsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.TargetDetails) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetDetails) - private static final com.google.cloud.gaming.v1alpha.TargetDetails DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.TargetDetails(); - } - - public static com.google.cloud.gaming.v1alpha.TargetDetails getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TargetDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TargetDetails(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetDetails getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetailsOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetailsOrBuilder.java deleted file mode 100644 index 62fc394d..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetailsOrBuilder.java +++ /dev/null @@ -1,139 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public interface TargetDetailsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetDetails) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The game server cluster name. It is of the form
-   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
-   * 
- * - * string game_server_cluster_name = 1; - * - * @return The gameServerClusterName. - */ - java.lang.String getGameServerClusterName(); - /** - * - * - *
-   * The game server cluster name. It is of the form
-   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
-   * 
- * - * string game_server_cluster_name = 1; - * - * @return The bytes for gameServerClusterName. - */ - com.google.protobuf.ByteString getGameServerClusterNameBytes(); - - /** - * - * - *
-   * The game server deployment name. It is of the form
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
-   * 
- * - * string game_server_deployment_name = 2; - * - * @return The gameServerDeploymentName. - */ - java.lang.String getGameServerDeploymentName(); - /** - * - * - *
-   * The game server deployment name. It is of the form
-   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
-   * 
- * - * string game_server_deployment_name = 2; - * - * @return The bytes for gameServerDeploymentName. - */ - com.google.protobuf.ByteString getGameServerDeploymentNameBytes(); - - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - java.util.List - getFleetDetailsList(); - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails getFleetDetails(int index); - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - int getFleetDetailsCount(); - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - java.util.List< - ? extends com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> - getFleetDetailsOrBuilderList(); - /** - * - * - *
-   * Agones fleet details for game server clusters and deployments.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; - * - */ - com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder - getFleetDetailsOrBuilder(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetState.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetState.java deleted file mode 100644 index 6520c171..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetState.java +++ /dev/null @@ -1,943 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Encapsulates the Target state.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.TargetState} - */ -public final class TargetState extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetState) - TargetStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use TargetState.newBuilder() to construct. - private TargetState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TargetState() { - details_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TargetState(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TargetState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - details_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.TargetDetails.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = java.util.Collections.unmodifiableList(details_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetState.class, - com.google.cloud.gaming.v1alpha.TargetState.Builder.class); - } - - public static final int DETAILS_FIELD_NUMBER = 1; - private java.util.List details_; - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public java.util.List getDetailsList() { - return details_; - } - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public java.util.List - getDetailsOrBuilderList() { - return details_; - } - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public int getDetailsCount() { - return details_.size(); - } - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public com.google.cloud.gaming.v1alpha.TargetDetails getDetails(int index) { - return details_.get(index); - } - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder getDetailsOrBuilder(int index) { - return details_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < details_.size(); i++) { - output.writeMessage(1, details_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < details_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, details_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.TargetState)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.TargetState other = - (com.google.cloud.gaming.v1alpha.TargetState) obj; - - if (!getDetailsList().equals(other.getDetailsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDetailsCount() > 0) { - hash = (37 * hash) + DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.TargetState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.TargetState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Encapsulates the Target state.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.TargetState} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetState) - com.google.cloud.gaming.v1alpha.TargetStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.TargetState.class, - com.google.cloud.gaming.v1alpha.TargetState.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.TargetState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDetailsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (detailsBuilder_ == null) { - details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - detailsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Common - .internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetState getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetState build() { - com.google.cloud.gaming.v1alpha.TargetState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetState buildPartial() { - com.google.cloud.gaming.v1alpha.TargetState result = - new com.google.cloud.gaming.v1alpha.TargetState(this); - int from_bitField0_ = bitField0_; - if (detailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - details_ = java.util.Collections.unmodifiableList(details_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.details_ = details_; - } else { - result.details_ = detailsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.TargetState) { - return mergeFrom((com.google.cloud.gaming.v1alpha.TargetState) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.TargetState other) { - if (other == com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance()) return this; - if (detailsBuilder_ == null) { - if (!other.details_.isEmpty()) { - if (details_.isEmpty()) { - details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDetailsIsMutable(); - details_.addAll(other.details_); - } - onChanged(); - } - } else { - if (!other.details_.isEmpty()) { - if (detailsBuilder_.isEmpty()) { - detailsBuilder_.dispose(); - detailsBuilder_ = null; - details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000001); - detailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDetailsFieldBuilder() - : null; - } else { - detailsBuilder_.addAllMessages(other.details_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.TargetState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.TargetState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List details_ = - java.util.Collections.emptyList(); - - private void ensureDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - details_ = new java.util.ArrayList(details_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails, - com.google.cloud.gaming.v1alpha.TargetDetails.Builder, - com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder> - detailsBuilder_; - - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public java.util.List getDetailsList() { - if (detailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(details_); - } else { - return detailsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public int getDetailsCount() { - if (detailsBuilder_ == null) { - return details_.size(); - } else { - return detailsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public com.google.cloud.gaming.v1alpha.TargetDetails getDetails(int index) { - if (detailsBuilder_ == null) { - return details_.get(index); - } else { - return detailsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public Builder setDetails(int index, com.google.cloud.gaming.v1alpha.TargetDetails value) { - if (detailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDetailsIsMutable(); - details_.set(index, value); - onChanged(); - } else { - detailsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public Builder setDetails( - int index, com.google.cloud.gaming.v1alpha.TargetDetails.Builder builderForValue) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.set(index, builderForValue.build()); - onChanged(); - } else { - detailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public Builder addDetails(com.google.cloud.gaming.v1alpha.TargetDetails value) { - if (detailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDetailsIsMutable(); - details_.add(value); - onChanged(); - } else { - detailsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public Builder addDetails(int index, com.google.cloud.gaming.v1alpha.TargetDetails value) { - if (detailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDetailsIsMutable(); - details_.add(index, value); - onChanged(); - } else { - detailsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public Builder addDetails( - com.google.cloud.gaming.v1alpha.TargetDetails.Builder builderForValue) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.add(builderForValue.build()); - onChanged(); - } else { - detailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public Builder addDetails( - int index, com.google.cloud.gaming.v1alpha.TargetDetails.Builder builderForValue) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.add(index, builderForValue.build()); - onChanged(); - } else { - detailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public Builder addAllDetails( - java.lang.Iterable values) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, details_); - onChanged(); - } else { - detailsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public Builder clearDetails() { - if (detailsBuilder_ == null) { - details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - detailsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public Builder removeDetails(int index) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.remove(index); - onChanged(); - } else { - detailsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.Builder getDetailsBuilder(int index) { - return getDetailsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder getDetailsOrBuilder(int index) { - if (detailsBuilder_ == null) { - return details_.get(index); - } else { - return detailsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public java.util.List - getDetailsOrBuilderList() { - if (detailsBuilder_ != null) { - return detailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(details_); - } - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.Builder addDetailsBuilder() { - return getDetailsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.TargetDetails.getDefaultInstance()); - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public com.google.cloud.gaming.v1alpha.TargetDetails.Builder addDetailsBuilder(int index) { - return getDetailsFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.TargetDetails.getDefaultInstance()); - } - /** - * - * - *
-     * Details about fleets.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - public java.util.List - getDetailsBuilderList() { - return getDetailsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails, - com.google.cloud.gaming.v1alpha.TargetDetails.Builder, - com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder> - getDetailsFieldBuilder() { - if (detailsBuilder_ == null) { - detailsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.TargetDetails, - com.google.cloud.gaming.v1alpha.TargetDetails.Builder, - com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder>( - details_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - details_ = null; - } - return detailsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.TargetState) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetState) - private static final com.google.cloud.gaming.v1alpha.TargetState DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.TargetState(); - } - - public static com.google.cloud.gaming.v1alpha.TargetState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TargetState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TargetState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.TargetState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetStateOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetStateOrBuilder.java deleted file mode 100644 index 8dc816e7..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetStateOrBuilder.java +++ /dev/null @@ -1,77 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/common.proto - -package com.google.cloud.gaming.v1alpha; - -public interface TargetStateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetState) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - java.util.List getDetailsList(); - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - com.google.cloud.gaming.v1alpha.TargetDetails getDetails(int index); - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - int getDetailsCount(); - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - java.util.List - getDetailsOrBuilderList(); - /** - * - * - *
-   * Details about fleets.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; - */ - com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder getDetailsOrBuilder(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequest.java deleted file mode 100644 index 682635b4..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequest.java +++ /dev/null @@ -1,1107 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerClustersService.UpdateGameServerCluster.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest} - */ -public final class UpdateGameServerClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) - UpdateGameServerClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateGameServerClusterRequest.newBuilder() to construct. - private UpdateGameServerClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateGameServerClusterRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateGameServerClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateGameServerClusterRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder subBuilder = null; - if (gameServerCluster_ != null) { - subBuilder = gameServerCluster_.toBuilder(); - } - gameServerCluster_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerCluster.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameServerCluster_); - gameServerCluster_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest.Builder.class); - } - - public static final int GAME_SERVER_CLUSTER_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - public boolean hasGameServerCluster() { - return gameServerCluster_ != null; - } - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder - getGameServerClusterOrBuilder() { - return getGameServerCluster(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (gameServerCluster_ != null) { - output.writeMessage(1, getGameServerCluster()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gameServerCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGameServerCluster()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest other = - (com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) obj; - - if (hasGameServerCluster() != other.hasGameServerCluster()) return false; - if (hasGameServerCluster()) { - if (!getGameServerCluster().equals(other.getGameServerCluster())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGameServerCluster()) { - hash = (37 * hash) + GAME_SERVER_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getGameServerCluster().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerClustersService.UpdateGameServerCluster.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest.class, - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = null; - } else { - gameServerCluster_ = null; - gameServerClusterBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerClusters - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest build() { - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest buildPartial() { - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest result = - new com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest(this); - if (gameServerClusterBuilder_ == null) { - result.gameServerCluster_ = gameServerCluster_; - } else { - result.gameServerCluster_ = gameServerClusterBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest.getDefaultInstance()) - return this; - if (other.hasGameServerCluster()) { - mergeGameServerCluster(other.getGameServerCluster()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - gameServerClusterBuilder_; - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - public boolean hasGameServerCluster() { - return gameServerClusterBuilder_ != null || gameServerCluster_ != null; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { - if (gameServerClusterBuilder_ == null) { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } else { - return gameServerClusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gameServerCluster_ = value; - onChanged(); - } else { - gameServerClusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerCluster( - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = builderForValue.build(); - onChanged(); - } else { - gameServerClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { - if (gameServerClusterBuilder_ == null) { - if (gameServerCluster_ != null) { - gameServerCluster_ = - com.google.cloud.gaming.v1alpha.GameServerCluster.newBuilder(gameServerCluster_) - .mergeFrom(value) - .buildPartial(); - } else { - gameServerCluster_ = value; - } - onChanged(); - } else { - gameServerClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGameServerCluster() { - if (gameServerClusterBuilder_ == null) { - gameServerCluster_ = null; - onChanged(); - } else { - gameServerCluster_ = null; - gameServerClusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerClusterBuilder() { - - onChanged(); - return getGameServerClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder - getGameServerClusterOrBuilder() { - if (gameServerClusterBuilder_ != null) { - return gameServerClusterBuilder_.getMessageOrBuilder(); - } else { - return gameServerCluster_ == null - ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() - : gameServerCluster_; - } - } - /** - * - * - *
-     * Required. The game server cluster to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> - getGameServerClusterFieldBuilder() { - if (gameServerClusterBuilder_ == null) { - gameServerClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerCluster, - com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder>( - getGameServerCluster(), getParentForChildren(), isClean()); - gameServerCluster_ = null; - } - return gameServerClusterBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) - private static final com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest(); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGameServerClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateGameServerClusterRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequestOrBuilder.java deleted file mode 100644 index ca553b16..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequestOrBuilder.java +++ /dev/null @@ -1,119 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_clusters.proto - -package com.google.cloud.gaming.v1alpha; - -public interface UpdateGameServerClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerCluster field is set. - */ - boolean hasGameServerCluster(); - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerCluster. - */ - com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster(); - /** - * - * - *
-   * Required. The game server cluster to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder(); - - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequest.java deleted file mode 100644 index 33cf7d47..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequest.java +++ /dev/null @@ -1,1116 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for GameServerDeploymentsService.UpdateGameServerDeployment.
- * Only allows updates for labels.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest} - */ -public final class UpdateGameServerDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) - UpdateGameServerDeploymentRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateGameServerDeploymentRequest.newBuilder() to construct. - private UpdateGameServerDeploymentRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateGameServerDeploymentRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateGameServerDeploymentRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateGameServerDeploymentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder subBuilder = null; - if (gameServerDeployment_ != null) { - subBuilder = gameServerDeployment_.toBuilder(); - } - gameServerDeployment_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerDeployment.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameServerDeployment_); - gameServerDeployment_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest.class, - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest.Builder.class); - } - - public static final int GAME_SERVER_DEPLOYMENT_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.GameServerDeployment gameServerDeployment_; - /** - * - * - *
-   * Required. The game server deployment to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerDeployment field is set. - */ - public boolean hasGameServerDeployment() { - return gameServerDeployment_ != null; - } - /** - * - * - *
-   * Required. The game server deployment to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerDeployment. - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment() { - return gameServerDeployment_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance() - : gameServerDeployment_; - } - /** - * - * - *
-   * Required. The game server deployment to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder - getGameServerDeploymentOrBuilder() { - return getGameServerDeployment(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (gameServerDeployment_ != null) { - output.writeMessage(1, getGameServerDeployment()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gameServerDeployment_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGameServerDeployment()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest other = - (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) obj; - - if (hasGameServerDeployment() != other.hasGameServerDeployment()) return false; - if (hasGameServerDeployment()) { - if (!getGameServerDeployment().equals(other.getGameServerDeployment())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGameServerDeployment()) { - hash = (37 * hash) + GAME_SERVER_DEPLOYMENT_FIELD_NUMBER; - hash = (53 * hash) + getGameServerDeployment().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GameServerDeploymentsService.UpdateGameServerDeployment.
-   * Only allows updates for labels.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest.class, - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest.Builder.class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (gameServerDeploymentBuilder_ == null) { - gameServerDeployment_ = null; - } else { - gameServerDeployment_ = null; - gameServerDeploymentBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest build() { - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest buildPartial() { - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest result = - new com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest(this); - if (gameServerDeploymentBuilder_ == null) { - result.gameServerDeployment_ = gameServerDeployment_; - } else { - result.gameServerDeployment_ = gameServerDeploymentBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest.getDefaultInstance()) - return this; - if (other.hasGameServerDeployment()) { - mergeGameServerDeployment(other.getGameServerDeployment()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerDeployment gameServerDeployment_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeployment, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder> - gameServerDeploymentBuilder_; - /** - * - * - *
-     * Required. The game server deployment to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerDeployment field is set. - */ - public boolean hasGameServerDeployment() { - return gameServerDeploymentBuilder_ != null || gameServerDeployment_ != null; - } - /** - * - * - *
-     * Required. The game server deployment to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerDeployment. - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment() { - if (gameServerDeploymentBuilder_ == null) { - return gameServerDeployment_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance() - : gameServerDeployment_; - } else { - return gameServerDeploymentBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server deployment to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerDeployment( - com.google.cloud.gaming.v1alpha.GameServerDeployment value) { - if (gameServerDeploymentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gameServerDeployment_ = value; - onChanged(); - } else { - gameServerDeploymentBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGameServerDeployment( - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder builderForValue) { - if (gameServerDeploymentBuilder_ == null) { - gameServerDeployment_ = builderForValue.build(); - onChanged(); - } else { - gameServerDeploymentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGameServerDeployment( - com.google.cloud.gaming.v1alpha.GameServerDeployment value) { - if (gameServerDeploymentBuilder_ == null) { - if (gameServerDeployment_ != null) { - gameServerDeployment_ = - com.google.cloud.gaming.v1alpha.GameServerDeployment.newBuilder(gameServerDeployment_) - .mergeFrom(value) - .buildPartial(); - } else { - gameServerDeployment_ = value; - } - onChanged(); - } else { - gameServerDeploymentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGameServerDeployment() { - if (gameServerDeploymentBuilder_ == null) { - gameServerDeployment_ = null; - onChanged(); - } else { - gameServerDeployment_ = null; - gameServerDeploymentBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder - getGameServerDeploymentBuilder() { - - onChanged(); - return getGameServerDeploymentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server deployment to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder - getGameServerDeploymentOrBuilder() { - if (gameServerDeploymentBuilder_ != null) { - return gameServerDeploymentBuilder_.getMessageOrBuilder(); - } else { - return gameServerDeployment_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeployment.getDefaultInstance() - : gameServerDeployment_; - } - } - /** - * - * - *
-     * Required. The game server deployment to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeployment, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder> - getGameServerDeploymentFieldBuilder() { - if (gameServerDeploymentBuilder_ == null) { - gameServerDeploymentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeployment, - com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder>( - getGameServerDeployment(), getParentForChildren(), isClean()); - gameServerDeployment_ = null; - } - return gameServerDeploymentBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) - private static final com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest(); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGameServerDeploymentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateGameServerDeploymentRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequestOrBuilder.java deleted file mode 100644 index 9a5937e6..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequestOrBuilder.java +++ /dev/null @@ -1,119 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface UpdateGameServerDeploymentRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The game server deployment to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gameServerDeployment field is set. - */ - boolean hasGameServerDeployment(); - /** - * - * - *
-   * Required. The game server deployment to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gameServerDeployment. - */ - com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment(); - /** - * - * - *
-   * Required. The game server deployment to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeploymentOrBuilder(); - - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequest.java deleted file mode 100644 index 98dce95e..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequest.java +++ /dev/null @@ -1,1120 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for
- * GameServerDeploymentsService.UpdateGameServerRolloutDeployment.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest} - */ -public final class UpdateGameServerDeploymentRolloutRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) - UpdateGameServerDeploymentRolloutRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateGameServerDeploymentRolloutRequest.newBuilder() to construct. - private UpdateGameServerDeploymentRolloutRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateGameServerDeploymentRolloutRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateGameServerDeploymentRolloutRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateGameServerDeploymentRolloutRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder subBuilder = null; - if (rollout_ != null) { - subBuilder = rollout_.toBuilder(); - } - rollout_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rollout_); - rollout_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.class, - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.Builder.class); - } - - public static final int ROLLOUT_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout_; - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the rollout field is set. - */ - public boolean hasRollout() { - return rollout_ != null; - } - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The rollout. - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout() { - return rollout_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() - : rollout_; - } - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder - getRolloutOrBuilder() { - return getRollout(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (rollout_ != null) { - output.writeMessage(1, getRollout()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rollout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRollout()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest other = - (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) obj; - - if (hasRollout() != other.hasRollout()) return false; - if (hasRollout()) { - if (!getRollout().equals(other.getRollout())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRollout()) { - hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; - hash = (53 * hash) + getRollout().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for
-   * GameServerDeploymentsService.UpdateGameServerRolloutDeployment.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.class, - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (rolloutBuilder_ == null) { - rollout_ = null; - } else { - rollout_ = null; - rolloutBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest build() { - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest buildPartial() { - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest result = - new com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest(this); - if (rolloutBuilder_ == null) { - result.rollout_ = rollout_; - } else { - result.rollout_ = rolloutBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest other) { - if (other - == com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest - .getDefaultInstance()) return this; - if (other.hasRollout()) { - mergeRollout(other.getRollout()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder> - rolloutBuilder_; - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the rollout field is set. - */ - public boolean hasRollout() { - return rolloutBuilder_ != null || rollout_ != null; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The rollout. - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout() { - if (rolloutBuilder_ == null) { - return rollout_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() - : rollout_; - } else { - return rolloutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRollout(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout value) { - if (rolloutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rollout_ = value; - onChanged(); - } else { - rolloutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRollout( - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder builderForValue) { - if (rolloutBuilder_ == null) { - rollout_ = builderForValue.build(); - onChanged(); - } else { - rolloutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRollout(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout value) { - if (rolloutBuilder_ == null) { - if (rollout_ != null) { - rollout_ = - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.newBuilder(rollout_) - .mergeFrom(value) - .buildPartial(); - } else { - rollout_ = value; - } - onChanged(); - } else { - rolloutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRollout() { - if (rolloutBuilder_ == null) { - rollout_ = null; - onChanged(); - } else { - rollout_ = null; - rolloutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder getRolloutBuilder() { - - onChanged(); - return getRolloutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder - getRolloutOrBuilder() { - if (rolloutBuilder_ != null) { - return rolloutBuilder_.getMessageOrBuilder(); - } else { - return rollout_ == null - ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() - : rollout_; - } - } - /** - * - * - *
-     * Required. The game server deployment rollout to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder> - getRolloutFieldBuilder() { - if (rolloutBuilder_ == null) { - rolloutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, - com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder>( - getRollout(), getParentForChildren(), isClean()); - rollout_ = null; - } - return rolloutBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) - private static final com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest(); - } - - public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGameServerDeploymentRolloutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateGameServerDeploymentRolloutRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequestOrBuilder.java deleted file mode 100644 index 47ef7796..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequestOrBuilder.java +++ /dev/null @@ -1,119 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface UpdateGameServerDeploymentRolloutRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the rollout field is set. - */ - boolean hasRollout(); - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The rollout. - */ - com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout(); - /** - * - * - *
-   * Required. The game server deployment rollout to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * - * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder getRolloutOrBuilder(); - - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequest.java deleted file mode 100644 index 15a143a2..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequest.java +++ /dev/null @@ -1,1077 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for RealmsService.UpdateRealm.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateRealmRequest} - */ -public final class UpdateRealmRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.UpdateRealmRequest) - UpdateRealmRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateRealmRequest.newBuilder() to construct. - private UpdateRealmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateRealmRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateRealmRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateRealmRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gaming.v1alpha.Realm.Builder subBuilder = null; - if (realm_ != null) { - subBuilder = realm_.toBuilder(); - } - realm_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.Realm.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(realm_); - realm_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateRealmRequest.class, - com.google.cloud.gaming.v1alpha.UpdateRealmRequest.Builder.class); - } - - public static final int REALM_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.Realm realm_; - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the realm field is set. - */ - public boolean hasRealm() { - return realm_ != null; - } - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The realm. - */ - public com.google.cloud.gaming.v1alpha.Realm getRealm() { - return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; - } - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { - return getRealm(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (realm_ != null) { - output.writeMessage(1, getRealm()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (realm_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRealm()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.UpdateRealmRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.UpdateRealmRequest other = - (com.google.cloud.gaming.v1alpha.UpdateRealmRequest) obj; - - if (hasRealm() != other.hasRealm()) return false; - if (hasRealm()) { - if (!getRealm().equals(other.getRealm())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRealm()) { - hash = (37 * hash) + REALM_FIELD_NUMBER; - hash = (53 * hash) + getRealm().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.UpdateRealmRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for RealmsService.UpdateRealm.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateRealmRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.UpdateRealmRequest) - com.google.cloud.gaming.v1alpha.UpdateRealmRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateRealmRequest.class, - com.google.cloud.gaming.v1alpha.UpdateRealmRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.UpdateRealmRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (realmBuilder_ == null) { - realm_ = null; - } else { - realm_ = null; - realmBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.Realms - .internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateRealmRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.UpdateRealmRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateRealmRequest build() { - com.google.cloud.gaming.v1alpha.UpdateRealmRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateRealmRequest buildPartial() { - com.google.cloud.gaming.v1alpha.UpdateRealmRequest result = - new com.google.cloud.gaming.v1alpha.UpdateRealmRequest(this); - if (realmBuilder_ == null) { - result.realm_ = realm_; - } else { - result.realm_ = realmBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.UpdateRealmRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.UpdateRealmRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.UpdateRealmRequest other) { - if (other == com.google.cloud.gaming.v1alpha.UpdateRealmRequest.getDefaultInstance()) - return this; - if (other.hasRealm()) { - mergeRealm(other.getRealm()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.UpdateRealmRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.UpdateRealmRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.Realm realm_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder> - realmBuilder_; - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the realm field is set. - */ - public boolean hasRealm() { - return realmBuilder_ != null || realm_ != null; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The realm. - */ - public com.google.cloud.gaming.v1alpha.Realm getRealm() { - if (realmBuilder_ == null) { - return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; - } else { - return realmBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm value) { - if (realmBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - realm_ = value; - onChanged(); - } else { - realmBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm.Builder builderForValue) { - if (realmBuilder_ == null) { - realm_ = builderForValue.build(); - onChanged(); - } else { - realmBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRealm(com.google.cloud.gaming.v1alpha.Realm value) { - if (realmBuilder_ == null) { - if (realm_ != null) { - realm_ = - com.google.cloud.gaming.v1alpha.Realm.newBuilder(realm_) - .mergeFrom(value) - .buildPartial(); - } else { - realm_ = value; - } - onChanged(); - } else { - realmBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRealm() { - if (realmBuilder_ == null) { - realm_ = null; - onChanged(); - } else { - realm_ = null; - realmBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.Realm.Builder getRealmBuilder() { - - onChanged(); - return getRealmFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { - if (realmBuilder_ != null) { - return realmBuilder_.getMessageOrBuilder(); - } else { - return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; - } - } - /** - * - * - *
-     * Required. The realm to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder> - getRealmFieldBuilder() { - if (realmBuilder_ == null) { - realmBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Realm, - com.google.cloud.gaming.v1alpha.Realm.Builder, - com.google.cloud.gaming.v1alpha.RealmOrBuilder>( - getRealm(), getParentForChildren(), isClean()); - realm_ = null; - } - return realmBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The update mask applies to the resource. For the `FieldMask`
-     * definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.UpdateRealmRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.UpdateRealmRequest) - private static final com.google.cloud.gaming.v1alpha.UpdateRealmRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.UpdateRealmRequest(); - } - - public static com.google.cloud.gaming.v1alpha.UpdateRealmRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRealmRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateRealmRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateRealmRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequestOrBuilder.java deleted file mode 100644 index 4dd53ca7..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequestOrBuilder.java +++ /dev/null @@ -1,116 +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 - * - * 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/realms.proto - -package com.google.cloud.gaming.v1alpha; - -public interface UpdateRealmRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.UpdateRealmRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the realm field is set. - */ - boolean hasRealm(); - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The realm. - */ - com.google.cloud.gaming.v1alpha.Realm getRealm(); - /** - * - * - *
-   * Required. The realm to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder(); - - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The update mask applies to the resource. For the `FieldMask`
-   * definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/common.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/common.proto deleted file mode 100644 index f1fe76e3..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/common.proto +++ /dev/null @@ -1,221 +0,0 @@ -// Copyright 2019 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. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// Represents the metadata of the long-running operation. -message OperationMetadata { - // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Server-defined resource path for the target of the operation. - string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Name of the verb executed by the operation. - string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Human-readable status of the operation, if any. - string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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`. - bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. API version used to start the operation. - string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. List of locations that could not be reached. - repeated string unreachable = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Operation status for game services 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. - map operation_status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -message OperationStatus { - enum ErrorCode { - ERROR_CODE_UNSPECIFIED = 0; - - INTERNAL_ERROR = 1; - - PERMISSION_DENIED = 2; - - CLUSTER_CONNECTION = 3; - } - - // Output only. Whether the operation is done or still in progress. - bool done = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The error code in case of failures. - ErrorCode error_code = 2; - - // The human-readable error message. - string error_message = 3; -} - -// The label selector, used to group labels on the resources. -message LabelSelector { - // Resource labels for this selector. - map labels = 1; -} - -// The realm selector, used to match realm resources. -message RealmSelector { - // List of realms to match against. - repeated string realms = 1; -} - -// The schedule of an event - the event can be recurring or one time. 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 cron_spec + cron_job_duration is only specified, the event is effective -// starting at the local time specified by cron_spec and is recurrent. -// -// start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time -// cron job: cron spec start time + duration -message Schedule { - // The start time of the event. - google.protobuf.Timestamp start_time = 1; - - // The end time of the event. - google.protobuf.Timestamp end_time = 2; - - // The duration for the cron job event. The duration of the event is effective - // after the cron job's start time. - google.protobuf.Duration cron_job_duration = 3; - - // 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. - string cron_spec = 4; -} - -// Details about the Agones fleet. -message FleetDetails { - // Details about the Agones autoscaler. - // The autoscaler details. - message AutoscalerDetails { - // The name of the Agones autoscaler. - string autoscaler_name = 1; - - // The name of the scaling config (within the game server config) that is - // used to create the autoscalar. - string scaling_config_name = 2; - } - - // The cluster name. - string game_server_cluster_name = 1; - - // The name of the Agones game server fleet. - string fleet_name = 2; - - // The name of the game server config object whose fleet spec - // is used to create the fleet. - string game_server_config_name = 3; - - // Details about the agones autoscaler. - AutoscalerDetails autoscaler_details = 4; -} - -// Encapsulates the expected deployed state. -message DeployedState { - option deprecated = true; - - // Details about fleets. - repeated FleetDetails fleets = 1; -} - -// Encapsulates fleet spec and autoscaler spec sources. -message SpecSource { - // The game server config resource. It is of the form - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}` - string game_server_config_name = 1; - - // The name of the fleet config or scaling config that is used to derive - // the fleet or fleet autoscaler spec. - string name = 2; -} - -// Details about the Agones resources. -message TargetDetails { - // Details of the target fleet. - message TargetFleetDetails { - // Target fleet specification. - message TargetFleet { - // The name of the Agones game server fleet. - string name = 1; - - // Encapsulates the source of the fleet spec. - // The fleet spec source. - SpecSource spec_source = 2; - } - - // Target autoscaler policy reference. - message TargetFleetAutoscaler { - // The name of the Agones autoscaler. - string name = 1; - - // Encapsulates the source of the fleet spec. - // Details about the agones autoscaler spec. - SpecSource spec_source = 2; - } - - // Reference to target fleet. - TargetFleet fleet = 1; - - // Reference to target fleet autoscaling policy. - TargetFleetAutoscaler autoscaler = 2; - } - - // The game server cluster name. It is of the form - // - // `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}` - string game_server_cluster_name = 1; - - // The game server deployment name. It is of the form - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}` - string game_server_deployment_name = 2; - - // Agones fleet details for game server clusters and deployments. - repeated TargetFleetDetails fleet_details = 3; -} - -// Encapsulates the Target state. -message TargetState { - // Details about fleets. - repeated TargetDetails details = 1; -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters.proto deleted file mode 100644 index e84c8219..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters.proto +++ /dev/null @@ -1,301 +0,0 @@ -// Copyright 2019 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. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/gaming/v1alpha/common.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// Request message for GameServerClustersService.ListGameServerClusters. -message ListGameServerClustersRequest { - // Required. The parent resource name, using the form: - // "projects/{project}/locations/{location}/realms/{realm-id}". - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerCluster" - } - ]; - - // 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.v1alpha.ListGameServerClustersResponse.next_page_token] to - // determine if there are more GameServerClusters left to be queried. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The next_page_token value returned from a previous List request, - // if any. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The filter to apply to list results. - string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for GameServerClustersService.ListGameServerClusters. -message ListGameServerClustersResponse { - // The list of game server clusters. - repeated GameServerCluster game_server_clusters = 1; - - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - string next_page_token = 2; - - // List of locations that could not be reached. - repeated string unreachable_locations = 3 [deprecated = true]; - - // List of locations that could not be reached. - repeated string unreachable = 4; -} - -// Request message for GameServerClustersService.GetGameServerCluster. -message GetGameServerClusterRequest { - // Required. The name of the game server cluster to retrieve, using the form: - // - // `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerCluster" - } - ]; -} - -// Request message for GameServerClustersService.CreateGameServerCluster. -message CreateGameServerClusterRequest { - // Required. The parent resource name, using the form: - // `projects/{project}/locations/{location}/realms/{realm-id}`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerCluster" - } - ]; - - // Required. The ID of the game server cluster resource to be created. - string game_server_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The game server cluster resource to be created. - GameServerCluster game_server_cluster = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for GameServerClustersService.PreviewCreateGameServerCluster. -message PreviewCreateGameServerClusterRequest { - // Required. The parent resource name, using the form: - // `projects/{project}/locations/{location}/realms/{realm-id}`. - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The ID of the game server cluster resource to be created. - string game_server_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The game server cluster resource to be created. - GameServerCluster game_server_cluster = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The instant of time at which the preview needs to be computed. - google.protobuf.Timestamp preview_time = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for -// GameServerClustersService.PreviewCreateGameServerCluster. -message PreviewCreateGameServerClusterResponse { - // The deployed state. - DeployedState deployed_state = 1 [deprecated = true]; - - // The ETag of the game server cluster. - string etag = 2; - - // The target state. - TargetState target_state = 3; -} - -// Request message for GameServerClustersService.DeleteGameServerCluster. -message DeleteGameServerClusterRequest { - // Required. The name of the game server cluster to delete, using the form: - // `projects/{project}/locations/{location}/gameServerClusters/{cluster}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerCluster" - } - ]; -} - -// Request message for GameServerClustersService.PreviewDeleteGameServerCluster. -message PreviewDeleteGameServerClusterRequest { - // Required. The name of the game server cluster to delete, using the form: - // `projects/{project}/locations/{location}/gameServerClusters/{cluster}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The instant of time at which the preview needs to be computed. - google.protobuf.Timestamp preview_time = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for -// GameServerClustersService.PreviewDeleteGameServerCluster. -message PreviewDeleteGameServerClusterResponse { - // The deployed state. - DeployedState deployed_state = 1 [deprecated = true]; - - // The ETag of the game server cluster. - string etag = 2; - - // The target state. - TargetState target_state = 3; -} - -// Request message for GameServerClustersService.UpdateGameServerCluster. -message UpdateGameServerClusterRequest { - // Required. The game server cluster to be updated. - // Only fields specified in update_mask are updated. - GameServerCluster game_server_cluster = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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 - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for GameServerClustersService.UpdateGameServerCluster. -message PreviewUpdateGameServerClusterRequest { - // Required. The game server cluster to be updated. - // Only fields specified in update_mask are updated. - GameServerCluster game_server_cluster = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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 - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The instant of time at which the preview needs to be computed. - google.protobuf.Timestamp preview_time = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for GameServerClustersService.PreviewUpdateGameServerCluster -message PreviewUpdateGameServerClusterResponse { - // The deployed state. - DeployedState deployed_state = 1 [deprecated = true]; - - // The ETag of the game server cluster. - string etag = 2; - - // The target state. - TargetState target_state = 3; -} - -// The game server cluster connection information. -message GameServerClusterConnectionInfo { - // Cluster reference represents the location of the Kubernetes cluster. - oneof cluster_reference { - // Reference to the GKE cluster where the game servers are installed. - GkeClusterReference gke_cluster_reference = 7; - - // Reference to an external (non-GKE) cluster registered with GKE Hub using - // the GKE connect agent. See - // https://cloud.google.com/anthos/multicluster-management/ - // for more information about registering non-GKE clusters. - GkeHubClusterReference gke_hub_cluster_reference = 8; - } - - // Namespace designated on the game server cluster where the game server - // instances will be created. The namespace existence will be validated - // during creation. - string namespace = 5; -} - -// GkeClusterReference represents a reference to a GKE cluster. -message GkeClusterReference { - // 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. - string cluster = 1; -} - -// GkeHubClusterReference represents a reference to a Kubernetes cluster -// registered through GKE Hub. -message GkeHubClusterReference { - // The full or partial name of a GKE Hub membership, using one of the - // following forms: - // * - // `https: - // //gkehub.googleapis.com/v1beta1/projects - // // /{project_id}/locations/global/memberships/{membership_id}` - // * `projects/{project_id}/locations/global/memberships/{membership_id}` - // * `{membership_id}` - // If project is not specified, the project of the GameServerCluster resource - // is used to generate the full name of the GKE Hub membership. - string membership = 1; -} - -// A game server cluster resource. -message GameServerCluster { - option (google.api.resource) = { - type: "gameservices.googleapis.com/GameServerCluster" - pattern: "projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}" - }; - - // Required. The resource name of the game server cluster, using the form: - // - // `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`. - // For example, - // - // `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`. - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The creation time. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The labels associated with this game server cluster. Each label is a - // key-value pair. - map labels = 4; - - // Game server cluster connection information. This information is used to - // manage game server clusters. - GameServerClusterConnectionInfo connection_info = 5; - - // ETag of the resource. - string etag = 6; - - // Human readable description of the cluster. - string description = 7; -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters_service.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters_service.proto deleted file mode 100644 index c7f4f895..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters_service.proto +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2019 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. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/cloud/gaming/v1alpha/game_server_clusters.proto"; -import "google/longrunning/operations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// The game server cluster maps to Kubernetes clusters running Agones and is -// used to manage fleets within clusters. -service GameServerClustersService { - option (google.api.default_host) = "gameservices.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists game server clusters in a given project and location. - rpc ListGameServerClusters(ListGameServerClustersRequest) returns (ListGameServerClustersResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=projects/*/locations/*/realms/*}/gameServerClusters" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single game server cluster. - rpc GetGameServerCluster(GetGameServerClusterRequest) returns (GameServerCluster) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/realms/*/gameServerClusters/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new game server cluster in a given project and location. - rpc CreateGameServerCluster(CreateGameServerClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*/realms/*}/gameServerClusters" - body: "game_server_cluster" - }; - option (google.api.method_signature) = "parent,game_server_cluster,game_server_cluster_id"; - option (google.longrunning.operation_info) = { - response_type: "GameServerCluster" - metadata_type: "OperationMetadata" - }; - } - - // Previews creation of a new game server cluster in a given project and - // location. - rpc PreviewCreateGameServerCluster(PreviewCreateGameServerClusterRequest) returns (PreviewCreateGameServerClusterResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*/realms/*}/gameServerClusters:previewCreate" - body: "game_server_cluster" - }; - } - - // Deletes a single game server cluster. - rpc DeleteGameServerCluster(DeleteGameServerClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/realms/*/gameServerClusters/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "GameServerCluster" - metadata_type: "OperationMetadata" - }; - } - - // Previews deletion of a single game server cluster. - rpc PreviewDeleteGameServerCluster(PreviewDeleteGameServerClusterRequest) returns (PreviewDeleteGameServerClusterResponse) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/realms/*/gameServerClusters/*}:previewDelete" - }; - } - - // Patches a single game server cluster. - rpc UpdateGameServerCluster(UpdateGameServerClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha/{game_server_cluster.name=projects/*/locations/*/realms/*/gameServerClusters/*}" - body: "game_server_cluster" - }; - option (google.api.method_signature) = "game_server_cluster,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "GameServerCluster" - metadata_type: "OperationMetadata" - }; - } - - // Previews updating a GameServerCluster. - rpc PreviewUpdateGameServerCluster(PreviewUpdateGameServerClusterRequest) returns (PreviewUpdateGameServerClusterResponse) { - option (google.api.http) = { - patch: "/v1alpha/{game_server_cluster.name=projects/*/locations/*/realms/*/gameServerClusters/*}:previewUpdate" - body: "game_server_cluster" - }; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs.proto deleted file mode 100644 index adaa90bc..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs.proto +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright 2019 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. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/gaming/v1alpha/common.proto"; -import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// Request message for GameServerConfigsService.ListGameServerConfigs. -message ListGameServerConfigsRequest { - // Required. The parent resource name, using the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerConfig" - } - ]; - - // 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.v1alpha.ListGameServerConfigsResponse.next_page_token] to - // determine if there are more GameServerConfigs left to be queried. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The next_page_token value returned from a previous List request, - // if any. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The filter to apply to list results. - string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for -// GameServerConfigsService.ListGameServerConfigs. -message ListGameServerConfigsResponse { - // The list of game server configs. - repeated GameServerConfig game_server_configs = 1; - - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - string next_page_token = 2; - - // List of locations that could not be reached. - repeated string unreachable_locations = 3 [deprecated = true]; - - // List of locations that were not reachable. - repeated string unreachable = 4; -} - -// Request message for GameServerConfigsService.GetGameServerConfig. -message GetGameServerConfigRequest { - // Required. The name of the game server config to retrieve, using the - // form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerConfig" - } - ]; -} - -// Request message for -// GameServerConfigsService.CreateGameServerConfig. -message CreateGameServerConfigRequest { - // Required. The parent resource name, using the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerConfig" - } - ]; - - // Required. The ID of the game server config resource to be created. - string config_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The game server config resource to be created. - GameServerConfig game_server_config = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// GameServerConfigsService.DeleteGameServerConfig. -message DeleteGameServerConfigRequest { - // Required. The name of the game server config to delete, using the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerConfig" - } - ]; -} - -// Autoscaling configs for Agones fleet. -message ScalingConfig { - // Required. The name of the ScalingConfig - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Fleet autoscaler spec, which is sent to Agones. - // Example spec can be found : - // https://agones.dev/site/docs/reference/fleetautoscaler/ - string fleet_autoscaler_spec = 2 [(google.api.field_behavior) = REQUIRED]; - - // Labels used to identify the clusters to which this scaling config - // applies. A cluster is subject to this scaling config if its labels match - // any of the selector entries. - repeated LabelSelector selectors = 4; - - // The schedules to which this scaling config applies. - repeated Schedule schedules = 5; -} - -// Fleet configs for Agones. -message FleetConfig { - // The fleet spec, which is sent to Agones to configure fleet. - // Example spec can be found : - // `https://agones.dev/site/docs/reference/fleet/`. - string fleet_spec = 1; - - // The name of the FleetConfig. - string name = 2; -} - -// A game server config resource. -message GameServerConfig { - option (google.api.resource) = { - type: "gameservices.googleapis.com/GameServerConfig" - pattern: "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}" - }; - - // The resource name of the game server config, using the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. - // For example, - // - // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. - string name = 1; - - // Output only. The creation time. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The labels associated with this game server config. Each label is a - // key-value pair. - map labels = 4; - - // The fleet specs contains a list of fleet specs. For Single Cloud, only - // one fleet config is allowed. - repeated FleetConfig fleet_configs = 5; - - // The autoscaling settings for Agones fleet. - repeated ScalingConfig scaling_configs = 6; - - // The description of the game server config. - string description = 7; -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs_service.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs_service.proto deleted file mode 100644 index c33b5ad4..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs_service.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2019 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. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/cloud/gaming/v1alpha/game_server_configs.proto"; -import "google/longrunning/operations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// The game server config is used to configure the set of game -// servers in Agones Fleets. -service GameServerConfigsService { - option (google.api.default_host) = "gameservices.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists game server configs in a given project, location, and game server - // deployment. - rpc ListGameServerConfigs(ListGameServerConfigsRequest) returns (ListGameServerConfigsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=projects/*/locations/*/gameServerDeployments/*}/configs" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single game server config. - rpc GetGameServerConfig(GetGameServerConfigRequest) returns (GameServerConfig) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*/configs/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new game server config in a given project, location, and game - // server deployment. Game server configs are immutable. A game server config - // is not applied until it is rolled out which is managed - // by updating the game server rollout resource. - rpc CreateGameServerConfig(CreateGameServerConfigRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*/gameServerDeployments/*}/configs" - body: "game_server_config" - }; - option (google.api.method_signature) = "parent,game_server_config"; - option (google.longrunning.operation_info) = { - response_type: "GameServerConfig" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a single game server config. The deletion will fail if the game - // server config is referenced in a game server rollout. - rpc DeleteGameServerConfig(DeleteGameServerConfigRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*/configs/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "GameServerConfig" - metadata_type: "OperationMetadata" - }; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments.proto deleted file mode 100644 index 0eefc063..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments.proto +++ /dev/null @@ -1,371 +0,0 @@ -// Copyright 2019 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. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/gaming/v1alpha/common.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// Request message for GameServerDeploymentsService.ListGameServerDeployments. -message ListGameServerDeploymentsRequest { - // Required. The parent resource name, using the form: - // `projects/{project}/locations/{location}`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerDeployment" - } - ]; - - // 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.v1alpha.ListGameServerDeploymentsResponse.next_page_token] to - // determine if there are more GameServerDeployments left to be queried. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The next_page_token value returned from a previous List request, - // if any. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The filter to apply to list results. - string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for GameServerDeploymentsService.ListGameServerDeployments. -message ListGameServerDeploymentsResponse { - // The list of game server delpoyments. - repeated GameServerDeployment game_server_deployments = 1; - - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - string next_page_token = 2; - - // List of locations that could not be reached. - repeated string unreachable_locations = 3 [deprecated = true]; - - // List of locations that were not reachable. - repeated string unreachable = 4; -} - -// Request message for GameServerDeploymentsService.GetGameServerDeployment. -message GetGameServerDeploymentRequest { - // Required. The name of the game server deployment to retrieve, using the - // form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerDeployment" - } - ]; -} - -// Request message for -// GameServerDeploymentsService.GetGameServerDeploymentRollout. -message GetGameServerDeploymentRolloutRequest { - // Required. The name of the game server deployment to retrieve, using the - // form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerDeployment" - } - ]; -} - -// Request message for GameServerDeploymentsService.CreateGameServerDeployment. -message CreateGameServerDeploymentRequest { - // Required. The parent resource name, using the form: - // `projects/{project}/locations/{location}`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerDeployment" - } - ]; - - // Required. The ID of the game server deployment resource to be created. - string deployment_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The game server deployment resource to be created. - GameServerDeployment game_server_deployment = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for GameServerDeploymentsService.DeleteGameServerDeployment. -message DeleteGameServerDeploymentRequest { - // Required. The name of the game server deployment to delete, using the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/GameServerDeployment" - } - ]; -} - -// Request message for GameServerDeploymentsService.UpdateGameServerDeployment. -// Only allows updates for labels. -message UpdateGameServerDeploymentRequest { - // Required. The game server deployment to be updated. - // Only fields specified in update_mask are updated. - GameServerDeployment game_server_deployment = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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 - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// GameServerDeploymentsService.UpdateGameServerRolloutDeployment. -message UpdateGameServerDeploymentRolloutRequest { - // Required. The game server deployment rollout to be updated. - // Only fields specified in update_mask are updated. - GameServerDeploymentRollout rollout = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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 - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for GameServerDeploymentsService.FetchDeploymentState. -message FetchDeploymentStateRequest { - // Required. The name of the game server deployment, using the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for GameServerDeploymentsService.FetchDeploymentState. -message FetchDeploymentStateResponse { - // Details of the deployed fleet. - message DeployedFleetDetails { - // Fleet specification and details. - message Fleet { - // FleetStatus has details about the fleets like how many are running, - // how many allocated and so on. - message FleetStatus { - // The number of available servers. - // The are no players connected to this servers. - int64 available_count = 1; - - // The number of allocated servers. - // These are servers allocated to game sessions. - int64 allocated_count = 2; - - // The number of reserved servers. - // Reserved instances won't be deleted on scale down, but won't cause - // an autoscaler to scale up. - int64 reserved_count = 3; - - // The total number of current GameServer replicas. - int64 replica_count = 4; - } - - // The name of the Agones game server fleet. - string name = 1; - - // The Agones fleet spec. - // This is sent because it is possible that we may no longer have the - // corresponding game server config in our systems. - string agones_spec = 2; - - // The cluster name. - string cluster = 3; - - // The source spec that is used to create the fleet. - // The game server config and fleet config may no longer - // exist in the system. - SpecSource spec_source = 4; - - // The current status of the fleet. - // Includes count of game servers in various states. - FleetStatus status = 5; - } - - // Details about the autoscaler. - message FleetAutoscaler { - // The name of the Agones autoscaler. - string autoscaler_name = 1; - - // The source spec that is used to create the autoscaler. - // The game server config and scaling config may no longer - // exist in the system. - SpecSource spec_source = 4; - - // The autoscaler spec. - // This is sent because it is possible that we may no longer have the - // corresponding game server config in our systems. - string fleet_autoscaler_spec = 3; - } - - // Information about the agones fleet. - Fleet fleet = 1; - - // Information about the agones autoscaler for that fleet. - FleetAutoscaler autoscaler = 2; - } - - // The details of a deployment in a given location. - repeated DeployedFleetDetails details = 1; - - // List of locations that could not be reached. - repeated string unavailable = 2; -} - -// A game server deployment resource. -message GameServerDeployment { - option (google.api.resource) = { - type: "gameservices.googleapis.com/GameServerDeployment" - pattern: "projects/{project}/locations/{location}/gameServerDeployments/{deployment}" - }; - - // The resource name of the game server deployment, using the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. - // For example, - // - // `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`. - string name = 1; - - // Output only. The creation time. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The labels associated with this game server deployment. Each label is a - // key-value pair. - map labels = 4; - - // ETag of the resource. - string etag = 7; - - // Human readable description of the game server deployment. - string description = 8; -} - -// A game server config override. -message GameServerConfigOverride { - // Selector chooses the game server config targets. - oneof selector { - // Selector for choosing applicable realms. - RealmSelector realms_selector = 1; - } - - // Actuator selects the game server config and how it should be applied. - oneof change { - // The game server config for this override. - string config_version = 100; - } -} - -// The game server deployment rollout which represents the rollout state. -message GameServerDeploymentRollout { - option (google.api.resource) = { - type: "gameservices.googleapis.com/GameServerDeploymentRollout" - pattern: "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout" - }; - - // The resource name of the game server deployment rollout, using the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. - // For example, - // - // `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`. - string name = 1; - - // Output only. The creation time. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The default game server config points to the game server config that is - // applied in all realms/clustesr. For example, - // - // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. - string default_game_server_config = 4; - - // Contains the per game server config overrides. The overrides are processed - // in the order they are listed. As soon as a match is found for cluster, - // the rest of the list is not processed. - repeated GameServerConfigOverride game_server_config_overrides = 5; - - // ETag of the resource. - string etag = 6; -} - -// Request message for PreviewGameServerDeploymentRollout. -message PreviewGameServerDeploymentRolloutRequest { - // Required. The game server deployment rollout to be updated. - // Only fields specified in update_mask are updated. - GameServerDeploymentRollout rollout = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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 - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The instant of time at which the preview needs to be computed. If - // unspecified, defaults to the time after the suggested rollout finishes. - google.protobuf.Timestamp preview_time = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for PreviewGameServerDeploymentRollout. -// This has details about the fleet and the autoscaler. -message PreviewGameServerDeploymentRolloutResponse { - // The deployed state. - DeployedState deployed_state = 1 [deprecated = true]; - - // Locations that could not be reached on this request. - repeated string unavailable = 2; - - // ETag of the game server deployment. - string etag = 3; - - // The target state. - TargetState target_state = 4; -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments_service.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments_service.proto deleted file mode 100644 index 1a6f7553..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2019 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. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/cloud/gaming/v1alpha/game_server_deployments.proto"; -import "google/longrunning/operations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// The game server deployment is used to control the deployment of game server -// software to Agones fleets. -service GameServerDeploymentsService { - option (google.api.default_host) = "gameservices.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists game server deployments in a given project and location. - rpc ListGameServerDeployments(ListGameServerDeploymentsRequest) returns (ListGameServerDeploymentsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=projects/*/locations/*}/gameServerDeployments" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single game server deployment. - rpc GetGameServerDeployment(GetGameServerDeploymentRequest) returns (GameServerDeployment) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new game server deployment in a given project and location. - rpc CreateGameServerDeployment(CreateGameServerDeploymentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*}/gameServerDeployments" - body: "game_server_deployment" - }; - option (google.api.method_signature) = "parent,game_server_deployment"; - option (google.longrunning.operation_info) = { - response_type: "GameServerDeployment" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a single game server deployment. - rpc DeleteGameServerDeployment(DeleteGameServerDeploymentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "GameServerDeployment" - metadata_type: "OperationMetadata" - }; - } - - // Patches a game server deployment. - rpc UpdateGameServerDeployment(UpdateGameServerDeploymentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha/{game_server_deployment.name=projects/*/locations/*/gameServerDeployments/*}" - body: "game_server_deployment" - }; - option (google.api.method_signature) = "game_server_deployment,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "GameServerDeployment" - metadata_type: "OperationMetadata" - }; - } - - // Gets details a single game server deployment rollout. - rpc GetGameServerDeploymentRollout(GetGameServerDeploymentRolloutRequest) returns (GameServerDeploymentRollout) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}/rollout" - }; - option (google.api.method_signature) = "name"; - } - - // Patches a single game server deployment rollout. - rpc UpdateGameServerDeploymentRollout(UpdateGameServerDeploymentRolloutRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha/{rollout.name=projects/*/locations/*/gameServerDeployments/*}/rollout" - body: "rollout" - }; - option (google.api.method_signature) = "rollout,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "GameServerDeployment" - metadata_type: "OperationMetadata" - }; - } - - // Previews the game server deployment rollout. This API does not mutate the - // rollout resource. - rpc PreviewGameServerDeploymentRollout(PreviewGameServerDeploymentRolloutRequest) returns (PreviewGameServerDeploymentRolloutResponse) { - option (google.api.http) = { - patch: "/v1alpha/{rollout.name=projects/*/locations/*/gameServerDeployments/*}/rollout:preview" - body: "rollout" - }; - } - - // Retrieves information about the current state of the deployment, e.g. it - // gathers all the fleets and autoscalars for this deployment. - // This includes fleets running older version of the deployment. - rpc FetchDeploymentState(FetchDeploymentStateRequest) returns (FetchDeploymentStateResponse) { - option (google.api.http) = { - post: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}:fetchDeploymentState" - body: "*" - }; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms.proto deleted file mode 100644 index a7f8b037..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms.proto +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright 2019 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. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/gaming/v1alpha/common.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// Request message for RealmsService.ListRealms. -message ListRealmsRequest { - // Required. The parent resource name, using the form: - // `projects/{project}/locations/{location}`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/Realm" - } - ]; - - // 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.v1alpha.ListRealmsResponse.next_page_token] to - // determine if there are more Realms left to be queried. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The next_page_token value returned from a previous List request, - // if any. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The filter to apply to list results. - string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for RealmsService.ListRealms. -message ListRealmsResponse { - // The list of realms - repeated Realm realms = 1; - - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - string next_page_token = 2; - - // List of locations that were not reachable. - repeated string unreachable = 3; -} - -// Request message for RealmsService.GetRealm. -message GetRealmRequest { - // Required. The name of the realm to retrieve, using the form: - // `projects/{project}/locations/{location}/realms/{realm}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/Realm" - } - ]; -} - -// Request message for RealmsService.CreateRealm. -message CreateRealmRequest { - // Required. The parent resource name, using the form: - // `projects/{project}/locations/{location}`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/Realm" - } - ]; - - // Required. The ID of the realm resource to be created. - string realm_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The realm resource to be created. - Realm realm = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for RealmsService.DeleteRealm. -message DeleteRealmRequest { - // Required. The name of the realm to delete, using the form: - // `projects/{project}/locations/{location}/realms/{realm}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "gameservices.googleapis.com/Realm" - } - ]; -} - -// Request message for RealmsService.UpdateRealm. -message UpdateRealmRequest { - // Required. The realm to be updated. - // Only fields specified in update_mask are updated. - Realm realm = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The update mask applies to the resource. For the `FieldMask` - // definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for RealmsService.PreviewRealmUpdate. -message PreviewRealmUpdateRequest { - // Required. The realm to be updated. - // Only fields specified in update_mask are updated. - Realm realm = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The update mask applies to the resource. For the `FieldMask` - // definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The instant of time at which the preview needs to be computed. - google.protobuf.Timestamp preview_time = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for RealmsService.PreviewRealmUpdate. -message PreviewRealmUpdateResponse { - // The deployment state. - DeployedState deployed_state = 1 [deprecated = true]; - - // ETag of the realm. - string etag = 2; - - // The target state. - TargetState target_state = 3; -} - -// A Realm resource. -message Realm { - option (google.api.resource) = { - type: "gameservices.googleapis.com/Realm" - pattern: "projects/{project}/locations/{location}/realms/{realm}" - }; - - // The resource name of the realm, using the form: - // `projects/{project}/locations/{location}/realms/{realm}`. For - // example, `projects/my-project/locations/{location}/realms/my-realm`. - string name = 1; - - // Output only. The creation time. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The labels associated with this realm. Each label is a key-value pair. - map labels = 4; - - // Required. Time zone where all realm-specific policies are evaluated. The value of - // this field must be from the IANA time zone database: - // https://www.iana.org/time-zones. - string time_zone = 6 [(google.api.field_behavior) = REQUIRED]; - - // ETag of the resource. - string etag = 7; - - // Human readable description of the realm. - string description = 8; -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms_service.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms_service.proto deleted file mode 100644 index 18f1b1e0..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms_service.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2019 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. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/cloud/gaming/v1alpha/realms.proto"; -import "google/longrunning/operations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// Realm provides grouping of game server clusters that are serving a particular -// gamer population. -service RealmsService { - option (google.api.default_host) = "gameservices.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists realms in a given project and location. - rpc ListRealms(ListRealmsRequest) returns (ListRealmsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=projects/*/locations/*}/realms" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single realm. - rpc GetRealm(GetRealmRequest) returns (Realm) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/realms/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new Realm in a given project and location. - rpc CreateRealm(CreateRealmRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*}/realms" - body: "realm" - }; - option (google.api.method_signature) = "parent,realm,realm_id"; - option (google.longrunning.operation_info) = { - response_type: "Realm" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a single realm. - rpc DeleteRealm(DeleteRealmRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/realms/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "Realm" - metadata_type: "OperationMetadata" - }; - } - - // Patches a single Realm. - rpc UpdateRealm(UpdateRealmRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha/{realm.name=projects/*/locations/*/realms/*}" - body: "realm" - }; - option (google.api.method_signature) = "realm,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Realm" - metadata_type: "OperationMetadata" - }; - } - - // Previews patches to a single Realm. - rpc PreviewRealmUpdate(PreviewRealmUpdateRequest) returns (PreviewRealmUpdateResponse) { - option (google.api.http) = { - patch: "/v1alpha/{realm.name=projects/*/locations/*/realms/*}:previewUpdate" - body: "realm" - }; - } -} diff --git a/versions.txt b/versions.txt index 1dbe1aec..5c889b75 100644 --- a/versions.txt +++ b/versions.txt @@ -1,9 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-gameservices-v1alpha:0.19.1:0.19.2-SNAPSHOT -grpc-google-cloud-gameservices-v1alpha:0.19.1:0.19.2-SNAPSHOT -google-cloud-gameservices:0.19.1:0.19.2-SNAPSHOT proto-google-cloud-game-servers-v1beta:0.19.1:0.19.2-SNAPSHOT grpc-google-cloud-game-servers-v1beta:0.19.1:0.19.2-SNAPSHOT google-cloud-game-servers:0.19.1:0.19.2-SNAPSHOT \ No newline at end of file