Skip navigation links

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

Package com.google.cloud.gaming.v1alpha

A client to gameservices API (prod).

See: Description

Package com.google.cloud.gaming.v1alpha Description

A client to gameservices API (prod).

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

=============================== AllocationPoliciesServiceClient ===============================

Service Description: The cloud gaming allocation policy is used as the controller's recipe for the allocating game servers from clusters. The policy has three modes: 1. Default mode which is not limited to time. 2. Time based mode which is temporary and overrides the default mode when effective. 3. Periodic mode which follows the time base mode, but happens periodically using local time, identified by cron specs.

Sample for AllocationPoliciesServiceClient:

 
 try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
   String formattedName = AllocationPoliciesServiceClient.formatAllocationPolicyName("[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]");
   AllocationPolicy response = allocationPoliciesServiceClient.getAllocationPolicy(formattedName);
 }
 
 
=============================== GameServerClustersServiceClient ===============================

Service Description: The game server cluster is used to capture the game server cluster's settings which are used to manage game server 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 configure the deployment of game server software to Agones Fleets in game server clusters.

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 particular gamer population.

Sample for RealmsServiceClient:

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

Service Description: The cloud gaming scaling policy is used to configure scaling parameters for each fleet.

Sample for ScalingPoliciesServiceClient:

 
 try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
   String formattedName = ScalingPoliciesServiceClient.formatScalingPolicyName("[PROJECT]", "[LOCATION]", "[SCALING_POLICY]");
   ScalingPolicy response = scalingPoliciesServiceClient.getScalingPolicy(formattedName);
 }
 
 
Skip navigation links

Copyright © 2019 Google LLC. All rights reserved.