diff --git a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/GameServerClustersServiceClient.java b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/GameServerClustersServiceClient.java index a7b9c3ad..b2ffdd7c 100644 --- a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/GameServerClustersServiceClient.java +++ b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/GameServerClustersServiceClient.java @@ -48,6 +48,15 @@ *
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: * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * GameServerClusterName name = + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]"); + * GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(name); + * } + * }+ * *
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(). @@ -167,6 +176,19 @@ public final OperationsClient getOperationsClient() { /** * Lists game server clusters in a given project and location. * + *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * RealmName parent = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]"); + * for (GameServerCluster element : + * gameServerClustersServiceClient.listGameServerClusters(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * * @param parent Required. The parent resource name. Uses the form: * "projects/{project}/locations/{location}/realms/{realm}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -183,6 +205,20 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(RealmNam /** * Lists game server clusters in a given project and location. * + *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * String parent = + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]").toString(); + * for (GameServerCluster element : + * gameServerClustersServiceClient.listGameServerClusters(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * * @param parent Required. The parent resource name. Uses the form: * "projects/{project}/locations/{location}/realms/{realm}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -197,6 +233,28 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(String p /** * Lists game server clusters in a given project and location. * + *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * ListGameServerClustersRequest request = + * ListGameServerClustersRequest.newBuilder() + * .setParent( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .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 */ @@ -210,6 +268,28 @@ public final ListGameServerClustersPagedResponse listGameServerClusters( * Lists game server clusters in a given project and location. * *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * ListGameServerClustersRequest request = + * ListGameServerClustersRequest.newBuilder() + * .setParent( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * gameServerClustersServiceClient.listGameServerClustersPagedCallable().futureCall(request); + * // Do something. + * for (GameServerCluster element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * while (true) { + * ListGameServerClustersResponse response = + * gameServerClustersServiceClient.listGameServerClustersCallable().call(request); + * for (GameServerCluster element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }*/ public final UnaryCallable
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * GameServerClusterName name = + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]"); + * GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(name); + * } + * }+ * * @param name Required. The name of the game server cluster to retrieve. Uses the form: *
`projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -247,6 +357,17 @@ public final GameServerCluster getGameServerCluster(GameServerClusterName name) /** * Gets details of a single game server cluster. * + *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * String name = + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]").toString(); + * GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(name); + * } + * }+ * * @param name Required. The name of the game server cluster to retrieve. Uses the form: *
`projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -261,6 +382,21 @@ public final GameServerCluster getGameServerCluster(String name) { /** * Gets details of a single game server cluster. * + *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * GetGameServerClusterRequest request = + * GetGameServerClusterRequest.newBuilder() + * .setName( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .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 */ @@ -273,6 +409,22 @@ public final GameServerCluster getGameServerCluster(GetGameServerClusterRequest * Gets details of a single game server cluster. * *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * GetGameServerClusterRequest request = + * GetGameServerClusterRequest.newBuilder() + * .setName( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * gameServerClustersServiceClient.getGameServerClusterCallable().futureCall(request); + * // Do something. + * GameServerCluster response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * RealmName parent = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]"); + * GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build(); + * String gameServerClusterId = "gameServerClusterId-1301104032"; + * GameServerCluster response = + * gameServerClustersServiceClient + * .createGameServerClusterAsync(parent, gameServerCluster, gameServerClusterId) + * .get(); + * } + * }+ * * @param parent Required. The parent resource name. Uses the form: * `projects/{project}/locations/{location}/realms/{realm-id}`. * @param gameServerCluster Required. The game server cluster resource to be created. @@ -304,6 +471,22 @@ public final OperationFuture
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * String parent = + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]").toString(); + * GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build(); + * String gameServerClusterId = "gameServerClusterId-1301104032"; + * GameServerCluster response = + * gameServerClustersServiceClient + * .createGameServerClusterAsync(parent, gameServerCluster, gameServerClusterId) + * .get(); + * } + * }+ * * @param parent Required. The parent resource name. Uses the form: * `projects/{project}/locations/{location}/realms/{realm-id}`. * @param gameServerCluster Required. The game server cluster resource to be created. @@ -325,6 +508,24 @@ public final OperationFuture
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * CreateGameServerClusterRequest request = + * CreateGameServerClusterRequest.newBuilder() + * .setParent( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .setGameServerClusterId("gameServerClusterId-1301104032") + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .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 */ @@ -338,6 +539,26 @@ public final OperationFuture
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * CreateGameServerClusterRequest request = + * CreateGameServerClusterRequest.newBuilder() + * .setParent( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .setGameServerClusterId("gameServerClusterId-1301104032") + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .build(); + * OperationFuture*/ public final OperationCallable< CreateGameServerClusterRequest, GameServerCluster, OperationMetadata> @@ -350,6 +571,24 @@ public final OperationFuturefuture = + * gameServerClustersServiceClient + * .createGameServerClusterOperationCallable() + * .futureCall(request); + * // Do something. + * GameServerCluster response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * CreateGameServerClusterRequest request = + * CreateGameServerClusterRequest.newBuilder() + * .setParent( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .setGameServerClusterId("gameServerClusterId-1301104032") + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * gameServerClustersServiceClient.createGameServerClusterCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * PreviewCreateGameServerClusterRequest request = + * PreviewCreateGameServerClusterRequest.newBuilder() + * .setParent( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .setGameServerClusterId("gameServerClusterId-1301104032") + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .setPreviewTime(Timestamp.newBuilder().build()) + * .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 */ @@ -373,6 +631,27 @@ public final PreviewCreateGameServerClusterResponse previewCreateGameServerClust * Previews creation of a new game server cluster in a given project and location. * *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * PreviewCreateGameServerClusterRequest request = + * PreviewCreateGameServerClusterRequest.newBuilder() + * .setParent( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .setGameServerClusterId("gameServerClusterId-1301104032") + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .setPreviewTime(Timestamp.newBuilder().build()) + * .build(); + * ApiFuture*/ public final UnaryCallable< PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> @@ -384,6 +663,17 @@ public final PreviewCreateGameServerClusterResponse previewCreateGameServerClust /** * Deletes a single game server cluster. * + *future = + * gameServerClustersServiceClient + * .previewCreateGameServerClusterCallable() + * .futureCall(request); + * // Do something. + * PreviewCreateGameServerClusterResponse response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * GameServerClusterName name = + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]"); + * gameServerClustersServiceClient.deleteGameServerClusterAsync(name).get(); + * } + * }+ * * @param name Required. The name of the game server cluster to delete. Uses the form: * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -401,6 +691,17 @@ public final OperationFuture
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * String name = + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]").toString(); + * gameServerClustersServiceClient.deleteGameServerClusterAsync(name).get(); + * } + * }+ * * @param name Required. The name of the game server cluster to delete. Uses the form: * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -415,6 +716,21 @@ public final OperationFuture
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * DeleteGameServerClusterRequest request = + * DeleteGameServerClusterRequest.newBuilder() + * .setName( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .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 */ @@ -428,6 +744,24 @@ public final OperationFuture
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * DeleteGameServerClusterRequest request = + * DeleteGameServerClusterRequest.newBuilder() + * .setName( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .build(); + * OperationFuture*/ public final OperationCallablefuture = + * gameServerClustersServiceClient + * .deleteGameServerClusterOperationCallable() + * .futureCall(request); + * // Do something. + * future.get(); + * } + * }
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * DeleteGameServerClusterRequest request = + * DeleteGameServerClusterRequest.newBuilder() + * .setName( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * gameServerClustersServiceClient.deleteGameServerClusterCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * PreviewDeleteGameServerClusterRequest request = + * PreviewDeleteGameServerClusterRequest.newBuilder() + * .setName( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .setPreviewTime(Timestamp.newBuilder().build()) + * .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 */ @@ -462,6 +829,25 @@ public final PreviewDeleteGameServerClusterResponse previewDeleteGameServerClust * Previews deletion of a single game server cluster. * *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * PreviewDeleteGameServerClusterRequest request = + * PreviewDeleteGameServerClusterRequest.newBuilder() + * .setName( + * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]") + * .toString()) + * .setPreviewTime(Timestamp.newBuilder().build()) + * .build(); + * ApiFuture*/ public final UnaryCallable< PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> @@ -473,6 +859,20 @@ public final PreviewDeleteGameServerClusterResponse previewDeleteGameServerClust /** * Patches a single game server cluster. * + *future = + * gameServerClustersServiceClient + * .previewDeleteGameServerClusterCallable() + * .futureCall(request); + * // Do something. + * PreviewDeleteGameServerClusterResponse response = future.get(); + * } + * }
Sample code: + * + *
{@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 @@ -495,6 +895,21 @@ public final OperationFuture
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * UpdateGameServerClusterRequest request = + * UpdateGameServerClusterRequest.newBuilder() + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .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 */ @@ -508,6 +923,23 @@ public final OperationFuture
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * UpdateGameServerClusterRequest request = + * UpdateGameServerClusterRequest.newBuilder() + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * OperationFuture*/ public final OperationCallable< UpdateGameServerClusterRequest, GameServerCluster, OperationMetadata> @@ -520,6 +952,21 @@ public final OperationFuturefuture = + * gameServerClustersServiceClient + * .updateGameServerClusterOperationCallable() + * .futureCall(request); + * // Do something. + * GameServerCluster response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * UpdateGameServerClusterRequest request = + * UpdateGameServerClusterRequest.newBuilder() + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * gameServerClustersServiceClient.updateGameServerClusterCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * PreviewUpdateGameServerClusterRequest request = + * PreviewUpdateGameServerClusterRequest.newBuilder() + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setPreviewTime(Timestamp.newBuilder().build()) + * .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 */ @@ -543,6 +1006,24 @@ public final PreviewUpdateGameServerClusterResponse previewUpdateGameServerClust * Previews updating a GameServerCluster. * *
Sample code: + * + *
{@code + * try (GameServerClustersServiceClient gameServerClustersServiceClient = + * GameServerClustersServiceClient.create()) { + * PreviewUpdateGameServerClusterRequest request = + * PreviewUpdateGameServerClusterRequest.newBuilder() + * .setGameServerCluster(GameServerCluster.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setPreviewTime(Timestamp.newBuilder().build()) + * .build(); + * ApiFuture*/ public final UnaryCallable< PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> diff --git a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/GameServerConfigsServiceClient.java b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/GameServerConfigsServiceClient.java index fb7a46fb..dc7b132c 100644 --- a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/GameServerConfigsServiceClient.java +++ b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/GameServerConfigsServiceClient.java @@ -46,6 +46,15 @@ *future = + * gameServerClustersServiceClient + * .previewUpdateGameServerClusterCallable() + * .futureCall(request); + * // Do something. + * PreviewUpdateGameServerClusterResponse response = future.get(); + * } + * }
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: * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * GameServerConfigName name = + * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]"); + * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(name); + * } + * }+ * *
Note: close() needs to be called on the GameServerConfigsServiceClient object to clean up * resources such as threads. In the example above, try-with-resources is used, which automatically * calls close(). @@ -165,6 +174,20 @@ public final OperationsClient getOperationsClient() { /** * Lists game server configs in a given project, location, and game server deployment. * + *
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * GameServerDeploymentName parent = + * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"); + * for (GameServerConfig element : + * gameServerConfigsServiceClient.listGameServerConfigs(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * * @param parent Required. The parent resource name. Uses the form: *
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -182,6 +205,20 @@ public final ListGameServerConfigsPagedResponse listGameServerConfigs( /** * Lists game server configs in a given project, location, and game server deployment. * + *
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * String parent = + * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]").toString(); + * for (GameServerConfig element : + * gameServerConfigsServiceClient.listGameServerConfigs(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * * @param parent Required. The parent resource name. Uses the form: *
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -196,6 +233,28 @@ public final ListGameServerConfigsPagedResponse listGameServerConfigs(String par /** * Lists game server configs in a given project, location, and game server deployment. * + *
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * ListGameServerConfigsRequest request = + * ListGameServerConfigsRequest.newBuilder() + * .setParent( + * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * for (GameServerConfig element : + * gameServerConfigsServiceClient.listGameServerConfigs(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 */ @@ -209,6 +268,28 @@ public final ListGameServerConfigsPagedResponse listGameServerConfigs( * Lists game server configs in a given project, location, and game server deployment. * *
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * ListGameServerConfigsRequest request = + * ListGameServerConfigsRequest.newBuilder() + * .setParent( + * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * gameServerConfigsServiceClient.listGameServerConfigsPagedCallable().futureCall(request); + * // Do something. + * for (GameServerConfig element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * while (true) { + * ListGameServerConfigsResponse response = + * gameServerConfigsServiceClient.listGameServerConfigsCallable().call(request); + * for (GameServerConfig element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }*/ public final UnaryCallable
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * GameServerConfigName name = + * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]"); + * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(name); + * } + * }+ * * @param name Required. The name of the game server config to retrieve. Uses the form: *
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -246,6 +357,17 @@ public final GameServerConfig getGameServerConfig(GameServerConfigName name) { /** * Gets details of a single game server config. * + *
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * String name = + * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]").toString(); + * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(name); + * } + * }+ * * @param name Required. The name of the game server config to retrieve. Uses the form: *
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -260,6 +382,21 @@ public final GameServerConfig getGameServerConfig(String name) { /** * Gets details of a single game server config. * + *
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * GetGameServerConfigRequest request = + * GetGameServerConfigRequest.newBuilder() + * .setName( + * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]") + * .toString()) + * .build(); + * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(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 */ @@ -272,6 +409,22 @@ public final GameServerConfig getGameServerConfig(GetGameServerConfigRequest req * Gets details of a single game server config. * *
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * GetGameServerConfigRequest request = + * GetGameServerConfigRequest.newBuilder() + * .setName( + * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]") + * .toString()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * gameServerConfigsServiceClient.getGameServerConfigCallable().futureCall(request); + * // Do something. + * GameServerConfig response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (GameServerConfigsServiceClient gameServerConfigsServiceClient = + * GameServerConfigsServiceClient.create()) { + * GameServerDeploymentName parent = + * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]"); + * GameServerConfig gameServerConfig = GameServerConfig.newBuilder().build(); + * GameServerConfig response = + * gameServerConfigsServiceClient + * .createGameServerConfigAsync(parent, gameServerConfig) + * .get(); + * } + * }+ * * @param parent Required. The parent resource name. Uses the form: *
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
* @param gameServerConfig Required. The game server config resource to be created.
@@ -305,6 +473,21 @@ public final OperationFuture Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
* @param gameServerConfig Required. The game server config resource to be created.
@@ -326,6 +509,24 @@ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -383,6 +633,17 @@ public final OperationFuture Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -398,6 +659,21 @@ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * 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:
*
+ * 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().
@@ -169,6 +179,19 @@ public final OperationsClient getOperationsClient() {
/**
* Lists game server deployments in a given project and location.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -251,6 +363,18 @@ public final GameServerDeployment getGameServerDeployment(GameServerDeploymentNa
/**
* Gets details of a single game server deployment.
*
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -265,6 +389,21 @@ public final GameServerDeployment getGameServerDeployment(String name) {
/**
* Gets details of a single game server deployment.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -379,6 +628,17 @@ public final OperationFuture Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -394,6 +654,20 @@ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -503,6 +886,18 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
/**
* Gets details a single game server deployment rollout.
*
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -517,6 +912,21 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(String n
/**
* Gets details a single game server deployment rollout.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * 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:
*
+ * 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().
*
@@ -162,6 +169,17 @@ public final OperationsClient getOperationsClient() {
/**
* Lists realms in a given project and location.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample for GameServerClustersServiceClient:
*
+ * ======================= GameServerConfigsServiceClient =======================
*
* Service Description: The game server config configures the game servers in an Agones fleet.
*
* Sample for GameServerConfigsServiceClient:
*
+ * ======================= GameServerDeploymentsServiceClient =======================
*
* Service Description: The game server deployment is used to control the deployment of Agones
@@ -37,12 +55,29 @@
*
* Sample for GameServerDeploymentsServiceClient:
*
+ * ======================= RealmsServiceClient =======================
*
* Service Description: A realm is a grouping of game server clusters that are considered
* interchangeable.
*
* Sample for RealmsServiceClient:
+ *
+ * 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:
*
+ * 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().
@@ -168,6 +177,19 @@ public final OperationsClient getOperationsClient() {
/**
* Lists game server clusters in a given project and location.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -248,6 +358,17 @@ public final GameServerCluster getGameServerCluster(GameServerClusterName name)
/**
* Gets details of a single game server cluster.
*
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -262,6 +383,21 @@ public final GameServerCluster getGameServerCluster(String name) {
/**
* Gets details of a single game server cluster.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * 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:
*
+ * Note: close() needs to be called on the GameServerConfigsServiceClient object to clean up
* resources such as threads. In the example above, try-with-resources is used, which automatically
* calls close().
@@ -166,6 +175,20 @@ public final OperationsClient getOperationsClient() {
/**
* Lists game server configs in a given project, location, and game server deployment.
*
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -183,6 +206,20 @@ public final ListGameServerConfigsPagedResponse listGameServerConfigs(
/**
* Lists game server configs in a given project, location, and game server deployment.
*
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -197,6 +234,28 @@ public final ListGameServerConfigsPagedResponse listGameServerConfigs(String par
/**
* Lists game server configs in a given project, location, and game server deployment.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -247,6 +358,17 @@ public final GameServerConfig getGameServerConfig(GameServerConfigName name) {
/**
* Gets details of a single game server config.
*
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -261,6 +383,21 @@ public final GameServerConfig getGameServerConfig(String name) {
/**
* Gets details of a single game server config.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
* @param gameServerConfig Required. The game server config resource to be created.
@@ -306,6 +474,21 @@ public final OperationFuture Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
* @param gameServerConfig Required. The game server config resource to be created.
@@ -327,6 +510,24 @@ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -384,6 +634,17 @@ public final OperationFuture Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -399,6 +660,21 @@ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * 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:
*
+ * 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().
@@ -170,6 +180,19 @@ public final OperationsClient getOperationsClient() {
/**
* Lists game server deployments in a given project and location.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -252,6 +364,18 @@ public final GameServerDeployment getGameServerDeployment(GameServerDeploymentNa
/**
* Gets details of a single game server deployment.
*
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -266,6 +390,21 @@ public final GameServerDeployment getGameServerDeployment(String name) {
/**
* Gets details of a single game server deployment.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -380,6 +629,17 @@ public final OperationFuture Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -395,6 +655,20 @@ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -504,6 +887,18 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
/**
* Gets details a single game server deployment rollout.
*
+ * Sample code:
+ *
+ * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -518,6 +913,21 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(String n
/**
* Gets details a single game server deployment rollout.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * 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:
*
+ * 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().
*
@@ -163,6 +170,17 @@ public final OperationsClient getOperationsClient() {
/**
* Lists realms in a given project and location.
*
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample for GameServerClustersServiceClient:
*
+ * ======================= GameServerConfigsServiceClient =======================
*
* Service Description: The game server config configures the game servers in an Agones fleet.
*
* Sample for GameServerConfigsServiceClient:
*
+ * ======================= GameServerDeploymentsServiceClient =======================
*
* Service Description: The game server deployment is used to control the deployment of Agones
@@ -37,12 +55,29 @@
*
* Sample for GameServerDeploymentsServiceClient:
*
+ * ======================= RealmsServiceClient =======================
*
* Service Description: A realm is a grouping of game server clusters that are considered
* interchangeable.
*
* Sample for RealmsServiceClient:
+ *
+ * {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * String parent =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]").toString();
+ * GameServerConfig gameServerConfig = GameServerConfig.newBuilder().build();
+ * GameServerConfig response =
+ * gameServerConfigsServiceClient
+ * .createGameServerConfigAsync(parent, gameServerConfig)
+ * .get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * CreateGameServerConfigRequest request =
+ * CreateGameServerConfigRequest.newBuilder()
+ * .setParent(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .setConfigId("configId-580140035")
+ * .setGameServerConfig(GameServerConfig.newBuilder().build())
+ * .build();
+ * GameServerConfig response =
+ * gameServerConfigsServiceClient.createGameServerConfigAsync(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
*/
@@ -341,6 +542,26 @@ public final OperationFuture{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * CreateGameServerConfigRequest request =
+ * CreateGameServerConfigRequest.newBuilder()
+ * .setParent(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .setConfigId("configId-580140035")
+ * .setGameServerConfig(GameServerConfig.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * CreateGameServerConfigRequest request =
+ * CreateGameServerConfigRequest.newBuilder()
+ * .setParent(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .setConfigId("configId-580140035")
+ * .setGameServerConfig(GameServerConfig.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GameServerConfigName name =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]");
+ * gameServerConfigsServiceClient.deleteGameServerConfigAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server config to delete. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * String name =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]").toString();
+ * gameServerConfigsServiceClient.deleteGameServerConfigAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server config to delete. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * DeleteGameServerConfigRequest request =
+ * DeleteGameServerConfigRequest.newBuilder()
+ * .setName(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .build();
+ * gameServerConfigsServiceClient.deleteGameServerConfigAsync(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
*/
@@ -412,6 +688,24 @@ public final OperationFuture{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * DeleteGameServerConfigRequest request =
+ * DeleteGameServerConfigRequest.newBuilder()
+ * .setName(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * DeleteGameServerConfigRequest request =
+ * DeleteGameServerConfigRequest.newBuilder()
+ * .setName(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.getGameServerDeployment(name);
+ * }
+ * }
+ *
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (GameServerDeployment element :
+ * gameServerDeploymentsServiceClient.listGameServerDeployments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -186,6 +209,20 @@ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(
/**
* Lists game server deployments in a given project and location.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String parent =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * for (GameServerDeployment element :
+ * gameServerDeploymentsServiceClient.listGameServerDeployments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -200,6 +237,27 @@ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(St
/**
* Lists game server deployments in a given project and location.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * ListGameServerDeploymentsRequest request =
+ * ListGameServerDeploymentsRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .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
*/
@@ -213,6 +271,29 @@ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(
* Lists game server deployments in a given project and location.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * ListGameServerDeploymentsRequest request =
+ * ListGameServerDeploymentsRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable<
ListGameServerDeploymentsRequest, ListGameServerDeploymentsPagedResponse>
@@ -225,6 +306,25 @@ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(
* Lists game server deployments in a given project and location.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * while (true) {
+ * ListGameServerDeploymentsResponse response =
+ * gameServerDeploymentsServiceClient.listGameServerDeploymentsCallable().call(request);
+ * for (GameServerDeployment element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.getGameServerDeployment(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to retrieve. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.getGameServerDeployment(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to retrieve. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GetGameServerDeploymentRequest request =
+ * GetGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .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
*/
@@ -278,6 +417,21 @@ public final GameServerDeployment getGameServerDeployment(
* Gets details of a single game server deployment.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GetGameServerDeploymentRequest request =
+ * GetGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient
+ * .createGameServerDeploymentAsync(parent, gameServerDeployment)
+ * .get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @param gameServerDeployment Required. The game server delpoyment resource to be created.
@@ -308,6 +476,21 @@ public final GameServerDeployment getGameServerDeployment(
/**
* Creates a new game server deployment in a given project and location.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String parent =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient
+ * .createGameServerDeploymentAsync(parent, gameServerDeployment)
+ * .get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @param gameServerDeployment Required. The game server delpoyment resource to be created.
@@ -327,6 +510,23 @@ public final GameServerDeployment getGameServerDeployment(
/**
* Creates a new game server deployment in a given project and location.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * CreateGameServerDeploymentRequest request =
+ * CreateGameServerDeploymentRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setDeploymentId("deploymentId-136894784")
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .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
*/
@@ -340,6 +540,25 @@ public final GameServerDeployment getGameServerDeployment(
* Creates a new game server deployment in a given project and location.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * CreateGameServerDeploymentRequest request =
+ * CreateGameServerDeploymentRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setDeploymentId("deploymentId-136894784")
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable<
CreateGameServerDeploymentRequest, GameServerDeployment, OperationMetadata>
@@ -352,6 +571,25 @@ public final GameServerDeployment getGameServerDeployment(
* Creates a new game server deployment in a given project and location.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * CreateGameServerDeploymentRequest request =
+ * CreateGameServerDeploymentRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setDeploymentId("deploymentId-136894784")
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * gameServerDeploymentsServiceClient.deleteGameServerDeploymentAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to delete. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * gameServerDeploymentsServiceClient.deleteGameServerDeploymentAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to delete. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * DeleteGameServerDeploymentRequest request =
+ * DeleteGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .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
*/
@@ -407,6 +681,23 @@ public final OperationFuture{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * DeleteGameServerDeploymentRequest request =
+ * DeleteGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * DeleteGameServerDeploymentRequest request =
+ * DeleteGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@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 delpoyment 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
@@ -451,6 +773,21 @@ public final OperationFuture{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRequest request =
+ * UpdateGameServerDeploymentRequest.newBuilder()
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .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
*/
@@ -464,6 +801,23 @@ public final OperationFuture{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRequest request =
+ * UpdateGameServerDeploymentRequest.newBuilder()
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable<
UpdateGameServerDeploymentRequest, GameServerDeployment, OperationMetadata>
@@ -476,6 +830,23 @@ public final OperationFuture{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRequest request =
+ * UpdateGameServerDeploymentRequest.newBuilder()
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * GameServerDeploymentRollout response =
+ * gameServerDeploymentsServiceClient.getGameServerDeploymentRollout(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to retrieve. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * GameServerDeploymentRollout response =
+ * gameServerDeploymentsServiceClient.getGameServerDeploymentRollout(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to retrieve. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GetGameServerDeploymentRolloutRequest request =
+ * GetGameServerDeploymentRolloutRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .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
*/
@@ -530,6 +940,23 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
* Gets details a single game server deployment rollout.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GetGameServerDeploymentRolloutRequest request =
+ * GetGameServerDeploymentRolloutRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentRollout rollout = GameServerDeploymentRollout.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient
+ * .updateGameServerDeploymentRolloutAsync(rollout, updateMask)
+ * .get();
+ * }
+ * }
+ *
* @param rollout Required. The game server delpoyment rollout 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
@@ -571,6 +1012,21 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
* realm is explicitly called out in game_server_config_overrides field, that will also not result
* in an error.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRolloutRequest request =
+ * UpdateGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.updateGameServerDeploymentRolloutAsync(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
*/
@@ -588,6 +1044,23 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
* in an error.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRolloutRequest request =
+ * UpdateGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable<
UpdateGameServerDeploymentRolloutRequest, GameServerDeployment, OperationMetadata>
@@ -604,6 +1077,23 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
* in an error.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRolloutRequest request =
+ * UpdateGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * PreviewGameServerDeploymentRolloutRequest request =
+ * PreviewGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .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
*/
@@ -627,6 +1133,24 @@ public final PreviewGameServerDeploymentRolloutResponse previewGameServerDeploym
* Previews the game server deployment rollout. This API does not mutate the rollout resource.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * PreviewGameServerDeploymentRolloutRequest request =
+ * PreviewGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable<
PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse>
@@ -640,6 +1164,18 @@ public final PreviewGameServerDeploymentRolloutResponse previewGameServerDeploym
* Agones fleets and Agones autoscalers, including fleets running an older version of the game
* server deployment.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * FetchDeploymentStateRequest request =
+ * FetchDeploymentStateRequest.newBuilder().setName("name3373707").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
*/
@@ -655,6 +1191,18 @@ public final FetchDeploymentStateResponse fetchDeploymentState(
* server deployment.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * FetchDeploymentStateRequest request =
+ * FetchDeploymentStateRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * Realm response = realmsServiceClient.getRealm(name);
+ * }
+ * }
+ *
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Realm element : realmsServiceClient.listRealms(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -176,6 +194,17 @@ public final ListRealmsPagedResponse listRealms(LocationName parent) {
/**
* Lists realms in a given project and location.
*
+ * {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * String parent = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString();
+ * for (Realm element : realmsServiceClient.listRealms(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -189,6 +218,24 @@ public final ListRealmsPagedResponse listRealms(String parent) {
/**
* Lists realms in a given project and location.
*
+ * {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * ListRealmsRequest request =
+ * ListRealmsRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .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
*/
@@ -201,6 +248,24 @@ public final ListRealmsPagedResponse listRealms(ListRealmsRequest request) {
* Lists realms in a given project and location.
*
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * ListRealmsRequest request =
+ * ListRealmsRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * while (true) {
+ * ListRealmsResponse response = realmsServiceClient.listRealmsCallable().call(request);
+ * for (Realm element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * Realm response = realmsServiceClient.getRealm(name);
+ * }
+ * }
+ *
* @param name Required. The name of the realm to retrieve. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -234,6 +325,15 @@ public final Realm getRealm(RealmName name) {
/**
* Gets details of a single realm.
*
+ * {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * String name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString();
+ * Realm response = realmsServiceClient.getRealm(name);
+ * }
+ * }
+ *
* @param name Required. The name of the realm to retrieve. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -247,6 +347,18 @@ public final Realm getRealm(String name) {
/**
* Gets details of a single realm.
*
+ * {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * GetRealmRequest request =
+ * GetRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .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
*/
@@ -259,6 +371,18 @@ public final Realm getRealm(GetRealmRequest request) {
* Gets details of a single realm.
*
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * GetRealmRequest request =
+ * GetRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Realm realm = Realm.newBuilder().build();
+ * String realmId = "realmId1080654858";
+ * Realm response = realmsServiceClient.createRealmAsync(parent, realm, realmId).get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @param realm Required. The realm resource to be created.
@@ -289,6 +424,17 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * String parent = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString();
+ * Realm realm = Realm.newBuilder().build();
+ * String realmId = "realmId1080654858";
+ * Realm response = realmsServiceClient.createRealmAsync(parent, realm, realmId).get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @param realm Required. The realm resource to be created.
@@ -310,6 +456,20 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * CreateRealmRequest request =
+ * CreateRealmRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setRealmId("realmId1080654858")
+ * .setRealm(Realm.newBuilder().build())
+ * .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
*/
@@ -323,6 +483,21 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * CreateRealmRequest request =
+ * CreateRealmRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setRealmId("realmId1080654858")
+ * .setRealm(Realm.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * CreateRealmRequest request =
+ * CreateRealmRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setRealmId("realmId1080654858")
+ * .setRealm(Realm.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * realmsServiceClient.deleteRealmAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the realm to delete. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -357,6 +555,15 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * String name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString();
+ * realmsServiceClient.deleteRealmAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the realm to delete. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -370,6 +577,18 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * DeleteRealmRequest request =
+ * DeleteRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .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
*/
@@ -383,6 +602,19 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * DeleteRealmRequest request =
+ * DeleteRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * DeleteRealmRequest request =
+ * DeleteRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@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`
@@ -422,6 +676,19 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * UpdateRealmRequest request =
+ * UpdateRealmRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .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
*/
@@ -435,6 +702,20 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * UpdateRealmRequest request =
+ * UpdateRealmRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * UpdateRealmRequest request =
+ * UpdateRealmRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * PreviewRealmUpdateRequest request =
+ * PreviewRealmUpdateRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .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
*/
@@ -467,6 +775,21 @@ public final PreviewRealmUpdateResponse previewRealmUpdate(PreviewRealmUpdateReq
* Previews patches to a single realm.
*
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * PreviewRealmUpdateRequest request =
+ * PreviewRealmUpdateRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * GameServerClusterName name =
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]");
+ * GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(name);
+ * }
+ * }
+ *
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GameServerConfigName name =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]");
+ * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(name);
+ * }
+ * }
+ *
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.getGameServerDeployment(name);
+ * }
+ * }
+ *
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * Realm response = realmsServiceClient.getRealm(name);
+ * }
+ * }
*/
@Generated("by gapic-generator-java")
package com.google.cloud.gaming.v1;
diff --git a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/stub/GrpcGameServerClustersServiceStub.java b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/stub/GrpcGameServerClustersServiceStub.java
index b07ef5e7..22e05625 100644
--- a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/stub/GrpcGameServerClustersServiceStub.java
+++ b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1/stub/GrpcGameServerClustersServiceStub.java
@@ -439,63 +439,75 @@ public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
+ @Override
public UnaryCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * GameServerClusterName name =
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]");
+ * GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(name);
+ * }
+ * }
+ *
* {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * RealmName parent = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * for (GameServerCluster element :
+ * gameServerClustersServiceClient.listGameServerClusters(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* "projects/{project}/locations/{location}/realms/{realm}".
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -184,6 +206,20 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(RealmNam
/**
* Lists game server clusters in a given project and location.
*
+ * {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * String parent =
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]").toString();
+ * for (GameServerCluster element :
+ * gameServerClustersServiceClient.listGameServerClusters(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* "projects/{project}/locations/{location}/realms/{realm}".
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -198,6 +234,28 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(String p
/**
* Lists game server clusters in a given project and location.
*
+ * {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * ListGameServerClustersRequest request =
+ * ListGameServerClustersRequest.newBuilder()
+ * .setParent(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .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
*/
@@ -211,6 +269,28 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(
* Lists game server clusters in a given project and location.
*
* {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * ListGameServerClustersRequest request =
+ * ListGameServerClustersRequest.newBuilder()
+ * .setParent(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * while (true) {
+ * ListGameServerClustersResponse response =
+ * gameServerClustersServiceClient.listGameServerClustersCallable().call(request);
+ * for (GameServerCluster element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
*/
public final UnaryCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * GameServerClusterName name =
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]");
+ * GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server cluster to retrieve. Uses the form:
* {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * String name =
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]").toString();
+ * GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server cluster to retrieve. Uses the form:
* {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * GetGameServerClusterRequest request =
+ * GetGameServerClusterRequest.newBuilder()
+ * .setName(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .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
*/
@@ -274,6 +410,22 @@ public final GameServerCluster getGameServerCluster(GetGameServerClusterRequest
* Gets details of a single game server cluster.
*
* {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * GetGameServerClusterRequest request =
+ * GetGameServerClusterRequest.newBuilder()
+ * .setName(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * RealmName parent = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
+ * String gameServerClusterId = "gameServerClusterId-1301104032";
+ * GameServerCluster response =
+ * gameServerClustersServiceClient
+ * .createGameServerClusterAsync(parent, gameServerCluster, gameServerClusterId)
+ * .get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm-id}`.
* @param gameServerCluster Required. The game server cluster resource to be created.
@@ -305,6 +472,22 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * String parent =
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]").toString();
+ * GameServerCluster gameServerCluster = GameServerCluster.newBuilder().build();
+ * String gameServerClusterId = "gameServerClusterId-1301104032";
+ * GameServerCluster response =
+ * gameServerClustersServiceClient
+ * .createGameServerClusterAsync(parent, gameServerCluster, gameServerClusterId)
+ * .get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm-id}`.
* @param gameServerCluster Required. The game server cluster resource to be created.
@@ -326,6 +509,24 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * CreateGameServerClusterRequest request =
+ * CreateGameServerClusterRequest.newBuilder()
+ * .setParent(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .setGameServerClusterId("gameServerClusterId-1301104032")
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .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
*/
@@ -339,6 +540,26 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * CreateGameServerClusterRequest request =
+ * CreateGameServerClusterRequest.newBuilder()
+ * .setParent(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .setGameServerClusterId("gameServerClusterId-1301104032")
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable<
CreateGameServerClusterRequest, GameServerCluster, OperationMetadata>
@@ -351,6 +572,24 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * CreateGameServerClusterRequest request =
+ * CreateGameServerClusterRequest.newBuilder()
+ * .setParent(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .setGameServerClusterId("gameServerClusterId-1301104032")
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * PreviewCreateGameServerClusterRequest request =
+ * PreviewCreateGameServerClusterRequest.newBuilder()
+ * .setParent(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .setGameServerClusterId("gameServerClusterId-1301104032")
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .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
*/
@@ -374,6 +632,27 @@ public final PreviewCreateGameServerClusterResponse previewCreateGameServerClust
* Previews creation of a new game server cluster in a given project and location.
*
* {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * PreviewCreateGameServerClusterRequest request =
+ * PreviewCreateGameServerClusterRequest.newBuilder()
+ * .setParent(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .setGameServerClusterId("gameServerClusterId-1301104032")
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable<
PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse>
@@ -385,6 +664,17 @@ public final PreviewCreateGameServerClusterResponse previewCreateGameServerClust
/**
* Deletes a single game server cluster.
*
+ * {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * GameServerClusterName name =
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]");
+ * gameServerClustersServiceClient.deleteGameServerClusterAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server cluster to delete. Uses the form:
* `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -402,6 +692,17 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * String name =
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]").toString();
+ * gameServerClustersServiceClient.deleteGameServerClusterAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server cluster to delete. Uses the form:
* `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -416,6 +717,21 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * DeleteGameServerClusterRequest request =
+ * DeleteGameServerClusterRequest.newBuilder()
+ * .setName(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .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
*/
@@ -429,6 +745,24 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * DeleteGameServerClusterRequest request =
+ * DeleteGameServerClusterRequest.newBuilder()
+ * .setName(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * DeleteGameServerClusterRequest request =
+ * DeleteGameServerClusterRequest.newBuilder()
+ * .setName(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * PreviewDeleteGameServerClusterRequest request =
+ * PreviewDeleteGameServerClusterRequest.newBuilder()
+ * .setName(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .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
*/
@@ -463,6 +830,25 @@ public final PreviewDeleteGameServerClusterResponse previewDeleteGameServerClust
* Previews deletion of a single game server cluster.
*
* {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * PreviewDeleteGameServerClusterRequest request =
+ * PreviewDeleteGameServerClusterRequest.newBuilder()
+ * .setName(
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
+ * .toString())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable<
PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse>
@@ -474,6 +860,20 @@ public final PreviewDeleteGameServerClusterResponse previewDeleteGameServerClust
/**
* Patches a single game server cluster.
*
+ * {@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
@@ -496,6 +896,21 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * UpdateGameServerClusterRequest request =
+ * UpdateGameServerClusterRequest.newBuilder()
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .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
*/
@@ -509,6 +924,23 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * UpdateGameServerClusterRequest request =
+ * UpdateGameServerClusterRequest.newBuilder()
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable<
UpdateGameServerClusterRequest, GameServerCluster, OperationMetadata>
@@ -521,6 +953,21 @@ public final OperationFuture{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * UpdateGameServerClusterRequest request =
+ * UpdateGameServerClusterRequest.newBuilder()
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * PreviewUpdateGameServerClusterRequest request =
+ * PreviewUpdateGameServerClusterRequest.newBuilder()
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .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
*/
@@ -544,6 +1007,24 @@ public final PreviewUpdateGameServerClusterResponse previewUpdateGameServerClust
* Previews updating a GameServerCluster.
*
* {@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * PreviewUpdateGameServerClusterRequest request =
+ * PreviewUpdateGameServerClusterRequest.newBuilder()
+ * .setGameServerCluster(GameServerCluster.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable<
PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse>
diff --git a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1beta/GameServerConfigsServiceClient.java b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1beta/GameServerConfigsServiceClient.java
index a6c948d4..dffc326c 100644
--- a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1beta/GameServerConfigsServiceClient.java
+++ b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1beta/GameServerConfigsServiceClient.java
@@ -46,6 +46,15 @@
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GameServerConfigName name =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]");
+ * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(name);
+ * }
+ * }
+ *
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GameServerDeploymentName parent =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * for (GameServerConfig element :
+ * gameServerConfigsServiceClient.listGameServerConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * String parent =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]").toString();
+ * for (GameServerConfig element :
+ * gameServerConfigsServiceClient.listGameServerConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * ListGameServerConfigsRequest request =
+ * ListGameServerConfigsRequest.newBuilder()
+ * .setParent(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (GameServerConfig element :
+ * gameServerConfigsServiceClient.listGameServerConfigs(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
*/
@@ -210,6 +269,28 @@ public final ListGameServerConfigsPagedResponse listGameServerConfigs(
* Lists game server configs in a given project, location, and game server deployment.
*
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * ListGameServerConfigsRequest request =
+ * ListGameServerConfigsRequest.newBuilder()
+ * .setParent(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * while (true) {
+ * ListGameServerConfigsResponse response =
+ * gameServerConfigsServiceClient.listGameServerConfigsCallable().call(request);
+ * for (GameServerConfig element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
*/
public final UnaryCallable{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GameServerConfigName name =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]");
+ * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server config to retrieve. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * String name =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]").toString();
+ * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server config to retrieve. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GetGameServerConfigRequest request =
+ * GetGameServerConfigRequest.newBuilder()
+ * .setName(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .build();
+ * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(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
*/
@@ -273,6 +410,22 @@ public final GameServerConfig getGameServerConfig(GetGameServerConfigRequest req
* Gets details of a single game server config.
*
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GetGameServerConfigRequest request =
+ * GetGameServerConfigRequest.newBuilder()
+ * .setName(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GameServerDeploymentName parent =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * GameServerConfig gameServerConfig = GameServerConfig.newBuilder().build();
+ * GameServerConfig response =
+ * gameServerConfigsServiceClient
+ * .createGameServerConfigAsync(parent, gameServerConfig)
+ * .get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * String parent =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]").toString();
+ * GameServerConfig gameServerConfig = GameServerConfig.newBuilder().build();
+ * GameServerConfig response =
+ * gameServerConfigsServiceClient
+ * .createGameServerConfigAsync(parent, gameServerConfig)
+ * .get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * CreateGameServerConfigRequest request =
+ * CreateGameServerConfigRequest.newBuilder()
+ * .setParent(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .setConfigId("configId-580140035")
+ * .setGameServerConfig(GameServerConfig.newBuilder().build())
+ * .build();
+ * GameServerConfig response =
+ * gameServerConfigsServiceClient.createGameServerConfigAsync(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
*/
@@ -342,6 +543,26 @@ public final OperationFuture{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * CreateGameServerConfigRequest request =
+ * CreateGameServerConfigRequest.newBuilder()
+ * .setParent(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .setConfigId("configId-580140035")
+ * .setGameServerConfig(GameServerConfig.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * CreateGameServerConfigRequest request =
+ * CreateGameServerConfigRequest.newBuilder()
+ * .setParent(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .setConfigId("configId-580140035")
+ * .setGameServerConfig(GameServerConfig.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GameServerConfigName name =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]");
+ * gameServerConfigsServiceClient.deleteGameServerConfigAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server config to delete. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * String name =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]").toString();
+ * gameServerConfigsServiceClient.deleteGameServerConfigAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server config to delete. Uses the form:
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * DeleteGameServerConfigRequest request =
+ * DeleteGameServerConfigRequest.newBuilder()
+ * .setName(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .build();
+ * gameServerConfigsServiceClient.deleteGameServerConfigAsync(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
*/
@@ -413,6 +689,24 @@ public final OperationFuture{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * DeleteGameServerConfigRequest request =
+ * DeleteGameServerConfigRequest.newBuilder()
+ * .setName(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * DeleteGameServerConfigRequest request =
+ * DeleteGameServerConfigRequest.newBuilder()
+ * .setName(
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.getGameServerDeployment(name);
+ * }
+ * }
+ *
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (GameServerDeployment element :
+ * gameServerDeploymentsServiceClient.listGameServerDeployments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -187,6 +210,20 @@ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(
/**
* Lists game server deployments in a given project and location.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String parent =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * for (GameServerDeployment element :
+ * gameServerDeploymentsServiceClient.listGameServerDeployments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -201,6 +238,27 @@ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(St
/**
* Lists game server deployments in a given project and location.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * ListGameServerDeploymentsRequest request =
+ * ListGameServerDeploymentsRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .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
*/
@@ -214,6 +272,29 @@ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(
* Lists game server deployments in a given project and location.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * ListGameServerDeploymentsRequest request =
+ * ListGameServerDeploymentsRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable<
ListGameServerDeploymentsRequest, ListGameServerDeploymentsPagedResponse>
@@ -226,6 +307,25 @@ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(
* Lists game server deployments in a given project and location.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * while (true) {
+ * ListGameServerDeploymentsResponse response =
+ * gameServerDeploymentsServiceClient.listGameServerDeploymentsCallable().call(request);
+ * for (GameServerDeployment element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.getGameServerDeployment(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to retrieve. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.getGameServerDeployment(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to retrieve. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GetGameServerDeploymentRequest request =
+ * GetGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .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
*/
@@ -279,6 +418,21 @@ public final GameServerDeployment getGameServerDeployment(
* Gets details of a single game server deployment.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GetGameServerDeploymentRequest request =
+ * GetGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient
+ * .createGameServerDeploymentAsync(parent, gameServerDeployment)
+ * .get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @param gameServerDeployment Required. The game server delpoyment resource to be created.
@@ -309,6 +477,21 @@ public final GameServerDeployment getGameServerDeployment(
/**
* Creates a new game server deployment in a given project and location.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String parent =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * GameServerDeployment gameServerDeployment = GameServerDeployment.newBuilder().build();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient
+ * .createGameServerDeploymentAsync(parent, gameServerDeployment)
+ * .get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @param gameServerDeployment Required. The game server delpoyment resource to be created.
@@ -328,6 +511,23 @@ public final GameServerDeployment getGameServerDeployment(
/**
* Creates a new game server deployment in a given project and location.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * CreateGameServerDeploymentRequest request =
+ * CreateGameServerDeploymentRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setDeploymentId("deploymentId-136894784")
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .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
*/
@@ -341,6 +541,25 @@ public final GameServerDeployment getGameServerDeployment(
* Creates a new game server deployment in a given project and location.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * CreateGameServerDeploymentRequest request =
+ * CreateGameServerDeploymentRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setDeploymentId("deploymentId-136894784")
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable<
CreateGameServerDeploymentRequest, GameServerDeployment, OperationMetadata>
@@ -353,6 +572,25 @@ public final GameServerDeployment getGameServerDeployment(
* Creates a new game server deployment in a given project and location.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * CreateGameServerDeploymentRequest request =
+ * CreateGameServerDeploymentRequest.newBuilder()
+ * .setParent(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .setDeploymentId("deploymentId-136894784")
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * gameServerDeploymentsServiceClient.deleteGameServerDeploymentAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to delete. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * gameServerDeploymentsServiceClient.deleteGameServerDeploymentAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to delete. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * DeleteGameServerDeploymentRequest request =
+ * DeleteGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .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
*/
@@ -408,6 +682,23 @@ public final OperationFuture{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * DeleteGameServerDeploymentRequest request =
+ * DeleteGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * DeleteGameServerDeploymentRequest request =
+ * DeleteGameServerDeploymentRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@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 delpoyment 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
@@ -452,6 +774,21 @@ public final OperationFuture{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRequest request =
+ * UpdateGameServerDeploymentRequest.newBuilder()
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .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
*/
@@ -465,6 +802,23 @@ public final OperationFuture{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRequest request =
+ * UpdateGameServerDeploymentRequest.newBuilder()
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable<
UpdateGameServerDeploymentRequest, GameServerDeployment, OperationMetadata>
@@ -477,6 +831,23 @@ public final OperationFuture{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRequest request =
+ * UpdateGameServerDeploymentRequest.newBuilder()
+ * .setGameServerDeployment(GameServerDeployment.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * GameServerDeploymentRollout response =
+ * gameServerDeploymentsServiceClient.getGameServerDeploymentRollout(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to retrieve. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * String name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString();
+ * GameServerDeploymentRollout response =
+ * gameServerDeploymentsServiceClient.getGameServerDeploymentRollout(name);
+ * }
+ * }
+ *
* @param name Required. The name of the game server delpoyment to retrieve. Uses the form:
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GetGameServerDeploymentRolloutRequest request =
+ * GetGameServerDeploymentRolloutRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .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
*/
@@ -531,6 +941,23 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
* Gets details a single game server deployment rollout.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GetGameServerDeploymentRolloutRequest request =
+ * GetGameServerDeploymentRolloutRequest.newBuilder()
+ * .setName(
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentRollout rollout = GameServerDeploymentRollout.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient
+ * .updateGameServerDeploymentRolloutAsync(rollout, updateMask)
+ * .get();
+ * }
+ * }
+ *
* @param rollout Required. The game server delpoyment rollout 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
@@ -572,6 +1013,21 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
* realm is explicitly called out in game_server_config_overrides field, that will also not result
* in an error.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRolloutRequest request =
+ * UpdateGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.updateGameServerDeploymentRolloutAsync(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
*/
@@ -589,6 +1045,23 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
* in an error.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRolloutRequest request =
+ * UpdateGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable<
UpdateGameServerDeploymentRolloutRequest, GameServerDeployment, OperationMetadata>
@@ -605,6 +1078,23 @@ public final GameServerDeploymentRollout getGameServerDeploymentRollout(
* in an error.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * UpdateGameServerDeploymentRolloutRequest request =
+ * UpdateGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * PreviewGameServerDeploymentRolloutRequest request =
+ * PreviewGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .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
*/
@@ -628,6 +1134,24 @@ public final PreviewGameServerDeploymentRolloutResponse previewGameServerDeploym
* Previews the game server deployment rollout. This API does not mutate the rollout resource.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * PreviewGameServerDeploymentRolloutRequest request =
+ * PreviewGameServerDeploymentRolloutRequest.newBuilder()
+ * .setRollout(GameServerDeploymentRollout.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable<
PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse>
@@ -641,6 +1165,18 @@ public final PreviewGameServerDeploymentRolloutResponse previewGameServerDeploym
* Agones fleets and Agones autoscalers, including fleets running an older version of the game
* server deployment.
*
+ * {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * FetchDeploymentStateRequest request =
+ * FetchDeploymentStateRequest.newBuilder().setName("name3373707").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
*/
@@ -656,6 +1192,18 @@ public final FetchDeploymentStateResponse fetchDeploymentState(
* server deployment.
*
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * FetchDeploymentStateRequest request =
+ * FetchDeploymentStateRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * Realm response = realmsServiceClient.getRealm(name);
+ * }
+ * }
+ *
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Realm element : realmsServiceClient.listRealms(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -177,6 +195,17 @@ public final ListRealmsPagedResponse listRealms(LocationName parent) {
/**
* Lists realms in a given project and location.
*
+ * {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * String parent = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString();
+ * for (Realm element : realmsServiceClient.listRealms(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -190,6 +219,24 @@ public final ListRealmsPagedResponse listRealms(String parent) {
/**
* Lists realms in a given project and location.
*
+ * {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * ListRealmsRequest request =
+ * ListRealmsRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .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
*/
@@ -202,6 +249,24 @@ public final ListRealmsPagedResponse listRealms(ListRealmsRequest request) {
* Lists realms in a given project and location.
*
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * ListRealmsRequest request =
+ * ListRealmsRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * while (true) {
+ * ListRealmsResponse response = realmsServiceClient.listRealmsCallable().call(request);
+ * for (Realm element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * Realm response = realmsServiceClient.getRealm(name);
+ * }
+ * }
+ *
* @param name Required. The name of the realm to retrieve. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -235,6 +326,15 @@ public final Realm getRealm(RealmName name) {
/**
* Gets details of a single realm.
*
+ * {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * String name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString();
+ * Realm response = realmsServiceClient.getRealm(name);
+ * }
+ * }
+ *
* @param name Required. The name of the realm to retrieve. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -248,6 +348,18 @@ public final Realm getRealm(String name) {
/**
* Gets details of a single realm.
*
+ * {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * GetRealmRequest request =
+ * GetRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .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
*/
@@ -260,6 +372,18 @@ public final Realm getRealm(GetRealmRequest request) {
* Gets details of a single realm.
*
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * GetRealmRequest request =
+ * GetRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Realm realm = Realm.newBuilder().build();
+ * String realmId = "realmId1080654858";
+ * Realm response = realmsServiceClient.createRealmAsync(parent, realm, realmId).get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @param realm Required. The realm resource to be created.
@@ -290,6 +425,17 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * String parent = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString();
+ * Realm realm = Realm.newBuilder().build();
+ * String realmId = "realmId1080654858";
+ * Realm response = realmsServiceClient.createRealmAsync(parent, realm, realmId).get();
+ * }
+ * }
+ *
* @param parent Required. The parent resource name. Uses the form:
* `projects/{project}/locations/{location}`.
* @param realm Required. The realm resource to be created.
@@ -311,6 +457,20 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * CreateRealmRequest request =
+ * CreateRealmRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setRealmId("realmId1080654858")
+ * .setRealm(Realm.newBuilder().build())
+ * .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
*/
@@ -324,6 +484,21 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * CreateRealmRequest request =
+ * CreateRealmRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setRealmId("realmId1080654858")
+ * .setRealm(Realm.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * CreateRealmRequest request =
+ * CreateRealmRequest.newBuilder()
+ * .setParent(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .setRealmId("realmId1080654858")
+ * .setRealm(Realm.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * realmsServiceClient.deleteRealmAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the realm to delete. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -358,6 +556,15 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * String name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString();
+ * realmsServiceClient.deleteRealmAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the realm to delete. Uses the form:
* `projects/{project}/locations/{location}/realms/{realm}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -371,6 +578,18 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * DeleteRealmRequest request =
+ * DeleteRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .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
*/
@@ -384,6 +603,19 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * DeleteRealmRequest request =
+ * DeleteRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * DeleteRealmRequest request =
+ * DeleteRealmRequest.newBuilder()
+ * .setName(RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]").toString())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@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`
@@ -423,6 +677,19 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * UpdateRealmRequest request =
+ * UpdateRealmRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .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
*/
@@ -436,6 +703,20 @@ public final OperationFuture{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * UpdateRealmRequest request =
+ * UpdateRealmRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
*/
public final OperationCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * UpdateRealmRequest request =
+ * UpdateRealmRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * PreviewRealmUpdateRequest request =
+ * PreviewRealmUpdateRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .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
*/
@@ -468,6 +776,21 @@ public final PreviewRealmUpdateResponse previewRealmUpdate(PreviewRealmUpdateReq
* Previews patches to a single realm.
*
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * PreviewRealmUpdateRequest request =
+ * PreviewRealmUpdateRequest.newBuilder()
+ * .setRealm(Realm.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setPreviewTime(Timestamp.newBuilder().build())
+ * .build();
+ * ApiFuture
*/
public final UnaryCallable{@code
+ * try (GameServerClustersServiceClient gameServerClustersServiceClient =
+ * GameServerClustersServiceClient.create()) {
+ * GameServerClusterName name =
+ * GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]");
+ * GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(name);
+ * }
+ * }
+ *
* {@code
+ * try (GameServerConfigsServiceClient gameServerConfigsServiceClient =
+ * GameServerConfigsServiceClient.create()) {
+ * GameServerConfigName name =
+ * GameServerConfigName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]", "[CONFIG]");
+ * GameServerConfig response = gameServerConfigsServiceClient.getGameServerConfig(name);
+ * }
+ * }
+ *
* {@code
+ * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient =
+ * GameServerDeploymentsServiceClient.create()) {
+ * GameServerDeploymentName name =
+ * GameServerDeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]");
+ * GameServerDeployment response =
+ * gameServerDeploymentsServiceClient.getGameServerDeployment(name);
+ * }
+ * }
+ *
* {@code
+ * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+ * RealmName name = RealmName.of("[PROJECT]", "[LOCATION]", "[REALM]");
+ * Realm response = realmsServiceClient.getRealm(name);
+ * }
+ * }
*/
@Generated("by gapic-generator-java")
package com.google.cloud.gaming.v1beta;
diff --git a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1beta/stub/GrpcGameServerClustersServiceStub.java b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1beta/stub/GrpcGameServerClustersServiceStub.java
index b7351e12..d6365511 100644
--- a/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1beta/stub/GrpcGameServerClustersServiceStub.java
+++ b/google-cloud-game-servers/src/main/java/com/google/cloud/gaming/v1beta/stub/GrpcGameServerClustersServiceStub.java
@@ -441,63 +441,75 @@ public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
+ @Override
public UnaryCallable