google-cloud-game-servers overview (2.3.2)

com.google.cloud.gaming.v1

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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
   RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
   Realm response = realmsServiceClient.getRealm(name);
 }
 

com.google.cloud.gaming.v1.stub

com.google.cloud.gaming.v1beta

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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
   RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
   Realm response = realmsServiceClient.getRealm(name);
 }
 

com.google.cloud.gaming.v1beta.stub