Skip navigation links

@Generated(value="by gapic-generator-java")

Package com.google.cloud.gaming.v1beta

A client to Game Services API

See: Description

Package com.google.cloud.gaming.v1beta Description

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:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GameServerClustersServiceClient gameServerClustersServiceClient =
     GameServerClustersServiceClient.create()) {
   GameServerClusterName name =
       GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]");
   GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(name);
 }
 

======================= GameServerConfigsServiceClient =======================

Service Description: The game server config configures the game servers in an Agones fleet.

Sample for GameServerConfigsServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
     GameServerConfigsServiceClient.create()) {
   GameServerConfigName name =
       GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]");
   GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(name);
 }
 

======================= GameServerDeploymentsServiceClient =======================

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

Sample for GameServerDeploymentsServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
     GameServerDeploymentsServiceClient.create()) {
   GameServerDeploymentName name =
       GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
   GameServerDeployment response =
       gameServerDeploymentsServiceClient.getGameServerDeployment(name);
 }
 

======================= RealmsServiceClient =======================

Service Description: A realm is a grouping of game server clusters that are considered interchangeable.

Sample for RealmsServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
   RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
   Realm response = realmsServiceClient.getRealm(name);
 }
 
Skip navigation links

Copyright © 2023 Google LLC. All rights reserved.