diff --git a/.kokoro/continuous/gameservices-it.cfg b/.kokoro/continuous/gameservices-it.cfg
new file mode 100644
index 000000000000..3abb415e9432
--- /dev/null
+++ b/.kokoro/continuous/gameservices-it.cfg
@@ -0,0 +1,27 @@
+# Format: //devtools/kokoro/config/proto/build.proto
+
+# Configure the docker image for kokoro-trampoline.
+env_vars: {
+ key: "TRAMPOLINE_IMAGE"
+ value: "gcr.io/cloud-devrel-kokoro-resources/java8"
+}
+
+env_vars: {
+ key: "INTEGRATION_TEST_ARGS"
+ value: "google-cloud-clients/google-cloud-gameservices"
+}
+
+env_vars: {
+ key: "JOB_TYPE"
+ value: "integration"
+}
+
+env_vars: {
+ key: "GCLOUD_PROJECT"
+ value: "gcloud-devel"
+}
+
+env_vars: {
+ key: "GOOGLE_APPLICATION_CREDENTIALS"
+ value: "keystore/73713_java_it_service_account"
+}
diff --git a/.kokoro/nightly/gameservices-it.cfg b/.kokoro/nightly/gameservices-it.cfg
new file mode 100644
index 000000000000..3abb415e9432
--- /dev/null
+++ b/.kokoro/nightly/gameservices-it.cfg
@@ -0,0 +1,27 @@
+# Format: //devtools/kokoro/config/proto/build.proto
+
+# Configure the docker image for kokoro-trampoline.
+env_vars: {
+ key: "TRAMPOLINE_IMAGE"
+ value: "gcr.io/cloud-devrel-kokoro-resources/java8"
+}
+
+env_vars: {
+ key: "INTEGRATION_TEST_ARGS"
+ value: "google-cloud-clients/google-cloud-gameservices"
+}
+
+env_vars: {
+ key: "JOB_TYPE"
+ value: "integration"
+}
+
+env_vars: {
+ key: "GCLOUD_PROJECT"
+ value: "gcloud-devel"
+}
+
+env_vars: {
+ key: "GOOGLE_APPLICATION_CREDENTIALS"
+ value: "keystore/73713_java_it_service_account"
+}
diff --git a/.kokoro/presubmit/ebsecurityscanner-it.cfg b/.kokoro/presubmit/ebsecurityscanner-it.cfg
deleted file mode 100644
index e69de29bb2d1..000000000000
diff --git a/.kokoro/presubmit/gameservices-it.cfg b/.kokoro/presubmit/gameservices-it.cfg
new file mode 100644
index 000000000000..3abb415e9432
--- /dev/null
+++ b/.kokoro/presubmit/gameservices-it.cfg
@@ -0,0 +1,27 @@
+# Format: //devtools/kokoro/config/proto/build.proto
+
+# Configure the docker image for kokoro-trampoline.
+env_vars: {
+ key: "TRAMPOLINE_IMAGE"
+ value: "gcr.io/cloud-devrel-kokoro-resources/java8"
+}
+
+env_vars: {
+ key: "INTEGRATION_TEST_ARGS"
+ value: "google-cloud-clients/google-cloud-gameservices"
+}
+
+env_vars: {
+ key: "JOB_TYPE"
+ value: "integration"
+}
+
+env_vars: {
+ key: "GCLOUD_PROJECT"
+ value: "gcloud-devel"
+}
+
+env_vars: {
+ key: "GOOGLE_APPLICATION_CREDENTIALS"
+ value: "keystore/73713_java_it_service_account"
+}
diff --git a/google-api-grpc/grpc-google-cloud-gameservices-v1alpha/pom.xml b/google-api-grpc/grpc-google-cloud-gameservices-v1alpha/pom.xml
new file mode 100644
index 000000000000..20221c539be5
--- /dev/null
+++ b/google-api-grpc/grpc-google-cloud-gameservices-v1alpha/pom.xml
@@ -0,0 +1,53 @@
+
+ * The cloud gaming allocation policy is used as the controller's recipe for the + * allocating game servers from clusters. The policy has three modes: + * 1. Default mode which is not limited to time. + * 2. Time based mode which is temporary and overrides the default mode when + * effective. + * 3. Periodic mode which follows the time base mode, but happens + * periodically using local time, identified by cron specs. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/gaming/v1alpha/allocation_policies.proto") +public final class AllocationPoliciesServiceGrpc { + + private AllocationPoliciesServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gaming.v1alpha.AllocationPoliciesService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListAllocationPoliciesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse> + METHOD_LIST_ALLOCATION_POLICIES = getListAllocationPoliciesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse> + getListAllocationPoliciesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse> + getListAllocationPoliciesMethod() { + return getListAllocationPoliciesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse> + getListAllocationPoliciesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse> + getListAllocationPoliciesMethod; + if ((getListAllocationPoliciesMethod = + AllocationPoliciesServiceGrpc.getListAllocationPoliciesMethod) + == null) { + synchronized (AllocationPoliciesServiceGrpc.class) { + if ((getListAllocationPoliciesMethod = + AllocationPoliciesServiceGrpc.getListAllocationPoliciesMethod) + == null) { + AllocationPoliciesServiceGrpc.getListAllocationPoliciesMethod = + getListAllocationPoliciesMethod = + io.grpc.MethodDescriptor + .
+ * The cloud gaming allocation policy is used as the controller's recipe for the + * allocating game servers from clusters. The policy has three modes: + * 1. Default mode which is not limited to time. + * 2. Time based mode which is temporary and overrides the default mode when + * effective. + * 3. Periodic mode which follows the time base mode, but happens + * periodically using local time, identified by cron specs. + *+ */ + public abstract static class AllocationPoliciesServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+ * List allocation policies in a given project and location. + *+ */ + public void listAllocationPolicies( + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single allocation policy. + *+ */ + public void getAllocationPolicy( + com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new allocation policy in a given project and location. + *+ */ + public void createAllocationPolicy( + com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single allocation policy. + *+ */ + public void deleteAllocationPolicy( + com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Patches a single allocation policy. + *+ */ + public void updateAllocationPolicy( + com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest request, + io.grpc.stub.StreamObserver
+ * The cloud gaming allocation policy is used as the controller's recipe for the + * allocating game servers from clusters. The policy has three modes: + * 1. Default mode which is not limited to time. + * 2. Time based mode which is temporary and overrides the default mode when + * effective. + * 3. Periodic mode which follows the time base mode, but happens + * periodically using local time, identified by cron specs. + *+ */ + public static final class AllocationPoliciesServiceStub + extends io.grpc.stub.AbstractStub
+ * List allocation policies in a given project and location. + *+ */ + public void listAllocationPolicies( + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single allocation policy. + *+ */ + public void getAllocationPolicy( + com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new allocation policy in a given project and location. + *+ */ + public void createAllocationPolicy( + com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single allocation policy. + *+ */ + public void deleteAllocationPolicy( + com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Patches a single allocation policy. + *+ */ + public void updateAllocationPolicy( + com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest request, + io.grpc.stub.StreamObserver
+ * The cloud gaming allocation policy is used as the controller's recipe for the + * allocating game servers from clusters. The policy has three modes: + * 1. Default mode which is not limited to time. + * 2. Time based mode which is temporary and overrides the default mode when + * effective. + * 3. Periodic mode which follows the time base mode, but happens + * periodically using local time, identified by cron specs. + *+ */ + public static final class AllocationPoliciesServiceBlockingStub + extends io.grpc.stub.AbstractStub
+ * List allocation policies in a given project and location. + *+ */ + public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse listAllocationPolicies( + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest request) { + return blockingUnaryCall( + getChannel(), getListAllocationPoliciesMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single allocation policy. + *+ */ + public com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicy( + com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getGetAllocationPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new allocation policy in a given project and location. + *+ */ + public com.google.longrunning.Operation createAllocationPolicy( + com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getCreateAllocationPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single allocation policy. + *+ */ + public com.google.longrunning.Operation deleteAllocationPolicy( + com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteAllocationPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Patches a single allocation policy. + *+ */ + public com.google.longrunning.Operation updateAllocationPolicy( + com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateAllocationPolicyMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * The cloud gaming allocation policy is used as the controller's recipe for the + * allocating game servers from clusters. The policy has three modes: + * 1. Default mode which is not limited to time. + * 2. Time based mode which is temporary and overrides the default mode when + * effective. + * 3. Periodic mode which follows the time base mode, but happens + * periodically using local time, identified by cron specs. + *+ */ + public static final class AllocationPoliciesServiceFutureStub + extends io.grpc.stub.AbstractStub
+ * List allocation policies in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse> + listAllocationPolicies( + com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListAllocationPoliciesMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single allocation policy. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.AllocationPolicy> + getAllocationPolicy(com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetAllocationPolicyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Creates a new allocation policy in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single allocation policy. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Patches a single allocation policy. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * The game server cluster is used to capture the game server cluster's settings + * which are used to manage game server clusters. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/gaming/v1alpha/game_server_clusters.proto") +public final class GameServerClustersServiceGrpc { + + private GameServerClustersServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gaming.v1alpha.GameServerClustersService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListGameServerClustersMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, + com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> + METHOD_LIST_GAME_SERVER_CLUSTERS = getListGameServerClustersMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, + com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> + getListGameServerClustersMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, + com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> + getListGameServerClustersMethod() { + return getListGameServerClustersMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, + com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> + getListGameServerClustersMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest, + com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> + getListGameServerClustersMethod; + if ((getListGameServerClustersMethod = + GameServerClustersServiceGrpc.getListGameServerClustersMethod) + == null) { + synchronized (GameServerClustersServiceGrpc.class) { + if ((getListGameServerClustersMethod = + GameServerClustersServiceGrpc.getListGameServerClustersMethod) + == null) { + GameServerClustersServiceGrpc.getListGameServerClustersMethod = + getListGameServerClustersMethod = + io.grpc.MethodDescriptor + .
+ * The game server cluster is used to capture the game server cluster's settings + * which are used to manage game server clusters. + *+ */ + public abstract static class GameServerClustersServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+ * Lists game server clusters in a given project and location. + *+ */ + public void listGameServerClusters( + com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single game server cluster. + *+ */ + public void getGameServerCluster( + com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new game server cluster in a given project and location. + *+ */ + public void createGameServerCluster( + com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single game server cluster. + *+ */ + public void deleteGameServerCluster( + com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest request, + io.grpc.stub.StreamObserver
+ * Patches a single game server cluster. + *+ */ + public void updateGameServerCluster( + com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest request, + io.grpc.stub.StreamObserver
+ * The game server cluster is used to capture the game server cluster's settings + * which are used to manage game server clusters. + *+ */ + public static final class GameServerClustersServiceStub + extends io.grpc.stub.AbstractStub
+ * Lists game server clusters in a given project and location. + *+ */ + public void listGameServerClusters( + com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single game server cluster. + *+ */ + public void getGameServerCluster( + com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new game server cluster in a given project and location. + *+ */ + public void createGameServerCluster( + com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single game server cluster. + *+ */ + public void deleteGameServerCluster( + com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest request, + io.grpc.stub.StreamObserver
+ * Patches a single game server cluster. + *+ */ + public void updateGameServerCluster( + com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest request, + io.grpc.stub.StreamObserver
+ * The game server cluster is used to capture the game server cluster's settings + * which are used to manage game server clusters. + *+ */ + public static final class GameServerClustersServiceBlockingStub + extends io.grpc.stub.AbstractStub
+ * Lists game server clusters in a given project and location. + *+ */ + public com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse listGameServerClusters( + com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest request) { + return blockingUnaryCall( + getChannel(), getListGameServerClustersMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single game server cluster. + *+ */ + public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster( + com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest request) { + return blockingUnaryCall( + getChannel(), getGetGameServerClusterMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new game server cluster in a given project and location. + *+ */ + public com.google.longrunning.Operation createGameServerCluster( + com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest request) { + return blockingUnaryCall( + getChannel(), getCreateGameServerClusterMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single game server cluster. + *+ */ + public com.google.longrunning.Operation deleteGameServerCluster( + com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteGameServerClusterMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Patches a single game server cluster. + *+ */ + public com.google.longrunning.Operation updateGameServerCluster( + com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateGameServerClusterMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * The game server cluster is used to capture the game server cluster's settings + * which are used to manage game server clusters. + *+ */ + public static final class GameServerClustersServiceFutureStub + extends io.grpc.stub.AbstractStub
+ * Lists game server clusters in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse> + listGameServerClusters( + com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest request) { + return futureUnaryCall( + getChannel().newCall(getListGameServerClustersMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single game server cluster. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.GameServerCluster> + getGameServerCluster(com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetGameServerClusterMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Creates a new game server cluster in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single game server cluster. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Patches a single game server cluster. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * The game server deployment is used to configure the deployment of game server + * software to Agones Fleets in game server clusters. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/gaming/v1alpha/game_server_deployments.proto") +public final class GameServerDeploymentsServiceGrpc { + + private GameServerDeploymentsServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.gaming.v1alpha.GameServerDeploymentsService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListGameServerDeploymentsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> + METHOD_LIST_GAME_SERVER_DEPLOYMENTS = getListGameServerDeploymentsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> + getListGameServerDeploymentsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> + getListGameServerDeploymentsMethod() { + return getListGameServerDeploymentsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> + getListGameServerDeploymentsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> + getListGameServerDeploymentsMethod; + if ((getListGameServerDeploymentsMethod = + GameServerDeploymentsServiceGrpc.getListGameServerDeploymentsMethod) + == null) { + synchronized (GameServerDeploymentsServiceGrpc.class) { + if ((getListGameServerDeploymentsMethod = + GameServerDeploymentsServiceGrpc.getListGameServerDeploymentsMethod) + == null) { + GameServerDeploymentsServiceGrpc.getListGameServerDeploymentsMethod = + getListGameServerDeploymentsMethod = + io.grpc.MethodDescriptor + .
+ * The game server deployment is used to configure the deployment of game server + * software to Agones Fleets in game server clusters. + *+ */ + public abstract static class GameServerDeploymentsServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+ * Lists game server deployments in a given project and location. + *+ */ + public void listGameServerDeployments( + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> + responseObserver) { + asyncUnimplementedUnaryCall(getListGameServerDeploymentsMethodHelper(), responseObserver); + } + + /** + * + * + *
+ * Gets details of a single game server deployment. + *+ */ + public void getGameServerDeployment( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new game server deployment in a given project and location. + *+ */ + public void createGameServerDeployment( + com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single game server deployment. + *+ */ + public void deleteGameServerDeployment( + com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest request, + io.grpc.stub.StreamObserver
+ * Patches a game server deployment. + *+ */ + public void updateGameServerDeployment( + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest request, + io.grpc.stub.StreamObserver
+ * Starts rollout of this game server deployment based on the given game + * server template. + *+ */ + public void startRollout( + com.google.cloud.gaming.v1alpha.StartRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Sets rollout target for the ongoing game server deployment rollout in the + * specified clusters and based on the given rollout percentage. Default is 0. + *+ */ + public void setRolloutTarget( + com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest request, + io.grpc.stub.StreamObserver
+ * Commits the ongoing game server deployment rollout by setting the rollout + * percentage to 100 in all clusters whose labels match labels in the game + * server template. + *+ */ + public void commitRollout( + com.google.cloud.gaming.v1alpha.CommitRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Rolls back the ongoing game server deployment rollout by setting the + * rollout percentage to 0 in all clusters whose labels match labels in the + * game server template. + *+ */ + public void revertRollout( + com.google.cloud.gaming.v1alpha.RevertRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves information on the rollout target of the deployment, e.g. the + * target percentage of game servers running stable_game_server_template and + * new_game_server_template in clusters. + *+ */ + public void getDeploymentTarget( + com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest request, + io.grpc.stub.StreamObserver
+ * The game server deployment is used to configure the deployment of game server + * software to Agones Fleets in game server clusters. + *+ */ + public static final class GameServerDeploymentsServiceStub + extends io.grpc.stub.AbstractStub
+ * Lists game server deployments in a given project and location. + *+ */ + public void listGameServerDeployments( + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListGameServerDeploymentsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+ * Gets details of a single game server deployment. + *+ */ + public void getGameServerDeployment( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new game server deployment in a given project and location. + *+ */ + public void createGameServerDeployment( + com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single game server deployment. + *+ */ + public void deleteGameServerDeployment( + com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest request, + io.grpc.stub.StreamObserver
+ * Patches a game server deployment. + *+ */ + public void updateGameServerDeployment( + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest request, + io.grpc.stub.StreamObserver
+ * Starts rollout of this game server deployment based on the given game + * server template. + *+ */ + public void startRollout( + com.google.cloud.gaming.v1alpha.StartRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Sets rollout target for the ongoing game server deployment rollout in the + * specified clusters and based on the given rollout percentage. Default is 0. + *+ */ + public void setRolloutTarget( + com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest request, + io.grpc.stub.StreamObserver
+ * Commits the ongoing game server deployment rollout by setting the rollout + * percentage to 100 in all clusters whose labels match labels in the game + * server template. + *+ */ + public void commitRollout( + com.google.cloud.gaming.v1alpha.CommitRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Rolls back the ongoing game server deployment rollout by setting the + * rollout percentage to 0 in all clusters whose labels match labels in the + * game server template. + *+ */ + public void revertRollout( + com.google.cloud.gaming.v1alpha.RevertRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves information on the rollout target of the deployment, e.g. the + * target percentage of game servers running stable_game_server_template and + * new_game_server_template in clusters. + *+ */ + public void getDeploymentTarget( + com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest request, + io.grpc.stub.StreamObserver
+ * The game server deployment is used to configure the deployment of game server + * software to Agones Fleets in game server clusters. + *+ */ + public static final class GameServerDeploymentsServiceBlockingStub + extends io.grpc.stub.AbstractStub
+ * Lists game server deployments in a given project and location. + *+ */ + public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse + listGameServerDeployments( + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest request) { + return blockingUnaryCall( + getChannel(), getListGameServerDeploymentsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single game server deployment. + *+ */ + public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest request) { + return blockingUnaryCall( + getChannel(), getGetGameServerDeploymentMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new game server deployment in a given project and location. + *+ */ + public com.google.longrunning.Operation createGameServerDeployment( + com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest request) { + return blockingUnaryCall( + getChannel(), getCreateGameServerDeploymentMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single game server deployment. + *+ */ + public com.google.longrunning.Operation deleteGameServerDeployment( + com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteGameServerDeploymentMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Patches a game server deployment. + *+ */ + public com.google.longrunning.Operation updateGameServerDeployment( + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateGameServerDeploymentMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Starts rollout of this game server deployment based on the given game + * server template. + *+ */ + public com.google.longrunning.Operation startRollout( + com.google.cloud.gaming.v1alpha.StartRolloutRequest request) { + return blockingUnaryCall( + getChannel(), getStartRolloutMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Sets rollout target for the ongoing game server deployment rollout in the + * specified clusters and based on the given rollout percentage. Default is 0. + *+ */ + public com.google.longrunning.Operation setRolloutTarget( + com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest request) { + return blockingUnaryCall( + getChannel(), getSetRolloutTargetMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Commits the ongoing game server deployment rollout by setting the rollout + * percentage to 100 in all clusters whose labels match labels in the game + * server template. + *+ */ + public com.google.longrunning.Operation commitRollout( + com.google.cloud.gaming.v1alpha.CommitRolloutRequest request) { + return blockingUnaryCall( + getChannel(), getCommitRolloutMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Rolls back the ongoing game server deployment rollout by setting the + * rollout percentage to 0 in all clusters whose labels match labels in the + * game server template. + *+ */ + public com.google.longrunning.Operation revertRollout( + com.google.cloud.gaming.v1alpha.RevertRolloutRequest request) { + return blockingUnaryCall( + getChannel(), getRevertRolloutMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Retrieves information on the rollout target of the deployment, e.g. the + * target percentage of game servers running stable_game_server_template and + * new_game_server_template in clusters. + *+ */ + public com.google.cloud.gaming.v1alpha.DeploymentTarget getDeploymentTarget( + com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest request) { + return blockingUnaryCall( + getChannel(), getGetDeploymentTargetMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * The game server deployment is used to configure the deployment of game server + * software to Agones Fleets in game server clusters. + *+ */ + public static final class GameServerDeploymentsServiceFutureStub + extends io.grpc.stub.AbstractStub
+ * Lists game server deployments in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse> + listGameServerDeployments( + com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListGameServerDeploymentsMethodHelper(), getCallOptions()), + request); + } + + /** + * + * + *
+ * Gets details of a single game server deployment. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.GameServerDeployment> + getGameServerDeployment( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetGameServerDeploymentMethodHelper(), getCallOptions()), + request); + } + + /** + * + * + *
+ * Creates a new game server deployment in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single game server deployment. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Patches a game server deployment. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Starts rollout of this game server deployment based on the given game + * server template. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Sets rollout target for the ongoing game server deployment rollout in the + * specified clusters and based on the given rollout percentage. Default is 0. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Commits the ongoing game server deployment rollout by setting the rollout + * percentage to 100 in all clusters whose labels match labels in the game + * server template. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Rolls back the ongoing game server deployment rollout by setting the + * rollout percentage to 0 in all clusters whose labels match labels in the + * game server template. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Retrieves information on the rollout target of the deployment, e.g. the + * target percentage of game servers running stable_game_server_template and + * new_game_server_template in clusters. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.DeploymentTarget> + getDeploymentTarget(com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetDeploymentTargetMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_GAME_SERVER_DEPLOYMENTS = 0; + private static final int METHODID_GET_GAME_SERVER_DEPLOYMENT = 1; + private static final int METHODID_CREATE_GAME_SERVER_DEPLOYMENT = 2; + private static final int METHODID_DELETE_GAME_SERVER_DEPLOYMENT = 3; + private static final int METHODID_UPDATE_GAME_SERVER_DEPLOYMENT = 4; + private static final int METHODID_START_ROLLOUT = 5; + private static final int METHODID_SET_ROLLOUT_TARGET = 6; + private static final int METHODID_COMMIT_ROLLOUT = 7; + private static final int METHODID_REVERT_ROLLOUT = 8; + private static final int METHODID_GET_DEPLOYMENT_TARGET = 9; + + private static final class MethodHandlers
+ * Realm provides grouping of game server clusters that are serving particular + * gamer population. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/gaming/v1alpha/realms.proto") +public final class RealmsServiceGrpc { + + private RealmsServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gaming.v1alpha.RealmsService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListRealmsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListRealmsRequest, + com.google.cloud.gaming.v1alpha.ListRealmsResponse> + METHOD_LIST_REALMS = getListRealmsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListRealmsRequest, + com.google.cloud.gaming.v1alpha.ListRealmsResponse> + getListRealmsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListRealmsRequest, + com.google.cloud.gaming.v1alpha.ListRealmsResponse> + getListRealmsMethod() { + return getListRealmsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListRealmsRequest, + com.google.cloud.gaming.v1alpha.ListRealmsResponse> + getListRealmsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListRealmsRequest, + com.google.cloud.gaming.v1alpha.ListRealmsResponse> + getListRealmsMethod; + if ((getListRealmsMethod = RealmsServiceGrpc.getListRealmsMethod) == null) { + synchronized (RealmsServiceGrpc.class) { + if ((getListRealmsMethod = RealmsServiceGrpc.getListRealmsMethod) == null) { + RealmsServiceGrpc.getListRealmsMethod = + getListRealmsMethod = + io.grpc.MethodDescriptor + .
+ * Realm provides grouping of game server clusters that are serving particular + * gamer population. + *+ */ + public abstract static class RealmsServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Lists realms in a given project and location. + *+ */ + public void listRealms( + com.google.cloud.gaming.v1alpha.ListRealmsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single realm. + *+ */ + public void getRealm( + com.google.cloud.gaming.v1alpha.GetRealmRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Realm in a given project and location. + *+ */ + public void createRealm( + com.google.cloud.gaming.v1alpha.CreateRealmRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single realm. + *+ */ + public void deleteRealm( + com.google.cloud.gaming.v1alpha.DeleteRealmRequest request, + io.grpc.stub.StreamObserver
+ * Patches a single Realm. + *+ */ + public void updateRealm( + com.google.cloud.gaming.v1alpha.UpdateRealmRequest request, + io.grpc.stub.StreamObserver
+ * Realm provides grouping of game server clusters that are serving particular + * gamer population. + *+ */ + public static final class RealmsServiceStub extends io.grpc.stub.AbstractStub
+ * Lists realms in a given project and location. + *+ */ + public void listRealms( + com.google.cloud.gaming.v1alpha.ListRealmsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single realm. + *+ */ + public void getRealm( + com.google.cloud.gaming.v1alpha.GetRealmRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Realm in a given project and location. + *+ */ + public void createRealm( + com.google.cloud.gaming.v1alpha.CreateRealmRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single realm. + *+ */ + public void deleteRealm( + com.google.cloud.gaming.v1alpha.DeleteRealmRequest request, + io.grpc.stub.StreamObserver
+ * Patches a single Realm. + *+ */ + public void updateRealm( + com.google.cloud.gaming.v1alpha.UpdateRealmRequest request, + io.grpc.stub.StreamObserver
+ * Realm provides grouping of game server clusters that are serving particular + * gamer population. + *+ */ + public static final class RealmsServiceBlockingStub + extends io.grpc.stub.AbstractStub
+ * Lists realms in a given project and location. + *+ */ + public com.google.cloud.gaming.v1alpha.ListRealmsResponse listRealms( + com.google.cloud.gaming.v1alpha.ListRealmsRequest request) { + return blockingUnaryCall( + getChannel(), getListRealmsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single realm. + *+ */ + public com.google.cloud.gaming.v1alpha.Realm getRealm( + com.google.cloud.gaming.v1alpha.GetRealmRequest request) { + return blockingUnaryCall(getChannel(), getGetRealmMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new Realm in a given project and location. + *+ */ + public com.google.longrunning.Operation createRealm( + com.google.cloud.gaming.v1alpha.CreateRealmRequest request) { + return blockingUnaryCall( + getChannel(), getCreateRealmMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single realm. + *+ */ + public com.google.longrunning.Operation deleteRealm( + com.google.cloud.gaming.v1alpha.DeleteRealmRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteRealmMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Patches a single Realm. + *+ */ + public com.google.longrunning.Operation updateRealm( + com.google.cloud.gaming.v1alpha.UpdateRealmRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateRealmMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * Realm provides grouping of game server clusters that are serving particular + * gamer population. + *+ */ + public static final class RealmsServiceFutureStub + extends io.grpc.stub.AbstractStub
+ * Lists realms in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.ListRealmsResponse> + listRealms(com.google.cloud.gaming.v1alpha.ListRealmsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListRealmsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single realm. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new Realm in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single realm. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Patches a single Realm. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * The cloud gaming scaling policy is used to configure scaling parameters for + * each fleet. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/gaming/v1alpha/scaling_policies.proto") +public final class ScalingPoliciesServiceGrpc { + + private ScalingPoliciesServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gaming.v1alpha.ScalingPoliciesService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListScalingPoliciesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse> + METHOD_LIST_SCALING_POLICIES = getListScalingPoliciesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse> + getListScalingPoliciesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse> + getListScalingPoliciesMethod() { + return getListScalingPoliciesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse> + getListScalingPoliciesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest, + com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse> + getListScalingPoliciesMethod; + if ((getListScalingPoliciesMethod = ScalingPoliciesServiceGrpc.getListScalingPoliciesMethod) + == null) { + synchronized (ScalingPoliciesServiceGrpc.class) { + if ((getListScalingPoliciesMethod = ScalingPoliciesServiceGrpc.getListScalingPoliciesMethod) + == null) { + ScalingPoliciesServiceGrpc.getListScalingPoliciesMethod = + getListScalingPoliciesMethod = + io.grpc.MethodDescriptor + .
+ * The cloud gaming scaling policy is used to configure scaling parameters for + * each fleet. + *+ */ + public abstract static class ScalingPoliciesServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Lists ScalingPolicies in a given project and location. + *+ */ + public void listScalingPolicies( + com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single scaling policy. + *+ */ + public void getScalingPolicy( + com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new scaling policy in a given project and location. + *+ */ + public void createScalingPolicy( + com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single scaling policy. + *+ */ + public void deleteScalingPolicy( + com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Patches a single scaling policy. + *+ */ + public void updateScalingPolicy( + com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * The cloud gaming scaling policy is used to configure scaling parameters for + * each fleet. + *+ */ + public static final class ScalingPoliciesServiceStub + extends io.grpc.stub.AbstractStub
+ * Lists ScalingPolicies in a given project and location. + *+ */ + public void listScalingPolicies( + com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single scaling policy. + *+ */ + public void getScalingPolicy( + com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new scaling policy in a given project and location. + *+ */ + public void createScalingPolicy( + com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single scaling policy. + *+ */ + public void deleteScalingPolicy( + com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Patches a single scaling policy. + *+ */ + public void updateScalingPolicy( + com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * The cloud gaming scaling policy is used to configure scaling parameters for + * each fleet. + *+ */ + public static final class ScalingPoliciesServiceBlockingStub + extends io.grpc.stub.AbstractStub
+ * Lists ScalingPolicies in a given project and location. + *+ */ + public com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse listScalingPolicies( + com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest request) { + return blockingUnaryCall( + getChannel(), getListScalingPoliciesMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single scaling policy. + *+ */ + public com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicy( + com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getGetScalingPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new scaling policy in a given project and location. + *+ */ + public com.google.longrunning.Operation createScalingPolicy( + com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getCreateScalingPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single scaling policy. + *+ */ + public com.google.longrunning.Operation deleteScalingPolicy( + com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteScalingPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Patches a single scaling policy. + *+ */ + public com.google.longrunning.Operation updateScalingPolicy( + com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateScalingPolicyMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * The cloud gaming scaling policy is used to configure scaling parameters for + * each fleet. + *+ */ + public static final class ScalingPoliciesServiceFutureStub + extends io.grpc.stub.AbstractStub
+ * Lists ScalingPolicies in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse> + listScalingPolicies(com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListScalingPoliciesMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single scaling policy. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.ScalingPolicy> + getScalingPolicy(com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetScalingPolicyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Creates a new scaling policy in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single scaling policy. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Patches a single scaling policy. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * An allocation policy resource. + *+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.AllocationPolicy} + */ +public final class AllocationPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.AllocationPolicy) + AllocationPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use AllocationPolicy.newBuilder() to construct. + private AllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AllocationPolicy() { + name_ = ""; + clusterSelectors_ = java.util.Collections.emptyList(); + schedules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AllocationPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry
+ * The resource name of the allocation policy, using the form:
+ * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+ * For example,
+ * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+ *
+ *
+ * string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the allocation policy, using the form:
+ * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+ * For example,
+ * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+ *
+ *
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CREATE_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return getCreateTime();
+ }
+
+ public static final int UPDATE_TIME_FIELD_NUMBER = 3;
+ private com.google.protobuf.Timestamp updateTime_;
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public boolean hasUpdateTime() {
+ return updateTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return getUpdateTime();
+ }
+
+ public static final int LABELS_FIELD_NUMBER = 4;
+
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public boolean hasPriority() {
+ return priority_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public com.google.protobuf.Int32Value getPriority() {
+ return priority_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : priority_;
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public com.google.protobuf.Int32ValueOrBuilder getPriorityOrBuilder() {
+ return getPriority();
+ }
+
+ public static final int WEIGHT_FIELD_NUMBER = 9;
+ private int weight_;
+ /**
+ *
+ *
+ * + * The relative weight of the policy based on its priority - If there are + * multiple policies with the same priority, the probability of using a policy + * is based on its weight. + *+ * + *
int32 weight = 9;
+ */
+ public int getWeight() {
+ return weight_;
+ }
+
+ public static final int CLUSTER_SELECTORS_FIELD_NUMBER = 10;
+ private java.util.List+ * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public java.util.List+ * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public java.util.List extends com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder>
+ getClusterSelectorsOrBuilderList() {
+ return clusterSelectors_;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public int getClusterSelectorsCount() {
+ return clusterSelectors_.size();
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelectors(int index) {
+ return clusterSelectors_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorsOrBuilder(
+ int index) {
+ return clusterSelectors_.get(index);
+ }
+
+ public static final int SCHEDULES_FIELD_NUMBER = 11;
+ private java.util.List+ * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public java.util.List+ * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public java.util.List extends com.google.cloud.gaming.v1alpha.ScheduleOrBuilder>
+ getSchedulesOrBuilderList() {
+ return schedules_;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public int getSchedulesCount() {
+ return schedules_.size();
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index) {
+ return schedules_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index) {
+ return schedules_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (createTime_ != null) {
+ output.writeMessage(2, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ output.writeMessage(3, getUpdateTime());
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
+ if (priority_ != null) {
+ output.writeMessage(8, getPriority());
+ }
+ if (weight_ != 0) {
+ output.writeInt32(9, weight_);
+ }
+ for (int i = 0; i < clusterSelectors_.size(); i++) {
+ output.writeMessage(10, clusterSelectors_.get(i));
+ }
+ for (int i = 0; i < schedules_.size(); i++) {
+ output.writeMessage(11, schedules_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (createTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
+ }
+ for (java.util.Map.Entry+ * An allocation policy resource. + *+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.AllocationPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The resource name of the allocation policy, using the form:
+ * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+ * For example,
+ * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+ *
+ *
+ * string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the allocation policy, using the form:
+ * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+ * For example,
+ * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+ *
+ *
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the allocation policy, using the form:
+ * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+ * For example,
+ * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+ *
+ *
+ * string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the allocation policy, using the form:
+ * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+ * For example,
+ * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+ *
+ *
+ * string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the allocation policy, using the form:
+ * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+ * For example,
+ * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+ *
+ *
+ * string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp createTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ createTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (createTime_ != null) {
+ createTime_ =
+ com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
+ } else {
+ createTime_ = value;
+ }
+ onChanged();
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public boolean hasUpdateTime() {
+ return updateTimeBuilder_ != null || updateTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ } else {
+ return updateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateTime_ = value;
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (updateTime_ != null) {
+ updateTime_ =
+ com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
+ } else {
+ updateTime_ = value;
+ }
+ onChanged();
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public Builder clearUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = null;
+ onChanged();
+ } else {
+ updateTime_ = null;
+ updateTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ private com.google.protobuf.MapField+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ public Builder putAllLabels(java.util.Map+ * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public boolean hasPriority() {
+ return priorityBuilder_ != null || priority_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public com.google.protobuf.Int32Value getPriority() {
+ if (priorityBuilder_ == null) {
+ return priority_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : priority_;
+ } else {
+ return priorityBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public Builder setPriority(com.google.protobuf.Int32Value value) {
+ if (priorityBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ priority_ = value;
+ onChanged();
+ } else {
+ priorityBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public Builder setPriority(com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (priorityBuilder_ == null) {
+ priority_ = builderForValue.build();
+ onChanged();
+ } else {
+ priorityBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public Builder mergePriority(com.google.protobuf.Int32Value value) {
+ if (priorityBuilder_ == null) {
+ if (priority_ != null) {
+ priority_ =
+ com.google.protobuf.Int32Value.newBuilder(priority_).mergeFrom(value).buildPartial();
+ } else {
+ priority_ = value;
+ }
+ onChanged();
+ } else {
+ priorityBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public Builder clearPriority() {
+ if (priorityBuilder_ == null) {
+ priority_ = null;
+ onChanged();
+ } else {
+ priority_ = null;
+ priorityBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public com.google.protobuf.Int32Value.Builder getPriorityBuilder() {
+
+ onChanged();
+ return getPriorityFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ public com.google.protobuf.Int32ValueOrBuilder getPriorityOrBuilder() {
+ if (priorityBuilder_ != null) {
+ return priorityBuilder_.getMessageOrBuilder();
+ } else {
+ return priority_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : priority_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Int32Value,
+ com.google.protobuf.Int32Value.Builder,
+ com.google.protobuf.Int32ValueOrBuilder>
+ getPriorityFieldBuilder() {
+ if (priorityBuilder_ == null) {
+ priorityBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Int32Value,
+ com.google.protobuf.Int32Value.Builder,
+ com.google.protobuf.Int32ValueOrBuilder>(
+ getPriority(), getParentForChildren(), isClean());
+ priority_ = null;
+ }
+ return priorityBuilder_;
+ }
+
+ private int weight_;
+ /**
+ *
+ *
+ * + * The relative weight of the policy based on its priority - If there are + * multiple policies with the same priority, the probability of using a policy + * is based on its weight. + *+ * + *
int32 weight = 9;
+ */
+ public int getWeight() {
+ return weight_;
+ }
+ /**
+ *
+ *
+ * + * The relative weight of the policy based on its priority - If there are + * multiple policies with the same priority, the probability of using a policy + * is based on its weight. + *+ * + *
int32 weight = 9;
+ */
+ public Builder setWeight(int value) {
+
+ weight_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The relative weight of the policy based on its priority - If there are + * multiple policies with the same priority, the probability of using a policy + * is based on its weight. + *+ * + *
int32 weight = 9;
+ */
+ public Builder clearWeight() {
+
+ weight_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public java.util.List+ * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public int getClusterSelectorsCount() {
+ if (clusterSelectorsBuilder_ == null) {
+ return clusterSelectors_.size();
+ } else {
+ return clusterSelectorsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelectors(int index) {
+ if (clusterSelectorsBuilder_ == null) {
+ return clusterSelectors_.get(index);
+ } else {
+ return clusterSelectorsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public Builder setClusterSelectors(
+ int index, com.google.cloud.gaming.v1alpha.LabelSelector value) {
+ if (clusterSelectorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureClusterSelectorsIsMutable();
+ clusterSelectors_.set(index, value);
+ onChanged();
+ } else {
+ clusterSelectorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public Builder setClusterSelectors(
+ int index, com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) {
+ if (clusterSelectorsBuilder_ == null) {
+ ensureClusterSelectorsIsMutable();
+ clusterSelectors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ clusterSelectorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public Builder addClusterSelectors(com.google.cloud.gaming.v1alpha.LabelSelector value) {
+ if (clusterSelectorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureClusterSelectorsIsMutable();
+ clusterSelectors_.add(value);
+ onChanged();
+ } else {
+ clusterSelectorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public Builder addClusterSelectors(
+ int index, com.google.cloud.gaming.v1alpha.LabelSelector value) {
+ if (clusterSelectorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureClusterSelectorsIsMutable();
+ clusterSelectors_.add(index, value);
+ onChanged();
+ } else {
+ clusterSelectorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public Builder addClusterSelectors(
+ com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) {
+ if (clusterSelectorsBuilder_ == null) {
+ ensureClusterSelectorsIsMutable();
+ clusterSelectors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ clusterSelectorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public Builder addClusterSelectors(
+ int index, com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) {
+ if (clusterSelectorsBuilder_ == null) {
+ ensureClusterSelectorsIsMutable();
+ clusterSelectors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ clusterSelectorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public Builder addAllClusterSelectors(
+ java.lang.Iterable extends com.google.cloud.gaming.v1alpha.LabelSelector> values) {
+ if (clusterSelectorsBuilder_ == null) {
+ ensureClusterSelectorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterSelectors_);
+ onChanged();
+ } else {
+ clusterSelectorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public Builder clearClusterSelectors() {
+ if (clusterSelectorsBuilder_ == null) {
+ clusterSelectors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ clusterSelectorsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public Builder removeClusterSelectors(int index) {
+ if (clusterSelectorsBuilder_ == null) {
+ ensureClusterSelectorsIsMutable();
+ clusterSelectors_.remove(index);
+ onChanged();
+ } else {
+ clusterSelectorsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelector.Builder getClusterSelectorsBuilder(
+ int index) {
+ return getClusterSelectorsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorsOrBuilder(
+ int index) {
+ if (clusterSelectorsBuilder_ == null) {
+ return clusterSelectors_.get(index);
+ } else {
+ return clusterSelectorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public java.util.List extends com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder>
+ getClusterSelectorsOrBuilderList() {
+ if (clusterSelectorsBuilder_ != null) {
+ return clusterSelectorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(clusterSelectors_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addClusterSelectorsBuilder() {
+ return getClusterSelectorsFieldBuilder()
+ .addBuilder(com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addClusterSelectorsBuilder(
+ int index) {
+ return getClusterSelectorsFieldBuilder()
+ .addBuilder(index, com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ public java.util.List+ * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public java.util.List+ * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public int getSchedulesCount() {
+ if (schedulesBuilder_ == null) {
+ return schedules_.size();
+ } else {
+ return schedulesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index) {
+ if (schedulesBuilder_ == null) {
+ return schedules_.get(index);
+ } else {
+ return schedulesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public Builder setSchedules(int index, com.google.cloud.gaming.v1alpha.Schedule value) {
+ if (schedulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSchedulesIsMutable();
+ schedules_.set(index, value);
+ onChanged();
+ } else {
+ schedulesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public Builder setSchedules(
+ int index, com.google.cloud.gaming.v1alpha.Schedule.Builder builderForValue) {
+ if (schedulesBuilder_ == null) {
+ ensureSchedulesIsMutable();
+ schedules_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ schedulesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public Builder addSchedules(com.google.cloud.gaming.v1alpha.Schedule value) {
+ if (schedulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSchedulesIsMutable();
+ schedules_.add(value);
+ onChanged();
+ } else {
+ schedulesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public Builder addSchedules(int index, com.google.cloud.gaming.v1alpha.Schedule value) {
+ if (schedulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSchedulesIsMutable();
+ schedules_.add(index, value);
+ onChanged();
+ } else {
+ schedulesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public Builder addSchedules(com.google.cloud.gaming.v1alpha.Schedule.Builder builderForValue) {
+ if (schedulesBuilder_ == null) {
+ ensureSchedulesIsMutable();
+ schedules_.add(builderForValue.build());
+ onChanged();
+ } else {
+ schedulesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public Builder addSchedules(
+ int index, com.google.cloud.gaming.v1alpha.Schedule.Builder builderForValue) {
+ if (schedulesBuilder_ == null) {
+ ensureSchedulesIsMutable();
+ schedules_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ schedulesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public Builder addAllSchedules(
+ java.lang.Iterable extends com.google.cloud.gaming.v1alpha.Schedule> values) {
+ if (schedulesBuilder_ == null) {
+ ensureSchedulesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schedules_);
+ onChanged();
+ } else {
+ schedulesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public Builder clearSchedules() {
+ if (schedulesBuilder_ == null) {
+ schedules_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ } else {
+ schedulesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public Builder removeSchedules(int index) {
+ if (schedulesBuilder_ == null) {
+ ensureSchedulesIsMutable();
+ schedules_.remove(index);
+ onChanged();
+ } else {
+ schedulesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public com.google.cloud.gaming.v1alpha.Schedule.Builder getSchedulesBuilder(int index) {
+ return getSchedulesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index) {
+ if (schedulesBuilder_ == null) {
+ return schedules_.get(index);
+ } else {
+ return schedulesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public java.util.List extends com.google.cloud.gaming.v1alpha.ScheduleOrBuilder>
+ getSchedulesOrBuilderList() {
+ if (schedulesBuilder_ != null) {
+ return schedulesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(schedules_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder() {
+ return getSchedulesFieldBuilder()
+ .addBuilder(com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder(int index) {
+ return getSchedulesFieldBuilder()
+ .addBuilder(index, com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ public java.util.List
+ * The resource name of the allocation policy, using the form:
+ * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+ * For example,
+ * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+ *
+ *
+ * string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * The resource name of the allocation policy, using the form:
+ * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+ * For example,
+ * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+ *
+ *
+ * string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ * + * Output only. The creation time. + *+ * + *
.google.protobuf.Timestamp create_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ boolean hasUpdateTime();
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ *
+ *
+ * + * Output only. The last-modified time. + *+ * + *
.google.protobuf.Timestamp update_time = 3;
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ int getLabelsCount();
+ /**
+ *
+ *
+ * + * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ boolean containsLabels(java.lang.String key);
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ java.util.Map+ * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * The labels associated with the allocation policy. Each label is a key-value + * pair. + *+ * + *
map<string, string> labels = 4;
+ */
+ java.lang.String getLabelsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ boolean hasPriority();
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ com.google.protobuf.Int32Value getPriority();
+ /**
+ *
+ *
+ * + * Required. The priority of the policy for allocation. A smaller value + * indicates a higher priority. + *+ * + *
.google.protobuf.Int32Value priority = 8;
+ */
+ com.google.protobuf.Int32ValueOrBuilder getPriorityOrBuilder();
+
+ /**
+ *
+ *
+ * + * The relative weight of the policy based on its priority - If there are + * multiple policies with the same priority, the probability of using a policy + * is based on its weight. + *+ * + *
int32 weight = 9;
+ */
+ int getWeight();
+
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ java.util.List+ * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelectors(int index);
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ int getClusterSelectorsCount();
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ java.util.List extends com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder>
+ getClusterSelectorsOrBuilderList();
+ /**
+ *
+ *
+ * + * The cluster labels are used to identify the clusters that a policy is + * applied to. + *+ * + *
repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10;
+ */
+ com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ java.util.List+ * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index);
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ int getSchedulesCount();
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ java.util.List extends com.google.cloud.gaming.v1alpha.ScheduleOrBuilder>
+ getSchedulesOrBuilderList();
+ /**
+ *
+ *
+ * + * The event schedules - If specified, the policy is time based and when the + * schedule is effective overrides the default policy. + *+ * + *
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11;
+ */
+ com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index);
+}
diff --git a/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ClusterPercentageSelector.java b/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ClusterPercentageSelector.java
new file mode 100644
index 000000000000..89a648d60bc7
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ClusterPercentageSelector.java
@@ -0,0 +1,805 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/gaming/v1alpha/game_server_deployments.proto
+
+package com.google.cloud.gaming.v1alpha;
+
+/**
+ *
+ *
+ * + * The percentage of game servers running this game server template in the + * selected clusters. + *+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.ClusterPercentageSelector} + */ +public final class ClusterPercentageSelector extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ClusterPercentageSelector) + ClusterPercentageSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterPercentageSelector.newBuilder() to construct. + private ClusterPercentageSelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ClusterPercentageSelector() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClusterPercentageSelector( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gaming.v1alpha.LabelSelector.Builder subBuilder = null; + if (clusterSelector_ != null) { + subBuilder = clusterSelector_.toBuilder(); + } + clusterSelector_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.LabelSelector.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clusterSelector_); + clusterSelector_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + percent_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_ClusterPercentageSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_ClusterPercentageSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.class, + com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder.class); + } + + public static final int CLUSTER_SELECTOR_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.LabelSelector clusterSelector_; + /** + * + * + *
+ * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public boolean hasClusterSelector() {
+ return clusterSelector_ != null;
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelector() {
+ return clusterSelector_ == null
+ ? com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()
+ : clusterSelector_;
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorOrBuilder() {
+ return getClusterSelector();
+ }
+
+ public static final int PERCENT_FIELD_NUMBER = 2;
+ private int percent_;
+ /**
+ *
+ *
+ * + * The percentage of game servers running this game server depolyment. The + * percentage is applied to game server clusters which contain all of the + * labels in the cluster selector field. + *+ * + *
int32 percent = 2;
+ */
+ public int getPercent() {
+ return percent_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (clusterSelector_ != null) {
+ output.writeMessage(1, getClusterSelector());
+ }
+ if (percent_ != 0) {
+ output.writeInt32(2, percent_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (clusterSelector_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getClusterSelector());
+ }
+ if (percent_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, percent_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.gaming.v1alpha.ClusterPercentageSelector)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.gaming.v1alpha.ClusterPercentageSelector other =
+ (com.google.cloud.gaming.v1alpha.ClusterPercentageSelector) obj;
+
+ if (hasClusterSelector() != other.hasClusterSelector()) return false;
+ if (hasClusterSelector()) {
+ if (!getClusterSelector().equals(other.getClusterSelector())) return false;
+ }
+ if (getPercent() != other.getPercent()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasClusterSelector()) {
+ hash = (37 * hash) + CLUSTER_SELECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getClusterSelector().hashCode();
+ }
+ hash = (37 * hash) + PERCENT_FIELD_NUMBER;
+ hash = (53 * hash) + getPercent();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.gaming.v1alpha.ClusterPercentageSelector prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The percentage of game servers running this game server template in the + * selected clusters. + *+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.ClusterPercentageSelector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public boolean hasClusterSelector() {
+ return clusterSelectorBuilder_ != null || clusterSelector_ != null;
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelector() {
+ if (clusterSelectorBuilder_ == null) {
+ return clusterSelector_ == null
+ ? com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()
+ : clusterSelector_;
+ } else {
+ return clusterSelectorBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public Builder setClusterSelector(com.google.cloud.gaming.v1alpha.LabelSelector value) {
+ if (clusterSelectorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ clusterSelector_ = value;
+ onChanged();
+ } else {
+ clusterSelectorBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public Builder setClusterSelector(
+ com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) {
+ if (clusterSelectorBuilder_ == null) {
+ clusterSelector_ = builderForValue.build();
+ onChanged();
+ } else {
+ clusterSelectorBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public Builder mergeClusterSelector(com.google.cloud.gaming.v1alpha.LabelSelector value) {
+ if (clusterSelectorBuilder_ == null) {
+ if (clusterSelector_ != null) {
+ clusterSelector_ =
+ com.google.cloud.gaming.v1alpha.LabelSelector.newBuilder(clusterSelector_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ clusterSelector_ = value;
+ }
+ onChanged();
+ } else {
+ clusterSelectorBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public Builder clearClusterSelector() {
+ if (clusterSelectorBuilder_ == null) {
+ clusterSelector_ = null;
+ onChanged();
+ } else {
+ clusterSelector_ = null;
+ clusterSelectorBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelector.Builder getClusterSelectorBuilder() {
+
+ onChanged();
+ return getClusterSelectorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorOrBuilder() {
+ if (clusterSelectorBuilder_ != null) {
+ return clusterSelectorBuilder_.getMessageOrBuilder();
+ } else {
+ return clusterSelector_ == null
+ ? com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()
+ : clusterSelector_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gaming.v1alpha.LabelSelector,
+ com.google.cloud.gaming.v1alpha.LabelSelector.Builder,
+ com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder>
+ getClusterSelectorFieldBuilder() {
+ if (clusterSelectorBuilder_ == null) {
+ clusterSelectorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gaming.v1alpha.LabelSelector,
+ com.google.cloud.gaming.v1alpha.LabelSelector.Builder,
+ com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder>(
+ getClusterSelector(), getParentForChildren(), isClean());
+ clusterSelector_ = null;
+ }
+ return clusterSelectorBuilder_;
+ }
+
+ private int percent_;
+ /**
+ *
+ *
+ * + * The percentage of game servers running this game server depolyment. The + * percentage is applied to game server clusters which contain all of the + * labels in the cluster selector field. + *+ * + *
int32 percent = 2;
+ */
+ public int getPercent() {
+ return percent_;
+ }
+ /**
+ *
+ *
+ * + * The percentage of game servers running this game server depolyment. The + * percentage is applied to game server clusters which contain all of the + * labels in the cluster selector field. + *+ * + *
int32 percent = 2;
+ */
+ public Builder setPercent(int value) {
+
+ percent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The percentage of game servers running this game server depolyment. The + * percentage is applied to game server clusters which contain all of the + * labels in the cluster selector field. + *+ * + *
int32 percent = 2;
+ */
+ public Builder clearPercent() {
+
+ percent_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ClusterPercentageSelector)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ClusterPercentageSelector)
+ private static final com.google.cloud.gaming.v1alpha.ClusterPercentageSelector DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ClusterPercentageSelector();
+ }
+
+ public static com.google.cloud.gaming.v1alpha.ClusterPercentageSelector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ boolean hasClusterSelector();
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelector();
+ /**
+ *
+ *
+ * + * Labels used to identify the clusters to which this game server template + * applies. + *+ * + *
.google.cloud.gaming.v1alpha.LabelSelector cluster_selector = 1;
+ */
+ com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorOrBuilder();
+
+ /**
+ *
+ *
+ * + * The percentage of game servers running this game server depolyment. The + * percentage is applied to game server clusters which contain all of the + * labels in the cluster selector field. + *+ * + *
int32 percent = 2;
+ */
+ int getPercent();
+}
diff --git a/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CommitRolloutRequest.java b/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CommitRolloutRequest.java
new file mode 100644
index 000000000000..97a212442852
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CommitRolloutRequest.java
@@ -0,0 +1,612 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/gaming/v1alpha/game_server_deployments.proto
+
+package com.google.cloud.gaming.v1alpha;
+
+/**
+ *
+ *
+ * + * Request message for GameServerDeploymentsService.CommitRollout. + *+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.CommitRolloutRequest} + */ +public final class CommitRolloutRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CommitRolloutRequest) + CommitRolloutRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommitRolloutRequest.newBuilder() to construct. + private CommitRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CommitRolloutRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CommitRolloutRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.CommitRolloutRequest.class, + com.google.cloud.gaming.v1alpha.CommitRolloutRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. The name of the game server deployment, using the
+ * form:
+ * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+ *
+ *
+ * string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the game server deployment, using the
+ * form:
+ * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+ *
+ *
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.gaming.v1alpha.CommitRolloutRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.gaming.v1alpha.CommitRolloutRequest other =
+ (com.google.cloud.gaming.v1alpha.CommitRolloutRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.gaming.v1alpha.CommitRolloutRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for GameServerDeploymentsService.CommitRollout. + *+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.CommitRolloutRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the game server deployment, using the
+ * form:
+ * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+ *
+ *
+ * string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the game server deployment, using the
+ * form:
+ * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+ *
+ *
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the game server deployment, using the
+ * form:
+ * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+ *
+ *
+ * string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the game server deployment, using the
+ * form:
+ * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+ *
+ *
+ * string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the game server deployment, using the
+ * form:
+ * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+ *
+ *
+ * string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.CommitRolloutRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CommitRolloutRequest)
+ private static final com.google.cloud.gaming.v1alpha.CommitRolloutRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CommitRolloutRequest();
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. The name of the game server deployment, using the
+ * form:
+ * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+ *
+ *
+ * string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The name of the game server deployment, using the
+ * form:
+ * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+ *
+ *
+ * string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java b/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java
new file mode 100644
index 000000000000..64a160004305
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java
@@ -0,0 +1,127 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/gaming/v1alpha/common.proto
+
+package com.google.cloud.gaming.v1alpha;
+
+public final class Common {
+ private Common() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_gaming_v1alpha_OperationMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_gaming_v1alpha_Schedule_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n(google/cloud/gaming/v1alpha/common.pro"
+ + "to\022\033google.cloud.gaming.v1alpha\032\034google/"
+ + "api/annotations.proto\032#google/longrunnin"
+ + "g/operations.proto\032\036google/protobuf/dura"
+ + "tion.proto\032\037google/protobuf/timestamp.pr"
+ + "oto\"\335\001\n\021OperationMetadata\022/\n\013create_time"
+ + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en"
+ + "d_time\030\002 \001(\0132\032.google.protobuf.Timestamp"
+ + "\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\026\n\016status"
+ + "_message\030\005 \001(\t\022\036\n\026requested_cancellation"
+ + "\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\206\001\n\rLabelSel"
+ + "ector\022F\n\006labels\030\001 \003(\01326.google.cloud.gam"
+ + "ing.v1alpha.LabelSelector.LabelsEntry\032-\n"
+ + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
+ + ":\0028\001\"\261\001\n\010Schedule\022.\n\nstart_time\030\001 \001(\0132\032."
+ + "google.protobuf.Timestamp\022,\n\010end_time\030\002 "
+ + "\001(\0132\032.google.protobuf.Timestamp\0224\n\021cron_"
+ + "job_duration\030\003 \001(\0132\031.google.protobuf.Dur"
+ + "ation\022\021\n\tcron_spec\030\004 \001(\tBf\n\037com.google.c"
+ + "loud.gaming.v1alphaP\001ZAgoogle.golang.org"
+ + "/genproto/googleapis/cloud/gaming/v1alph"
+ + "a;gamingb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.longrunning.OperationsProto.getDescriptor(),
+ com.google.protobuf.DurationProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_gaming_v1alpha_OperationMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor,
+ new java.lang.String[] {
+ "CreateTime",
+ "EndTime",
+ "Target",
+ "Verb",
+ "StatusMessage",
+ "RequestedCancellation",
+ "ApiVersion",
+ });
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor,
+ new java.lang.String[] {
+ "Labels",
+ });
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_descriptor =
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_gaming_v1alpha_LabelSelector_LabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_gaming_v1alpha_Schedule_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor,
+ new java.lang.String[] {
+ "StartTime", "EndTime", "CronJobDuration", "CronSpec",
+ });
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.longrunning.OperationsProto.getDescriptor();
+ com.google.protobuf.DurationProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequest.java b/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequest.java
new file mode 100644
index 000000000000..c3d820fe3530
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequest.java
@@ -0,0 +1,1039 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/gaming/v1alpha/allocation_policies.proto
+
+package com.google.cloud.gaming.v1alpha;
+
+/**
+ *
+ *
+ * + * Request message for AllocationPoliciesService.CreateAllocationPolicy. + *+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest} + */ +public final class CreateAllocationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) + CreateAllocationPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAllocationPolicyRequest.newBuilder() to construct. + private CreateAllocationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateAllocationPolicyRequest() { + parent_ = ""; + allocationPolicyId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateAllocationPolicyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + allocationPolicyId_ = s; + break; + } + case 26: + { + com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder subBuilder = null; + if (allocationPolicy_ != null) { + subBuilder = allocationPolicy_.toBuilder(); + } + allocationPolicy_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.AllocationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allocationPolicy_); + allocationPolicy_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.AllocationPolicies + .internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.AllocationPolicies + .internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest.class, + com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * Required. The parent resource name, using the form:
+ * `projects/{project_id}/locations/{location}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name, using the form:
+ * `projects/{project_id}/locations/{location}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ALLOCATION_POLICY_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object allocationPolicyId_;
+ /**
+ *
+ *
+ * + * Required. The ID of the allocation policy resource to be created. + *+ * + *
string allocation_policy_id = 2;
+ */
+ public java.lang.String getAllocationPolicyId() {
+ java.lang.Object ref = allocationPolicyId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ allocationPolicyId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the allocation policy resource to be created. + *+ * + *
string allocation_policy_id = 2;
+ */
+ public com.google.protobuf.ByteString getAllocationPolicyIdBytes() {
+ java.lang.Object ref = allocationPolicyId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ allocationPolicyId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ALLOCATION_POLICY_FIELD_NUMBER = 3;
+ private com.google.cloud.gaming.v1alpha.AllocationPolicy allocationPolicy_;
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public boolean hasAllocationPolicy() {
+ return allocationPolicy_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicy() {
+ return allocationPolicy_ == null
+ ? com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance()
+ : allocationPolicy_;
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() {
+ return getAllocationPolicy();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (!getAllocationPolicyIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allocationPolicyId_);
+ }
+ if (allocationPolicy_ != null) {
+ output.writeMessage(3, getAllocationPolicy());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (!getAllocationPolicyIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, allocationPolicyId_);
+ }
+ if (allocationPolicy_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAllocationPolicy());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest other =
+ (com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getAllocationPolicyId().equals(other.getAllocationPolicyId())) return false;
+ if (hasAllocationPolicy() != other.hasAllocationPolicy()) return false;
+ if (hasAllocationPolicy()) {
+ if (!getAllocationPolicy().equals(other.getAllocationPolicy())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + ALLOCATION_POLICY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getAllocationPolicyId().hashCode();
+ if (hasAllocationPolicy()) {
+ hash = (37 * hash) + ALLOCATION_POLICY_FIELD_NUMBER;
+ hash = (53 * hash) + getAllocationPolicy().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for AllocationPoliciesService.CreateAllocationPolicy. + *+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The parent resource name, using the form:
+ * `projects/{project_id}/locations/{location}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name, using the form:
+ * `projects/{project_id}/locations/{location}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name, using the form:
+ * `projects/{project_id}/locations/{location}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name, using the form:
+ * `projects/{project_id}/locations/{location}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name, using the form:
+ * `projects/{project_id}/locations/{location}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object allocationPolicyId_ = "";
+ /**
+ *
+ *
+ * + * Required. The ID of the allocation policy resource to be created. + *+ * + *
string allocation_policy_id = 2;
+ */
+ public java.lang.String getAllocationPolicyId() {
+ java.lang.Object ref = allocationPolicyId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ allocationPolicyId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the allocation policy resource to be created. + *+ * + *
string allocation_policy_id = 2;
+ */
+ public com.google.protobuf.ByteString getAllocationPolicyIdBytes() {
+ java.lang.Object ref = allocationPolicyId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ allocationPolicyId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the allocation policy resource to be created. + *+ * + *
string allocation_policy_id = 2;
+ */
+ public Builder setAllocationPolicyId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ allocationPolicyId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the allocation policy resource to be created. + *+ * + *
string allocation_policy_id = 2;
+ */
+ public Builder clearAllocationPolicyId() {
+
+ allocationPolicyId_ = getDefaultInstance().getAllocationPolicyId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the allocation policy resource to be created. + *+ * + *
string allocation_policy_id = 2;
+ */
+ public Builder setAllocationPolicyIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ allocationPolicyId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.gaming.v1alpha.AllocationPolicy allocationPolicy_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gaming.v1alpha.AllocationPolicy,
+ com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder,
+ com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder>
+ allocationPolicyBuilder_;
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public boolean hasAllocationPolicy() {
+ return allocationPolicyBuilder_ != null || allocationPolicy_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicy() {
+ if (allocationPolicyBuilder_ == null) {
+ return allocationPolicy_ == null
+ ? com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance()
+ : allocationPolicy_;
+ } else {
+ return allocationPolicyBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public Builder setAllocationPolicy(com.google.cloud.gaming.v1alpha.AllocationPolicy value) {
+ if (allocationPolicyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ allocationPolicy_ = value;
+ onChanged();
+ } else {
+ allocationPolicyBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public Builder setAllocationPolicy(
+ com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder builderForValue) {
+ if (allocationPolicyBuilder_ == null) {
+ allocationPolicy_ = builderForValue.build();
+ onChanged();
+ } else {
+ allocationPolicyBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public Builder mergeAllocationPolicy(com.google.cloud.gaming.v1alpha.AllocationPolicy value) {
+ if (allocationPolicyBuilder_ == null) {
+ if (allocationPolicy_ != null) {
+ allocationPolicy_ =
+ com.google.cloud.gaming.v1alpha.AllocationPolicy.newBuilder(allocationPolicy_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ allocationPolicy_ = value;
+ }
+ onChanged();
+ } else {
+ allocationPolicyBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public Builder clearAllocationPolicy() {
+ if (allocationPolicyBuilder_ == null) {
+ allocationPolicy_ = null;
+ onChanged();
+ } else {
+ allocationPolicy_ = null;
+ allocationPolicyBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder getAllocationPolicyBuilder() {
+
+ onChanged();
+ return getAllocationPolicyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ public com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder
+ getAllocationPolicyOrBuilder() {
+ if (allocationPolicyBuilder_ != null) {
+ return allocationPolicyBuilder_.getMessageOrBuilder();
+ } else {
+ return allocationPolicy_ == null
+ ? com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance()
+ : allocationPolicy_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The allocation policy resource to be created. + *+ * + *
.google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gaming.v1alpha.AllocationPolicy,
+ com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder,
+ com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder>
+ getAllocationPolicyFieldBuilder() {
+ if (allocationPolicyBuilder_ == null) {
+ allocationPolicyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gaming.v1alpha.AllocationPolicy,
+ com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder,
+ com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder>(
+ getAllocationPolicy(), getParentForChildren(), isClean());
+ allocationPolicy_ = null;
+ }
+ return allocationPolicyBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest)
+ private static final com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest();
+ }
+
+ public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser