diff --git a/.kokoro/build.sh b/.kokoro/build.sh index dc2936ef..f1ae5840 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -44,13 +44,26 @@ test) bash .kokoro/coerce_logs.sh ;; lint) - mvn com.coveo:fmt-maven-plugin:check + mvn \ + -Penable-samples \ + com.coveo:fmt-maven-plugin:check ;; javadoc) mvn javadoc:javadoc javadoc:test-javadoc ;; integration) mvn -B ${INTEGRATION_TEST_ARGS} \ + -Penable-integration-tests \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify + bash .kokoro/coerce_logs.sh + ;; +samples) + mvn -B \ + -Penable-samples \ -DtrimStackTrace=false \ -Dclirr.skip=true \ -Denforcer.skip=true \ diff --git a/.kokoro/continuous/samples.cfg b/.kokoro/continuous/samples.cfg new file mode 100644 index 00000000..fa7b493d --- /dev/null +++ b/.kokoro/continuous/samples.cfg @@ -0,0 +1,31 @@ +# 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: "JOB_TYPE" + value: "samples" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg new file mode 100644 index 00000000..9a910249 --- /dev/null +++ b/.kokoro/nightly/samples.cfg @@ -0,0 +1,31 @@ +# 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: "JOB_TYPE" + value: "samples" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/.kokoro/presubmit/samples.cfg b/.kokoro/presubmit/samples.cfg new file mode 100644 index 00000000..fa7b493d --- /dev/null +++ b/.kokoro/presubmit/samples.cfg @@ -0,0 +1,31 @@ +# 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: "JOB_TYPE" + value: "samples" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ebbb59e5..085021dd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,4 +25,106 @@ information on using pull requests. ## Community Guidelines This project follows -[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). \ No newline at end of file +[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). + +## Building the project + +To build, package, and run all unit tests run the command + +``` +mvn clean verify +``` + +### Running Integration tests + +To include integration tests when building the project, you need access to +a GCP Project with a valid service account. + +For instructions on how to generate a service account and corresponding +credentials JSON see: [Creating a Service Account][1]. + +Then run the following to build, package, run all unit tests and run all +integration tests. + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn -Penable-integration-tests clean verify +``` + +## Code Samples + +Code Samples must be bundled in separate Maven modules, and guarded by a +Maven profile with the name `enable-samples`. + +The samples must be separate from the primary project for a few reasons: +1. Primary projects have a minimum Java version of Java 7 whereas samples have + a minimum Java version of Java 8. Due to this we need the ability to + selectively exclude samples from a build run. +2. Many code samples depend on external GCP services and need + credentials to access the service. +3. Code samples are not released as Maven artifacts and must be excluded from + release builds. + +### Building + +```bash +mvn -Penable-samples clean verify +``` + +Some samples require access to GCP services and require a service account: + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn -Penable-samples clean verify +``` + +### Profile Config + +1. To add samples in a profile to your Maven project, add the following to your +`pom.xml` + + ```xml + + [...] + + + enable-samples + + sample + + + + [...] + + ``` + +2. [Activate](#profile-activation) the profile. +3. Define your samples in a normal Maven project in the `samples/` directory + +### Profile Activation + +To include code samples when building and testing the project, enable the +`enable-samples` Maven profile. + +#### Command line + +To activate the Maven profile on the command line add `-Penable-samples` to your +Maven command. + +#### Maven `settings.xml` + +To activate the Maven profile in your `~/.m2/settings.xml` add an entry of +`enable-samples` following the instructions in [Active Profiles][2]. + +This method has the benefit of applying to all projects you build (and is +respected by IntelliJ IDEA) and is recommended if you are going to be +contributing samples to several projects. + +#### IntelliJ IDEA + +To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in +[Activate Maven profiles][3] to activate `enable-samples`. + +[1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account +[2]: https://maven.apache.org/settings.html#Active_Profiles +[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles diff --git a/google-cloud-gameservices-bom/pom.xml b/google-cloud-gameservices-bom/pom.xml index 40022a8a..aaa3a4a9 100644 --- a/google-cloud-gameservices-bom/pom.xml +++ b/google-cloud-gameservices-bom/pom.xml @@ -11,7 +11,7 @@ 0.4.0 - Google Cloud gameservices BOM + Google Cloud Game Services BOM https://github.com/googleapis/java-gameservices BOM for Google Cloud Game Services diff --git a/google-cloud-gameservices/clirr-ignored-differences.xml b/google-cloud-gameservices/clirr-ignored-differences.xml new file mode 100644 index 00000000..637843a1 --- /dev/null +++ b/google-cloud-gameservices/clirr-ignored-differences.xml @@ -0,0 +1,44 @@ + + + + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerDeploymentsService* + * + + + 7002 + com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub* + * + + + 7002 + com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub* + * + + + 8001 + com/google/cloud/gaming/v1alpha/AllocationPoliciesService* + + + 8001 + com/google/cloud/gaming/v1alpha/ScalingPoliciesService* + + + 8001 + com/google/cloud/gaming/v1alpha/stub/AllocationPoliciesServiceStub* + + + 8001 + com/google/cloud/gaming/v1alpha/stub/GrpcAllocationPoliciesService* + + + 8001 + com/google/cloud/gaming/v1alpha/stub/GrpcScalingPoliciesService* + + + 8001 + com/google/cloud/gaming/v1alpha/stub/ScalingPoliciesServiceStub* + + diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceClient.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceClient.java deleted file mode 100644 index 1af9561b..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceClient.java +++ /dev/null @@ -1,900 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.pathtemplate.PathTemplate; -import com.google.cloud.gaming.v1alpha.stub.AllocationPoliciesServiceStub; -import com.google.cloud.gaming.v1alpha.stub.AllocationPoliciesServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND SERVICE -/** - * Service Description: The cloud gaming allocation policy is used as the controller's recipe for - * the allocating game servers from clusters. The policy has three modes: 1. Default mode which is - * not limited to time. 2. Time based mode which is temporary and overrides the default mode when - * effective. 3. Periodic mode which follows the time base mode, but happens periodically using - * local time, identified by cron specs. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

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

Note: close() needs to be called on the allocationPoliciesServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of - * AllocationPoliciesServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

- * 
- * AllocationPoliciesServiceSettings allocationPoliciesServiceSettings =
- *     AllocationPoliciesServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * AllocationPoliciesServiceClient allocationPoliciesServiceClient =
- *     AllocationPoliciesServiceClient.create(allocationPoliciesServiceSettings);
- * 
- * 
- * - * To customize the endpoint: - * - *
- * 
- * AllocationPoliciesServiceSettings allocationPoliciesServiceSettings =
- *     AllocationPoliciesServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * AllocationPoliciesServiceClient allocationPoliciesServiceClient =
- *     AllocationPoliciesServiceClient.create(allocationPoliciesServiceSettings);
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class AllocationPoliciesServiceClient implements BackgroundResource { - private final AllocationPoliciesServiceSettings settings; - private final AllocationPoliciesServiceStub stub; - private final OperationsClient operationsClient; - - private static final PathTemplate ALLOCATION_POLICY_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/allocationPolicies/{allocation_policy}"); - - private static final PathTemplate LOCATION_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - - /** - * Formats a string containing the fully-qualified path to represent a allocation_policy resource. - * - * @deprecated Use the {@link AllocationPolicyName} class instead. - */ - @Deprecated - public static final String formatAllocationPolicyName( - String project, String location, String allocationPolicy) { - return ALLOCATION_POLICY_PATH_TEMPLATE.instantiate( - "project", project, - "location", location, - "allocation_policy", allocationPolicy); - } - - /** - * Formats a string containing the fully-qualified path to represent a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String formatLocationName(String project, String location) { - return LOCATION_PATH_TEMPLATE.instantiate( - "project", project, - "location", location); - } - - /** - * Parses the project from the given fully-qualified path which represents a allocation_policy - * resource. - * - * @deprecated Use the {@link AllocationPolicyName} class instead. - */ - @Deprecated - public static final String parseProjectFromAllocationPolicyName(String allocationPolicyName) { - return ALLOCATION_POLICY_PATH_TEMPLATE.parse(allocationPolicyName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a allocation_policy - * resource. - * - * @deprecated Use the {@link AllocationPolicyName} class instead. - */ - @Deprecated - public static final String parseLocationFromAllocationPolicyName(String allocationPolicyName) { - return ALLOCATION_POLICY_PATH_TEMPLATE.parse(allocationPolicyName).get("location"); - } - - /** - * Parses the allocation_policy from the given fully-qualified path which represents a - * allocation_policy resource. - * - * @deprecated Use the {@link AllocationPolicyName} class instead. - */ - @Deprecated - public static final String parseAllocationPolicyFromAllocationPolicyName( - String allocationPolicyName) { - return ALLOCATION_POLICY_PATH_TEMPLATE.parse(allocationPolicyName).get("allocation_policy"); - } - - /** - * Parses the project from the given fully-qualified path which represents a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String parseProjectFromLocationName(String locationName) { - return LOCATION_PATH_TEMPLATE.parse(locationName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String parseLocationFromLocationName(String locationName) { - return LOCATION_PATH_TEMPLATE.parse(locationName).get("location"); - } - - /** Constructs an instance of AllocationPoliciesServiceClient with default settings. */ - public static final AllocationPoliciesServiceClient create() throws IOException { - return create(AllocationPoliciesServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of AllocationPoliciesServiceClient, using the given settings. The - * channels are created based on the settings passed in, or defaults for any settings that are not - * set. - */ - public static final AllocationPoliciesServiceClient create( - AllocationPoliciesServiceSettings settings) throws IOException { - return new AllocationPoliciesServiceClient(settings); - } - - /** - * Constructs an instance of AllocationPoliciesServiceClient, using the given stub for making - * calls. This is for advanced usage - prefer to use AllocationPoliciesServiceSettings}. - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final AllocationPoliciesServiceClient create(AllocationPoliciesServiceStub stub) { - return new AllocationPoliciesServiceClient(stub); - } - - /** - * Constructs an instance of AllocationPoliciesServiceClient, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected AllocationPoliciesServiceClient(AllocationPoliciesServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = ((AllocationPoliciesServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected AllocationPoliciesServiceClient(AllocationPoliciesServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final AllocationPoliciesServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public AllocationPoliciesServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * List allocation policies in a given project and location. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedParent = AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   for (AllocationPolicy element : allocationPoliciesServiceClient.listAllocationPolicies(formattedParent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * `projects/{project_id}/locations/{location}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAllocationPoliciesPagedResponse listAllocationPolicies(String parent) { - LOCATION_PATH_TEMPLATE.validate(parent, "listAllocationPolicies"); - ListAllocationPoliciesRequest request = - ListAllocationPoliciesRequest.newBuilder().setParent(parent).build(); - return listAllocationPolicies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * List allocation policies in a given project and location. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedParent = AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListAllocationPoliciesRequest request = ListAllocationPoliciesRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   for (AllocationPolicy element : allocationPoliciesServiceClient.listAllocationPolicies(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAllocationPoliciesPagedResponse listAllocationPolicies( - ListAllocationPoliciesRequest request) { - return listAllocationPoliciesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * List allocation policies in a given project and location. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedParent = AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListAllocationPoliciesRequest request = ListAllocationPoliciesRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   ApiFuture<ListAllocationPoliciesPagedResponse> future = allocationPoliciesServiceClient.listAllocationPoliciesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (AllocationPolicy element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listAllocationPoliciesPagedCallable() { - return stub.listAllocationPoliciesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * List allocation policies in a given project and location. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedParent = AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListAllocationPoliciesRequest request = ListAllocationPoliciesRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   while (true) {
-   *     ListAllocationPoliciesResponse response = allocationPoliciesServiceClient.listAllocationPoliciesCallable().call(request);
-   *     for (AllocationPolicy element : response.getAllocationPoliciesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listAllocationPoliciesCallable() { - return stub.listAllocationPoliciesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedName = AllocationPoliciesServiceClient.formatAllocationPolicyName("[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]");
-   *   AllocationPolicy response = allocationPoliciesServiceClient.getAllocationPolicy(formattedName);
-   * }
-   * 
- * - * @param name Required. The name of the allocation policy to retrieve, using the form: - *

`projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AllocationPolicy getAllocationPolicy(String name) { - ALLOCATION_POLICY_PATH_TEMPLATE.validate(name, "getAllocationPolicy"); - GetAllocationPolicyRequest request = - GetAllocationPolicyRequest.newBuilder().setName(name).build(); - return getAllocationPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedName = AllocationPoliciesServiceClient.formatAllocationPolicyName("[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]");
-   *   GetAllocationPolicyRequest request = GetAllocationPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   AllocationPolicy response = allocationPoliciesServiceClient.getAllocationPolicy(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AllocationPolicy getAllocationPolicy(GetAllocationPolicyRequest request) { - return getAllocationPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedName = AllocationPoliciesServiceClient.formatAllocationPolicyName("[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]");
-   *   GetAllocationPolicyRequest request = GetAllocationPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<AllocationPolicy> future = allocationPoliciesServiceClient.getAllocationPolicyCallable().futureCall(request);
-   *   // Do something
-   *   AllocationPolicy response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - getAllocationPolicyCallable() { - return stub.getAllocationPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new allocation policy in a given project and location. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedParent = AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String allocationPolicyId = "";
-   *   AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build();
-   *   AllocationPolicy response = allocationPoliciesServiceClient.createAllocationPolicyAsync(formattedParent, allocationPolicyId, allocationPolicy).get();
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * `projects/{project_id}/locations/{location}`. - * @param allocationPolicyId Required. The ID of the allocation policy resource to be created. - * @param allocationPolicy Required. The allocation policy resource to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createAllocationPolicyAsync( - String parent, String allocationPolicyId, AllocationPolicy allocationPolicy) { - LOCATION_PATH_TEMPLATE.validate(parent, "createAllocationPolicy"); - CreateAllocationPolicyRequest request = - CreateAllocationPolicyRequest.newBuilder() - .setParent(parent) - .setAllocationPolicyId(allocationPolicyId) - .setAllocationPolicy(allocationPolicy) - .build(); - return createAllocationPolicyAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new allocation policy in a given project and location. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedParent = AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String allocationPolicyId = "";
-   *   AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build();
-   *   CreateAllocationPolicyRequest request = CreateAllocationPolicyRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setAllocationPolicyId(allocationPolicyId)
-   *     .setAllocationPolicy(allocationPolicy)
-   *     .build();
-   *   AllocationPolicy response = allocationPoliciesServiceClient.createAllocationPolicyAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createAllocationPolicyAsync( - CreateAllocationPolicyRequest request) { - return createAllocationPolicyOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new allocation policy in a given project and location. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedParent = AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String allocationPolicyId = "";
-   *   AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build();
-   *   CreateAllocationPolicyRequest request = CreateAllocationPolicyRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setAllocationPolicyId(allocationPolicyId)
-   *     .setAllocationPolicy(allocationPolicy)
-   *     .build();
-   *   OperationFuture<AllocationPolicy, Empty> future = allocationPoliciesServiceClient.createAllocationPolicyOperationCallable().futureCall(request);
-   *   // Do something
-   *   AllocationPolicy response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - createAllocationPolicyOperationCallable() { - return stub.createAllocationPolicyOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new allocation policy in a given project and location. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedParent = AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String allocationPolicyId = "";
-   *   AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build();
-   *   CreateAllocationPolicyRequest request = CreateAllocationPolicyRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setAllocationPolicyId(allocationPolicyId)
-   *     .setAllocationPolicy(allocationPolicy)
-   *     .build();
-   *   ApiFuture<Operation> future = allocationPoliciesServiceClient.createAllocationPolicyCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createAllocationPolicyCallable() { - return stub.createAllocationPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedName = AllocationPoliciesServiceClient.formatAllocationPolicyName("[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]");
-   *   allocationPoliciesServiceClient.deleteAllocationPolicyAsync(formattedName).get();
-   * }
-   * 
- * - * @param name Required. The name of the allocation policy to delete, using the form: - *

`projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAllocationPolicyAsync(String name) { - ALLOCATION_POLICY_PATH_TEMPLATE.validate(name, "deleteAllocationPolicy"); - DeleteAllocationPolicyRequest request = - DeleteAllocationPolicyRequest.newBuilder().setName(name).build(); - return deleteAllocationPolicyAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedName = AllocationPoliciesServiceClient.formatAllocationPolicyName("[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]");
-   *   DeleteAllocationPolicyRequest request = DeleteAllocationPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   allocationPoliciesServiceClient.deleteAllocationPolicyAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAllocationPolicyAsync( - DeleteAllocationPolicyRequest request) { - return deleteAllocationPolicyOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedName = AllocationPoliciesServiceClient.formatAllocationPolicyName("[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]");
-   *   DeleteAllocationPolicyRequest request = DeleteAllocationPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   OperationFuture<Empty, Empty> future = allocationPoliciesServiceClient.deleteAllocationPolicyOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - deleteAllocationPolicyOperationCallable() { - return stub.deleteAllocationPolicyOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   String formattedName = AllocationPoliciesServiceClient.formatAllocationPolicyName("[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]");
-   *   DeleteAllocationPolicyRequest request = DeleteAllocationPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<Operation> future = allocationPoliciesServiceClient.deleteAllocationPolicyCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable - deleteAllocationPolicyCallable() { - return stub.deleteAllocationPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   AllocationPolicy response = allocationPoliciesServiceClient.updateAllocationPolicyAsync(allocationPolicy, updateMask).get();
-   * }
-   * 
- * - * @param allocationPolicy Required. The allocation policy to be updated. Only fields specified in - * update_mask are updated. - * @param updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. For the `FieldMask` definition, see - *

https: //developers.google.com/protocol-buffers // - * /docs/reference/google.protobuf#fieldmask - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateAllocationPolicyAsync( - AllocationPolicy allocationPolicy, FieldMask updateMask) { - - UpdateAllocationPolicyRequest request = - UpdateAllocationPolicyRequest.newBuilder() - .setAllocationPolicy(allocationPolicy) - .setUpdateMask(updateMask) - .build(); - return updateAllocationPolicyAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateAllocationPolicyRequest request = UpdateAllocationPolicyRequest.newBuilder()
-   *     .setAllocationPolicy(allocationPolicy)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   AllocationPolicy response = allocationPoliciesServiceClient.updateAllocationPolicyAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateAllocationPolicyAsync( - UpdateAllocationPolicyRequest request) { - return updateAllocationPolicyOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateAllocationPolicyRequest request = UpdateAllocationPolicyRequest.newBuilder()
-   *     .setAllocationPolicy(allocationPolicy)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<AllocationPolicy, Empty> future = allocationPoliciesServiceClient.updateAllocationPolicyOperationCallable().futureCall(request);
-   *   // Do something
-   *   AllocationPolicy response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - updateAllocationPolicyOperationCallable() { - return stub.updateAllocationPolicyOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single allocation policy. - * - *

Sample code: - * - *


-   * try (AllocationPoliciesServiceClient allocationPoliciesServiceClient = AllocationPoliciesServiceClient.create()) {
-   *   AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateAllocationPolicyRequest request = UpdateAllocationPolicyRequest.newBuilder()
-   *     .setAllocationPolicy(allocationPolicy)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = allocationPoliciesServiceClient.updateAllocationPolicyCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - updateAllocationPolicyCallable() { - return stub.updateAllocationPolicyCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListAllocationPoliciesPagedResponse - extends AbstractPagedListResponse< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - AllocationPolicy, - ListAllocationPoliciesPage, - ListAllocationPoliciesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAllocationPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListAllocationPoliciesPagedResponse apply(ListAllocationPoliciesPage input) { - return new ListAllocationPoliciesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListAllocationPoliciesPagedResponse(ListAllocationPoliciesPage page) { - super(page, ListAllocationPoliciesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAllocationPoliciesPage - extends AbstractPage< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - AllocationPolicy, - ListAllocationPoliciesPage> { - - private ListAllocationPoliciesPage( - PageContext - context, - ListAllocationPoliciesResponse response) { - super(context, response); - } - - private static ListAllocationPoliciesPage createEmptyPage() { - return new ListAllocationPoliciesPage(null, null); - } - - @Override - protected ListAllocationPoliciesPage createPage( - PageContext - context, - ListAllocationPoliciesResponse response) { - return new ListAllocationPoliciesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAllocationPoliciesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - AllocationPolicy, - ListAllocationPoliciesPage, - ListAllocationPoliciesFixedSizeCollection> { - - private ListAllocationPoliciesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAllocationPoliciesFixedSizeCollection createEmptyCollection() { - return new ListAllocationPoliciesFixedSizeCollection(null, 0); - } - - @Override - protected ListAllocationPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAllocationPoliciesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceSettings.java deleted file mode 100644 index d507f622..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceSettings.java +++ /dev/null @@ -1,295 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.AllocationPoliciesServiceClient.ListAllocationPoliciesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.gaming.v1alpha.stub.AllocationPoliciesServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link AllocationPoliciesServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getAllocationPolicy to 30 seconds: - * - *

- * 
- * AllocationPoliciesServiceSettings.Builder allocationPoliciesServiceSettingsBuilder =
- *     AllocationPoliciesServiceSettings.newBuilder();
- * allocationPoliciesServiceSettingsBuilder.getAllocationPolicySettings().getRetrySettings().toBuilder()
- *     .setTotalTimeout(Duration.ofSeconds(30));
- * AllocationPoliciesServiceSettings allocationPoliciesServiceSettings = allocationPoliciesServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class AllocationPoliciesServiceSettings - extends ClientSettings { - /** Returns the object with the settings used for calls to listAllocationPolicies. */ - public PagedCallSettings< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - ListAllocationPoliciesPagedResponse> - listAllocationPoliciesSettings() { - return ((AllocationPoliciesServiceStubSettings) getStubSettings()) - .listAllocationPoliciesSettings(); - } - - /** Returns the object with the settings used for calls to getAllocationPolicy. */ - public UnaryCallSettings - getAllocationPolicySettings() { - return ((AllocationPoliciesServiceStubSettings) getStubSettings()) - .getAllocationPolicySettings(); - } - - /** Returns the object with the settings used for calls to createAllocationPolicy. */ - public UnaryCallSettings - createAllocationPolicySettings() { - return ((AllocationPoliciesServiceStubSettings) getStubSettings()) - .createAllocationPolicySettings(); - } - - /** Returns the object with the settings used for calls to createAllocationPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - createAllocationPolicyOperationSettings() { - return ((AllocationPoliciesServiceStubSettings) getStubSettings()) - .createAllocationPolicyOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteAllocationPolicy. */ - public UnaryCallSettings - deleteAllocationPolicySettings() { - return ((AllocationPoliciesServiceStubSettings) getStubSettings()) - .deleteAllocationPolicySettings(); - } - - /** Returns the object with the settings used for calls to deleteAllocationPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - deleteAllocationPolicyOperationSettings() { - return ((AllocationPoliciesServiceStubSettings) getStubSettings()) - .deleteAllocationPolicyOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateAllocationPolicy. */ - public UnaryCallSettings - updateAllocationPolicySettings() { - return ((AllocationPoliciesServiceStubSettings) getStubSettings()) - .updateAllocationPolicySettings(); - } - - /** Returns the object with the settings used for calls to updateAllocationPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - updateAllocationPolicyOperationSettings() { - return ((AllocationPoliciesServiceStubSettings) getStubSettings()) - .updateAllocationPolicyOperationSettings(); - } - - public static final AllocationPoliciesServiceSettings create( - AllocationPoliciesServiceStubSettings stub) throws IOException { - return new AllocationPoliciesServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return AllocationPoliciesServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return AllocationPoliciesServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return AllocationPoliciesServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return AllocationPoliciesServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return AllocationPoliciesServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return AllocationPoliciesServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AllocationPoliciesServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected AllocationPoliciesServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for AllocationPoliciesServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - protected Builder() throws IOException { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(AllocationPoliciesServiceStubSettings.newBuilder(clientContext)); - } - - private static Builder createDefault() { - return new Builder(AllocationPoliciesServiceStubSettings.newBuilder()); - } - - protected Builder(AllocationPoliciesServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(AllocationPoliciesServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - public AllocationPoliciesServiceStubSettings.Builder getStubSettingsBuilder() { - return ((AllocationPoliciesServiceStubSettings.Builder) getStubSettings()); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listAllocationPolicies. */ - public PagedCallSettings.Builder< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - ListAllocationPoliciesPagedResponse> - listAllocationPoliciesSettings() { - return getStubSettingsBuilder().listAllocationPoliciesSettings(); - } - - /** Returns the builder for the settings used for calls to getAllocationPolicy. */ - public UnaryCallSettings.Builder - getAllocationPolicySettings() { - return getStubSettingsBuilder().getAllocationPolicySettings(); - } - - /** Returns the builder for the settings used for calls to createAllocationPolicy. */ - public UnaryCallSettings.Builder - createAllocationPolicySettings() { - return getStubSettingsBuilder().createAllocationPolicySettings(); - } - - /** Returns the builder for the settings used for calls to createAllocationPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createAllocationPolicyOperationSettings() { - return getStubSettingsBuilder().createAllocationPolicyOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteAllocationPolicy. */ - public UnaryCallSettings.Builder - deleteAllocationPolicySettings() { - return getStubSettingsBuilder().deleteAllocationPolicySettings(); - } - - /** Returns the builder for the settings used for calls to deleteAllocationPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteAllocationPolicyOperationSettings() { - return getStubSettingsBuilder().deleteAllocationPolicyOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateAllocationPolicy. */ - public UnaryCallSettings.Builder - updateAllocationPolicySettings() { - return getStubSettingsBuilder().updateAllocationPolicySettings(); - } - - /** Returns the builder for the settings used for calls to updateAllocationPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateAllocationPolicyOperationSettings() { - return getStubSettingsBuilder().updateAllocationPolicyOperationSettings(); - } - - @Override - public AllocationPoliciesServiceSettings build() throws IOException { - return new AllocationPoliciesServiceSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClient.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClient.java index acc2b55d..3c95ecda 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClient.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,8 +42,8 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** - * Service Description: The game server cluster is used to capture the game server cluster's - * settings which are used to manage game server clusters. + * Service Description: The game server cluster maps to Kubernetes clusters running Agones and is + * used to manage fleets within clusters. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -307,7 +307,7 @@ public final OperationsClient getOperationsClient() { * * * @param parent Required. The parent resource name, using the form: - * "projects/{project_id}/locations/{location}/realms/{realm-id}". + * "projects/{project}/locations/{location}/realms/{realm-id}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGameServerClustersPagedResponse listGameServerClusters(String parent) { @@ -414,7 +414,7 @@ public final ListGameServerClustersPagedResponse listGameServerClusters( * * * @param name Required. The name of the game server cluster to retrieve, using the form: - *

`projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}` + *

`projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GameServerCluster getGameServerCluster(String name) { @@ -486,7 +486,7 @@ public final GameServerCluster getGameServerCluster(GetGameServerClusterRequest * * * @param parent Required. The parent resource name, using the form: - * `projects/{project_id}/locations/{location}/realms/{realm-id}`. + * `projects/{project}/locations/{location}/realms/{realm-id}`. * @param gameServerClusterId Required. The ID of the game server cluster resource to be created. * @param gameServerCluster Required. The game server cluster resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -604,7 +604,7 @@ public final OperationFuture createGameServerClusterAs * * * @param name Required. The name of the game server cluster to delete, using the form: - *

`projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}` + * `projects/{project}/locations/{location}/gameServerClusters/{cluster}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -715,7 +715,6 @@ public final OperationFuture deleteGameServerClusterAsync( "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture updateGameServerClusterAsync( GameServerCluster gameServerCluster, FieldMask updateMask) { - UpdateGameServerClusterRequest request = UpdateGameServerClusterRequest.newBuilder() .setGameServerCluster(gameServerCluster) @@ -803,6 +802,132 @@ public final OperationFuture updateGameServerClusterAs return stub.updateGameServerClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Previews creation of a new game server cluster in a given project and location. + * + *

Sample code: + * + *


+   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
+   *   PreviewCreateGameServerClusterRequest request = PreviewCreateGameServerClusterRequest.newBuilder().build();
+   *   PreviewCreateGameServerClusterResponse response = gameServerClustersServiceClient.previewCreateGameServerCluster(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PreviewCreateGameServerClusterResponse previewCreateGameServerCluster( + PreviewCreateGameServerClusterRequest request) { + return previewCreateGameServerClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Previews creation of a new game server cluster in a given project and location. + * + *

Sample code: + * + *


+   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
+   *   PreviewCreateGameServerClusterRequest request = PreviewCreateGameServerClusterRequest.newBuilder().build();
+   *   ApiFuture<PreviewCreateGameServerClusterResponse> future = gameServerClustersServiceClient.previewCreateGameServerClusterCallable().futureCall(request);
+   *   // Do something
+   *   PreviewCreateGameServerClusterResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterCallable() { + return stub.previewCreateGameServerClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Previews deletion of a single game server cluster. + * + *

Sample code: + * + *


+   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
+   *   PreviewDeleteGameServerClusterRequest request = PreviewDeleteGameServerClusterRequest.newBuilder().build();
+   *   PreviewDeleteGameServerClusterResponse response = gameServerClustersServiceClient.previewDeleteGameServerCluster(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PreviewDeleteGameServerClusterResponse previewDeleteGameServerCluster( + PreviewDeleteGameServerClusterRequest request) { + return previewDeleteGameServerClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Previews deletion of a single game server cluster. + * + *

Sample code: + * + *


+   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
+   *   PreviewDeleteGameServerClusterRequest request = PreviewDeleteGameServerClusterRequest.newBuilder().build();
+   *   ApiFuture<PreviewDeleteGameServerClusterResponse> future = gameServerClustersServiceClient.previewDeleteGameServerClusterCallable().futureCall(request);
+   *   // Do something
+   *   PreviewDeleteGameServerClusterResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterCallable() { + return stub.previewDeleteGameServerClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Previews updating a GameServerCluster. + * + *

Sample code: + * + *


+   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
+   *   PreviewUpdateGameServerClusterRequest request = PreviewUpdateGameServerClusterRequest.newBuilder().build();
+   *   PreviewUpdateGameServerClusterResponse response = gameServerClustersServiceClient.previewUpdateGameServerCluster(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PreviewUpdateGameServerClusterResponse previewUpdateGameServerCluster( + PreviewUpdateGameServerClusterRequest request) { + return previewUpdateGameServerClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Previews updating a GameServerCluster. + * + *

Sample code: + * + *


+   * try (GameServerClustersServiceClient gameServerClustersServiceClient = GameServerClustersServiceClient.create()) {
+   *   PreviewUpdateGameServerClusterRequest request = PreviewUpdateGameServerClusterRequest.newBuilder().build();
+   *   ApiFuture<PreviewUpdateGameServerClusterResponse> future = gameServerClustersServiceClient.previewUpdateGameServerClusterCallable().futureCall(request);
+   *   // Do something
+   *   PreviewUpdateGameServerClusterResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterCallable() { + return stub.previewUpdateGameServerClusterCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceSettings.java index ad523dce..70010c02 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceSettings.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -132,6 +132,30 @@ public class GameServerClustersServiceSettings .updateGameServerClusterOperationSettings(); } + /** Returns the object with the settings used for calls to previewCreateGameServerCluster. */ + public UnaryCallSettings< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterSettings() { + return ((GameServerClustersServiceStubSettings) getStubSettings()) + .previewCreateGameServerClusterSettings(); + } + + /** Returns the object with the settings used for calls to previewDeleteGameServerCluster. */ + public UnaryCallSettings< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterSettings() { + return ((GameServerClustersServiceStubSettings) getStubSettings()) + .previewDeleteGameServerClusterSettings(); + } + + /** Returns the object with the settings used for calls to previewUpdateGameServerCluster. */ + public UnaryCallSettings< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterSettings() { + return ((GameServerClustersServiceStubSettings) getStubSettings()) + .previewUpdateGameServerClusterSettings(); + } + public static final GameServerClustersServiceSettings create( GameServerClustersServiceStubSettings stub) throws IOException { return new GameServerClustersServiceSettings.Builder(stub.toBuilder()).build(); @@ -287,6 +311,27 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().updateGameServerClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to previewCreateGameServerCluster. */ + public UnaryCallSettings.Builder< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterSettings() { + return getStubSettingsBuilder().previewCreateGameServerClusterSettings(); + } + + /** Returns the builder for the settings used for calls to previewDeleteGameServerCluster. */ + public UnaryCallSettings.Builder< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterSettings() { + return getStubSettingsBuilder().previewDeleteGameServerClusterSettings(); + } + + /** Returns the builder for the settings used for calls to previewUpdateGameServerCluster. */ + public UnaryCallSettings.Builder< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterSettings() { + return getStubSettingsBuilder().previewUpdateGameServerClusterSettings(); + } + @Override public GameServerClustersServiceSettings build() throws IOException { return new GameServerClustersServiceSettings(this); diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClient.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClient.java index edb69d89..1fec17b2 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClient.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,8 +42,8 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** - * Service Description: The game server deployment is used to configure the deployment of game - * server software to Agones Fleets in game server clusters. + * Service Description: The game server deployment is used to control the deployment of game server + * software to Agones fleets. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -287,7 +287,7 @@ public final OperationsClient getOperationsClient() { * * * @param parent Required. The parent resource name, using the form: - * `projects/{project_id}/locations/{location}`. + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments(String parent) { @@ -395,7 +395,7 @@ public final ListGameServerDeploymentsPagedResponse listGameServerDeployments( * * * @param name Required. The name of the game server deployment to retrieve, using the form: - *

`projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` + *

`projects/{project}/locations/{location}/gameServerDeployments/{deployment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GameServerDeployment getGameServerDeployment(String name) { @@ -468,7 +468,7 @@ public final GameServerDeployment getGameServerDeployment( * * * @param parent Required. The parent resource name, using the form: - * `projects/{project_id}/locations/{location}`. + * `projects/{project}/locations/{location}`. * @param deploymentId Required. The ID of the game server deployment resource to be created. * @param gameServerDeployment Required. The game server deployment resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -586,7 +586,7 @@ public final OperationFuture createGameServerDeploy * * * @param name Required. The name of the game server deployment to delete, using the form: - *

`projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` + *

`projects/{project}/locations/{location}/gameServerDeployments/{deployment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -697,7 +697,6 @@ public final OperationFuture deleteGameServerDeploymentAsync( "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture updateGameServerDeploymentAsync( GameServerDeployment gameServerDeployment, FieldMask updateMask) { - UpdateGameServerDeploymentRequest request = UpdateGameServerDeploymentRequest.newBuilder() .setGameServerDeployment(gameServerDeployment) @@ -787,502 +786,171 @@ public final OperationFuture updateGameServerDeploy // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Starts rollout of this game server deployment based on the given game server template. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GameServerTemplate newGameServerTemplate = GameServerTemplate.newBuilder().build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.startRolloutAsync(formattedName, newGameServerTemplate).get();
-   * }
-   * 
- * - * @param name Required. The name of the game server deployment, using the form: - *

`projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - * @param newGameServerTemplate Required. The game server template for the new rollout. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture startRolloutAsync( - String name, GameServerTemplate newGameServerTemplate) { - GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.validate(name, "startRollout"); - StartRolloutRequest request = - StartRolloutRequest.newBuilder() - .setName(name) - .setNewGameServerTemplate(newGameServerTemplate) - .build(); - return startRolloutAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Starts rollout of this game server deployment based on the given game server template. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GameServerTemplate newGameServerTemplate = GameServerTemplate.newBuilder().build();
-   *   StartRolloutRequest request = StartRolloutRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setNewGameServerTemplate(newGameServerTemplate)
-   *     .build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.startRolloutAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture startRolloutAsync( - StartRolloutRequest request) { - return startRolloutOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Starts rollout of this game server deployment based on the given game server template. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GameServerTemplate newGameServerTemplate = GameServerTemplate.newBuilder().build();
-   *   StartRolloutRequest request = StartRolloutRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setNewGameServerTemplate(newGameServerTemplate)
-   *     .build();
-   *   OperationFuture<GameServerDeployment, Empty> future = gameServerDeploymentsServiceClient.startRolloutOperationCallable().futureCall(request);
-   *   // Do something
-   *   GameServerDeployment response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - startRolloutOperationCallable() { - return stub.startRolloutOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Starts rollout of this game server deployment based on the given game server template. + * Gets details a single game server deployment rollout. * *

Sample code: * *


    * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GameServerTemplate newGameServerTemplate = GameServerTemplate.newBuilder().build();
-   *   StartRolloutRequest request = StartRolloutRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setNewGameServerTemplate(newGameServerTemplate)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerDeploymentsServiceClient.startRolloutCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable startRolloutCallable() { - return stub.startRolloutCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets rollout target for the ongoing game server deployment rollout in the specified clusters - * and based on the given rollout percentage. Default is 0. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   List<ClusterPercentageSelector> clusterPercentageSelector = new ArrayList<>();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.setRolloutTargetAsync(formattedName, clusterPercentageSelector).get();
-   * }
-   * 
- * - * @param name Required. The name of the game server deployment, using the form: - *

`projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - * @param clusterPercentageSelector Required. The percentage of game servers that should run the - * new game server template in the specified clusters. Default is 0. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setRolloutTargetAsync( - String name, List clusterPercentageSelector) { - GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.validate(name, "setRolloutTarget"); - SetRolloutTargetRequest request = - SetRolloutTargetRequest.newBuilder() - .setName(name) - .addAllClusterPercentageSelector(clusterPercentageSelector) - .build(); - return setRolloutTargetAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets rollout target for the ongoing game server deployment rollout in the specified clusters - * and based on the given rollout percentage. Default is 0. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   List<ClusterPercentageSelector> clusterPercentageSelector = new ArrayList<>();
-   *   SetRolloutTargetRequest request = SetRolloutTargetRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .addAllClusterPercentageSelector(clusterPercentageSelector)
-   *     .build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.setRolloutTargetAsync(request).get();
+   *   GetGameServerDeploymentRolloutRequest request = GetGameServerDeploymentRolloutRequest.newBuilder().build();
+   *   GameServerDeploymentRollout response = gameServerDeploymentsServiceClient.getGameServerDeploymentRollout(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setRolloutTargetAsync( - SetRolloutTargetRequest request) { - return setRolloutTargetOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets rollout target for the ongoing game server deployment rollout in the specified clusters - * and based on the given rollout percentage. Default is 0. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   List<ClusterPercentageSelector> clusterPercentageSelector = new ArrayList<>();
-   *   SetRolloutTargetRequest request = SetRolloutTargetRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .addAllClusterPercentageSelector(clusterPercentageSelector)
-   *     .build();
-   *   OperationFuture<GameServerDeployment, Empty> future = gameServerDeploymentsServiceClient.setRolloutTargetOperationCallable().futureCall(request);
-   *   // Do something
-   *   GameServerDeployment response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - setRolloutTargetOperationCallable() { - return stub.setRolloutTargetOperationCallable(); + public final GameServerDeploymentRollout getGameServerDeploymentRollout( + GetGameServerDeploymentRolloutRequest request) { + return getGameServerDeploymentRolloutCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets rollout target for the ongoing game server deployment rollout in the specified clusters - * and based on the given rollout percentage. Default is 0. + * Gets details a single game server deployment rollout. * *

Sample code: * *


    * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   List<ClusterPercentageSelector> clusterPercentageSelector = new ArrayList<>();
-   *   SetRolloutTargetRequest request = SetRolloutTargetRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .addAllClusterPercentageSelector(clusterPercentageSelector)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerDeploymentsServiceClient.setRolloutTargetCallable().futureCall(request);
+   *   GetGameServerDeploymentRolloutRequest request = GetGameServerDeploymentRolloutRequest.newBuilder().build();
+   *   ApiFuture<GameServerDeploymentRollout> future = gameServerDeploymentsServiceClient.getGameServerDeploymentRolloutCallable().futureCall(request);
    *   // Do something
-   *   Operation response = future.get();
+   *   GameServerDeploymentRollout response = future.get();
    * }
    * 
*/ - public final UnaryCallable setRolloutTargetCallable() { - return stub.setRolloutTargetCallable(); + public final UnaryCallable + getGameServerDeploymentRolloutCallable() { + return stub.getGameServerDeploymentRolloutCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Patches a single game server deployment rollout. * *

Sample code: * *


    * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.commitRolloutAsync(formattedName).get();
-   * }
-   * 
- * - * @param name Required. The name of the game server deployment, using the form: - *

`projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture commitRolloutAsync(String name) { - GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.validate(name, "commitRollout"); - CommitRolloutRequest request = CommitRolloutRequest.newBuilder().setName(name).build(); - return commitRolloutAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * 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. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   CommitRolloutRequest request = CommitRolloutRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.commitRolloutAsync(request).get();
+   *   UpdateGameServerDeploymentRolloutRequest request = UpdateGameServerDeploymentRolloutRequest.newBuilder().build();
+   *   Operation response = gameServerDeploymentsServiceClient.updateGameServerDeploymentRollout(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture commitRolloutAsync( - CommitRolloutRequest request) { - return commitRolloutOperationCallable().futureCall(request); + public final Operation updateGameServerDeploymentRollout( + UpdateGameServerDeploymentRolloutRequest request) { + return updateGameServerDeploymentRolloutCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Patches a single game server deployment rollout. * *

Sample code: * *


    * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   CommitRolloutRequest request = CommitRolloutRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   OperationFuture<GameServerDeployment, Empty> future = gameServerDeploymentsServiceClient.commitRolloutOperationCallable().futureCall(request);
-   *   // Do something
-   *   GameServerDeployment response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - commitRolloutOperationCallable() { - return stub.commitRolloutOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * 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. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   CommitRolloutRequest request = CommitRolloutRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerDeploymentsServiceClient.commitRolloutCallable().futureCall(request);
+   *   UpdateGameServerDeploymentRolloutRequest request = UpdateGameServerDeploymentRolloutRequest.newBuilder().build();
+   *   ApiFuture<Operation> future = gameServerDeploymentsServiceClient.updateGameServerDeploymentRolloutCallable().futureCall(request);
    *   // Do something
    *   Operation response = future.get();
    * }
    * 
*/ - public final UnaryCallable commitRolloutCallable() { - return stub.commitRolloutCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * 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. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.revertRolloutAsync(formattedName).get();
-   * }
-   * 
- * - * @param name Required. The name of the game server deployment to deploy, using the form: - *

`projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture revertRolloutAsync(String name) { - GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.validate(name, "revertRollout"); - RevertRolloutRequest request = RevertRolloutRequest.newBuilder().setName(name).build(); - return revertRolloutAsync(request); + public final UnaryCallable + updateGameServerDeploymentRolloutCallable() { + return stub.updateGameServerDeploymentRolloutCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Previews the game server deployment rollout. This API does not mutate the rollout resource. * *

Sample code: * *


    * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   RevertRolloutRequest request = RevertRolloutRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   GameServerDeployment response = gameServerDeploymentsServiceClient.revertRolloutAsync(request).get();
+   *   PreviewGameServerDeploymentRolloutRequest request = PreviewGameServerDeploymentRolloutRequest.newBuilder().build();
+   *   PreviewGameServerDeploymentRolloutResponse response = gameServerDeploymentsServiceClient.previewGameServerDeploymentRollout(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture revertRolloutAsync( - RevertRolloutRequest request) { - return revertRolloutOperationCallable().futureCall(request); + public final PreviewGameServerDeploymentRolloutResponse previewGameServerDeploymentRollout( + PreviewGameServerDeploymentRolloutRequest request) { + return previewGameServerDeploymentRolloutCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Previews the game server deployment rollout. This API does not mutate the rollout resource. * *

Sample code: * *


    * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   RevertRolloutRequest request = RevertRolloutRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   OperationFuture<GameServerDeployment, Empty> future = gameServerDeploymentsServiceClient.revertRolloutOperationCallable().futureCall(request);
+   *   PreviewGameServerDeploymentRolloutRequest request = PreviewGameServerDeploymentRolloutRequest.newBuilder().build();
+   *   ApiFuture<PreviewGameServerDeploymentRolloutResponse> future = gameServerDeploymentsServiceClient.previewGameServerDeploymentRolloutCallable().futureCall(request);
    *   // Do something
-   *   GameServerDeployment response = future.get();
+   *   PreviewGameServerDeploymentRolloutResponse response = future.get();
    * }
    * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - revertRolloutOperationCallable() { - return stub.revertRolloutOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * 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. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   RevertRolloutRequest request = RevertRolloutRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<Operation> future = gameServerDeploymentsServiceClient.revertRolloutCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable revertRolloutCallable() { - return stub.revertRolloutCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * 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. - * - *

Sample code: - * - *


-   * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   DeploymentTarget response = gameServerDeploymentsServiceClient.getDeploymentTarget(formattedName);
-   * }
-   * 
- * - * @param name Required. The name of the game server deployment, using the form: - *

`projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DeploymentTarget getDeploymentTarget(String name) { - GAME_SERVER_DEPLOYMENT_PATH_TEMPLATE.validate(name, "getDeploymentTarget"); - GetDeploymentTargetRequest request = - GetDeploymentTargetRequest.newBuilder().setName(name).build(); - return getDeploymentTarget(request); + public final UnaryCallable< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutCallable() { + return stub.previewGameServerDeploymentRolloutCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Retrieves information about the current state of the deployment, e.g. it gathers all the fleets + * and autoscalars for this deployment. This includes fleets running older version of the + * deployment. * *

Sample code: * *


    * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GetDeploymentTargetRequest request = GetDeploymentTargetRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   DeploymentTarget response = gameServerDeploymentsServiceClient.getDeploymentTarget(request);
+   *   FetchDeploymentStateRequest request = FetchDeploymentStateRequest.newBuilder().build();
+   *   FetchDeploymentStateResponse response = gameServerDeploymentsServiceClient.fetchDeploymentState(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeploymentTarget getDeploymentTarget(GetDeploymentTargetRequest request) { - return getDeploymentTargetCallable().call(request); + public final FetchDeploymentStateResponse fetchDeploymentState( + FetchDeploymentStateRequest request) { + return fetchDeploymentStateCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Retrieves information about the current state of the deployment, e.g. it gathers all the fleets + * and autoscalars for this deployment. This includes fleets running older version of the + * deployment. * *

Sample code: * *


    * try (GameServerDeploymentsServiceClient gameServerDeploymentsServiceClient = GameServerDeploymentsServiceClient.create()) {
-   *   String formattedName = GameServerDeploymentsServiceClient.formatGameServerDeploymentName("[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]");
-   *   GetDeploymentTargetRequest request = GetDeploymentTargetRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<DeploymentTarget> future = gameServerDeploymentsServiceClient.getDeploymentTargetCallable().futureCall(request);
+   *   FetchDeploymentStateRequest request = FetchDeploymentStateRequest.newBuilder().build();
+   *   ApiFuture<FetchDeploymentStateResponse> future = gameServerDeploymentsServiceClient.fetchDeploymentStateCallable().futureCall(request);
    *   // Do something
-   *   DeploymentTarget response = future.get();
+   *   FetchDeploymentStateResponse response = future.get();
    * }
    * 
*/ - public final UnaryCallable - getDeploymentTargetCallable() { - return stub.getDeploymentTargetCallable(); + public final UnaryCallable + fetchDeploymentStateCallable() { + return stub.fetchDeploymentStateCallable(); } @Override diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceSettings.java index 99ed70fa..445000e1 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceSettings.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -132,68 +132,33 @@ public class GameServerDeploymentsServiceSettings .updateGameServerDeploymentOperationSettings(); } - /** Returns the object with the settings used for calls to startRollout. */ - public UnaryCallSettings startRolloutSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()).startRolloutSettings(); - } - - /** Returns the object with the settings used for calls to startRollout. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - startRolloutOperationSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .startRolloutOperationSettings(); - } - - /** Returns the object with the settings used for calls to setRolloutTarget. */ - public UnaryCallSettings setRolloutTargetSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .setRolloutTargetSettings(); - } - - /** Returns the object with the settings used for calls to setRolloutTarget. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - setRolloutTargetOperationSettings() { + /** Returns the object with the settings used for calls to getGameServerDeploymentRollout. */ + public UnaryCallSettings + getGameServerDeploymentRolloutSettings() { return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .setRolloutTargetOperationSettings(); + .getGameServerDeploymentRolloutSettings(); } - /** Returns the object with the settings used for calls to commitRollout. */ - public UnaryCallSettings commitRolloutSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()).commitRolloutSettings(); - } - - /** Returns the object with the settings used for calls to commitRollout. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - commitRolloutOperationSettings() { + /** Returns the object with the settings used for calls to updateGameServerDeploymentRollout. */ + public UnaryCallSettings + updateGameServerDeploymentRolloutSettings() { return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .commitRolloutOperationSettings(); - } - - /** Returns the object with the settings used for calls to revertRollout. */ - public UnaryCallSettings revertRolloutSettings() { - return ((GameServerDeploymentsServiceStubSettings) getStubSettings()).revertRolloutSettings(); + .updateGameServerDeploymentRolloutSettings(); } - /** Returns the object with the settings used for calls to revertRollout. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - revertRolloutOperationSettings() { + /** Returns the object with the settings used for calls to previewGameServerDeploymentRollout. */ + public UnaryCallSettings< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutSettings() { return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .revertRolloutOperationSettings(); + .previewGameServerDeploymentRolloutSettings(); } - /** Returns the object with the settings used for calls to getDeploymentTarget. */ - public UnaryCallSettings - getDeploymentTargetSettings() { + /** Returns the object with the settings used for calls to fetchDeploymentState. */ + public UnaryCallSettings + fetchDeploymentStateSettings() { return ((GameServerDeploymentsServiceStubSettings) getStubSettings()) - .getDeploymentTargetSettings(); + .fetchDeploymentStateSettings(); } public static final GameServerDeploymentsServiceSettings create( @@ -353,63 +318,32 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().updateGameServerDeploymentOperationSettings(); } - /** Returns the builder for the settings used for calls to startRollout. */ - public UnaryCallSettings.Builder startRolloutSettings() { - return getStubSettingsBuilder().startRolloutSettings(); + /** Returns the builder for the settings used for calls to getGameServerDeploymentRollout. */ + public UnaryCallSettings.Builder< + GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> + getGameServerDeploymentRolloutSettings() { + return getStubSettingsBuilder().getGameServerDeploymentRolloutSettings(); } - /** Returns the builder for the settings used for calls to startRollout. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - startRolloutOperationSettings() { - return getStubSettingsBuilder().startRolloutOperationSettings(); - } - - /** Returns the builder for the settings used for calls to setRolloutTarget. */ - public UnaryCallSettings.Builder - setRolloutTargetSettings() { - return getStubSettingsBuilder().setRolloutTargetSettings(); - } - - /** Returns the builder for the settings used for calls to setRolloutTarget. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - setRolloutTargetOperationSettings() { - return getStubSettingsBuilder().setRolloutTargetOperationSettings(); - } - - /** Returns the builder for the settings used for calls to commitRollout. */ - public UnaryCallSettings.Builder commitRolloutSettings() { - return getStubSettingsBuilder().commitRolloutSettings(); + /** Returns the builder for the settings used for calls to updateGameServerDeploymentRollout. */ + public UnaryCallSettings.Builder + updateGameServerDeploymentRolloutSettings() { + return getStubSettingsBuilder().updateGameServerDeploymentRolloutSettings(); } - /** Returns the builder for the settings used for calls to commitRollout. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - commitRolloutOperationSettings() { - return getStubSettingsBuilder().commitRolloutOperationSettings(); - } - - /** Returns the builder for the settings used for calls to revertRollout. */ - public UnaryCallSettings.Builder revertRolloutSettings() { - return getStubSettingsBuilder().revertRolloutSettings(); - } - - /** Returns the builder for the settings used for calls to revertRollout. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - revertRolloutOperationSettings() { - return getStubSettingsBuilder().revertRolloutOperationSettings(); + /** + * Returns the builder for the settings used for calls to previewGameServerDeploymentRollout. + */ + public UnaryCallSettings.Builder< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutSettings() { + return getStubSettingsBuilder().previewGameServerDeploymentRolloutSettings(); } - /** Returns the builder for the settings used for calls to getDeploymentTarget. */ - public UnaryCallSettings.Builder - getDeploymentTargetSettings() { - return getStubSettingsBuilder().getDeploymentTargetSettings(); + /** Returns the builder for the settings used for calls to fetchDeploymentState. */ + public UnaryCallSettings.Builder + fetchDeploymentStateSettings() { + return getStubSettingsBuilder().fetchDeploymentStateSettings(); } @Override diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceClient.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceClient.java index 1000dcdc..37554f58 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceClient.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,8 +42,8 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** - * Service Description: Realm provides grouping of game server clusters that are serving particular - * gamer population. + * Service Description: Realm provides grouping of game server clusters that are serving a + * particular gamer population. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -272,7 +272,7 @@ public final OperationsClient getOperationsClient() { * * * @param parent Required. The parent resource name, using the form: - * `projects/{project_id}/locations/{location}`. + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRealmsPagedResponse listRealms(String parent) { @@ -375,7 +375,7 @@ public final UnaryCallable listRealmsCall * * * @param name Required. The name of the realm to retrieve, using the form: - * `projects/{project_id}/locations/{location}/realms/{realm_id}` + * `projects/{project}/locations/{location}/realms/{realm}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Realm getRealm(String name) { @@ -445,7 +445,7 @@ public final UnaryCallable getRealmCallable() { * * * @param parent Required. The parent resource name, using the form: - * `projects/{project_id}/locations/{location}`. + * `projects/{project}/locations/{location}`. * @param realmId Required. The ID of the realm resource to be created. * @param realm Required. The realm resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -560,7 +560,7 @@ public final UnaryCallable createRealmCallable() * * * @param name Required. The name of the realm to delete, using the form: - * `projects/{project_id}/locations/{location}/realms/{realm_id}` + * `projects/{project}/locations/{location}/realms/{realm}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -666,7 +666,6 @@ public final UnaryCallable deleteRealmCallable() @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture updateRealmAsync(Realm realm, FieldMask updateMask) { - UpdateRealmRequest request = UpdateRealmRequest.newBuilder().setRealm(realm).setUpdateMask(updateMask).build(); return updateRealmAsync(request); @@ -748,6 +747,46 @@ public final UnaryCallable updateRealmCallable() return stub.updateRealmCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Previews patches to a single Realm. + * + *

Sample code: + * + *


+   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+   *   PreviewRealmUpdateRequest request = PreviewRealmUpdateRequest.newBuilder().build();
+   *   PreviewRealmUpdateResponse response = realmsServiceClient.previewRealmUpdate(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PreviewRealmUpdateResponse previewRealmUpdate(PreviewRealmUpdateRequest request) { + return previewRealmUpdateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Previews patches to a single Realm. + * + *

Sample code: + * + *


+   * try (RealmsServiceClient realmsServiceClient = RealmsServiceClient.create()) {
+   *   PreviewRealmUpdateRequest request = PreviewRealmUpdateRequest.newBuilder().build();
+   *   ApiFuture<PreviewRealmUpdateResponse> future = realmsServiceClient.previewRealmUpdateCallable().futureCall(request);
+   *   // Do something
+   *   PreviewRealmUpdateResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + previewRealmUpdateCallable() { + return stub.previewRealmUpdateCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceSettings.java index bb4eedad..3965e3cd 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceSettings.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -113,6 +113,12 @@ public OperationCallSettings updateRealmOperat return ((RealmsServiceStubSettings) getStubSettings()).updateRealmOperationSettings(); } + /** Returns the object with the settings used for calls to previewRealmUpdate. */ + public UnaryCallSettings + previewRealmUpdateSettings() { + return ((RealmsServiceStubSettings) getStubSettings()).previewRealmUpdateSettings(); + } + public static final RealmsServiceSettings create(RealmsServiceStubSettings stub) throws IOException { return new RealmsServiceSettings.Builder(stub.toBuilder()).build(); @@ -260,6 +266,12 @@ public UnaryCallSettings.Builder updateRealmSetti return getStubSettingsBuilder().updateRealmOperationSettings(); } + /** Returns the builder for the settings used for calls to previewRealmUpdate. */ + public UnaryCallSettings.Builder + previewRealmUpdateSettings() { + return getStubSettingsBuilder().previewRealmUpdateSettings(); + } + @Override public RealmsServiceSettings build() throws IOException { return new RealmsServiceSettings(this); diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceClient.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceClient.java deleted file mode 100644 index dd632653..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceClient.java +++ /dev/null @@ -1,886 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.pathtemplate.PathTemplate; -import com.google.cloud.gaming.v1alpha.stub.ScalingPoliciesServiceStub; -import com.google.cloud.gaming.v1alpha.stub.ScalingPoliciesServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND SERVICE -/** - * Service Description: The cloud gaming scaling policy is used to configure scaling parameters for - * each fleet. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

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

Note: close() needs to be called on the scalingPoliciesServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of ScalingPoliciesServiceSettings - * to create(). For example: - * - *

To customize credentials: - * - *

- * 
- * ScalingPoliciesServiceSettings scalingPoliciesServiceSettings =
- *     ScalingPoliciesServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * ScalingPoliciesServiceClient scalingPoliciesServiceClient =
- *     ScalingPoliciesServiceClient.create(scalingPoliciesServiceSettings);
- * 
- * 
- * - * To customize the endpoint: - * - *
- * 
- * ScalingPoliciesServiceSettings scalingPoliciesServiceSettings =
- *     ScalingPoliciesServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * ScalingPoliciesServiceClient scalingPoliciesServiceClient =
- *     ScalingPoliciesServiceClient.create(scalingPoliciesServiceSettings);
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class ScalingPoliciesServiceClient implements BackgroundResource { - private final ScalingPoliciesServiceSettings settings; - private final ScalingPoliciesServiceStub stub; - private final OperationsClient operationsClient; - - private static final PathTemplate LOCATION_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - - private static final PathTemplate SCALING_POLICY_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/scalingPolicies/{scaling_policy}"); - - /** - * Formats a string containing the fully-qualified path to represent a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String formatLocationName(String project, String location) { - return LOCATION_PATH_TEMPLATE.instantiate( - "project", project, - "location", location); - } - - /** - * Formats a string containing the fully-qualified path to represent a scaling_policy resource. - * - * @deprecated Use the {@link ScalingPolicyName} class instead. - */ - @Deprecated - public static final String formatScalingPolicyName( - String project, String location, String scalingPolicy) { - return SCALING_POLICY_PATH_TEMPLATE.instantiate( - "project", project, - "location", location, - "scaling_policy", scalingPolicy); - } - - /** - * Parses the project from the given fully-qualified path which represents a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String parseProjectFromLocationName(String locationName) { - return LOCATION_PATH_TEMPLATE.parse(locationName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a location resource. - * - * @deprecated Use the {@link LocationName} class instead. - */ - @Deprecated - public static final String parseLocationFromLocationName(String locationName) { - return LOCATION_PATH_TEMPLATE.parse(locationName).get("location"); - } - - /** - * Parses the project from the given fully-qualified path which represents a scaling_policy - * resource. - * - * @deprecated Use the {@link ScalingPolicyName} class instead. - */ - @Deprecated - public static final String parseProjectFromScalingPolicyName(String scalingPolicyName) { - return SCALING_POLICY_PATH_TEMPLATE.parse(scalingPolicyName).get("project"); - } - - /** - * Parses the location from the given fully-qualified path which represents a scaling_policy - * resource. - * - * @deprecated Use the {@link ScalingPolicyName} class instead. - */ - @Deprecated - public static final String parseLocationFromScalingPolicyName(String scalingPolicyName) { - return SCALING_POLICY_PATH_TEMPLATE.parse(scalingPolicyName).get("location"); - } - - /** - * Parses the scaling_policy from the given fully-qualified path which represents a scaling_policy - * resource. - * - * @deprecated Use the {@link ScalingPolicyName} class instead. - */ - @Deprecated - public static final String parseScalingPolicyFromScalingPolicyName(String scalingPolicyName) { - return SCALING_POLICY_PATH_TEMPLATE.parse(scalingPolicyName).get("scaling_policy"); - } - - /** Constructs an instance of ScalingPoliciesServiceClient with default settings. */ - public static final ScalingPoliciesServiceClient create() throws IOException { - return create(ScalingPoliciesServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of ScalingPoliciesServiceClient, using the given settings. The channels - * are created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final ScalingPoliciesServiceClient create(ScalingPoliciesServiceSettings settings) - throws IOException { - return new ScalingPoliciesServiceClient(settings); - } - - /** - * Constructs an instance of ScalingPoliciesServiceClient, using the given stub for making calls. - * This is for advanced usage - prefer to use ScalingPoliciesServiceSettings}. - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final ScalingPoliciesServiceClient create(ScalingPoliciesServiceStub stub) { - return new ScalingPoliciesServiceClient(stub); - } - - /** - * Constructs an instance of ScalingPoliciesServiceClient, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected ScalingPoliciesServiceClient(ScalingPoliciesServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = ((ScalingPoliciesServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected ScalingPoliciesServiceClient(ScalingPoliciesServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final ScalingPoliciesServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public ScalingPoliciesServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists ScalingPolicies in a given project and location. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedParent = ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   for (ScalingPolicy element : scalingPoliciesServiceClient.listScalingPolicies(formattedParent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * `projects/{project_id}/locations/{location}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListScalingPoliciesPagedResponse listScalingPolicies(String parent) { - LOCATION_PATH_TEMPLATE.validate(parent, "listScalingPolicies"); - ListScalingPoliciesRequest request = - ListScalingPoliciesRequest.newBuilder().setParent(parent).build(); - return listScalingPolicies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists ScalingPolicies in a given project and location. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedParent = ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListScalingPoliciesRequest request = ListScalingPoliciesRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   for (ScalingPolicy element : scalingPoliciesServiceClient.listScalingPolicies(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListScalingPoliciesPagedResponse listScalingPolicies( - ListScalingPoliciesRequest request) { - return listScalingPoliciesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists ScalingPolicies in a given project and location. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedParent = ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListScalingPoliciesRequest request = ListScalingPoliciesRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   ApiFuture<ListScalingPoliciesPagedResponse> future = scalingPoliciesServiceClient.listScalingPoliciesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (ScalingPolicy element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listScalingPoliciesPagedCallable() { - return stub.listScalingPoliciesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists ScalingPolicies in a given project and location. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedParent = ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   ListScalingPoliciesRequest request = ListScalingPoliciesRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .build();
-   *   while (true) {
-   *     ListScalingPoliciesResponse response = scalingPoliciesServiceClient.listScalingPoliciesCallable().call(request);
-   *     for (ScalingPolicy element : response.getScalingPoliciesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
- */ - public final UnaryCallable - listScalingPoliciesCallable() { - return stub.listScalingPoliciesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedName = ScalingPoliciesServiceClient.formatScalingPolicyName("[PROJECT]", "[LOCATION]", "[SCALING_POLICY]");
-   *   ScalingPolicy response = scalingPoliciesServiceClient.getScalingPolicy(formattedName);
-   * }
-   * 
- * - * @param name Required. The name of the scaling policy to retrieve, using the form: - *

`projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ScalingPolicy getScalingPolicy(String name) { - SCALING_POLICY_PATH_TEMPLATE.validate(name, "getScalingPolicy"); - GetScalingPolicyRequest request = GetScalingPolicyRequest.newBuilder().setName(name).build(); - return getScalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedName = ScalingPoliciesServiceClient.formatScalingPolicyName("[PROJECT]", "[LOCATION]", "[SCALING_POLICY]");
-   *   GetScalingPolicyRequest request = GetScalingPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ScalingPolicy response = scalingPoliciesServiceClient.getScalingPolicy(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ScalingPolicy getScalingPolicy(GetScalingPolicyRequest request) { - return getScalingPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets details of a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedName = ScalingPoliciesServiceClient.formatScalingPolicyName("[PROJECT]", "[LOCATION]", "[SCALING_POLICY]");
-   *   GetScalingPolicyRequest request = GetScalingPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<ScalingPolicy> future = scalingPoliciesServiceClient.getScalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   ScalingPolicy response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable getScalingPolicyCallable() { - return stub.getScalingPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new scaling policy in a given project and location. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedParent = ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String scalingPolicyId = "";
-   *   ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build();
-   *   ScalingPolicy response = scalingPoliciesServiceClient.createScalingPolicyAsync(formattedParent, scalingPolicyId, scalingPolicy).get();
-   * }
-   * 
- * - * @param parent Required. The parent resource name, using the form: - * `projects/{project_id}/locations/{location}`. - * @param scalingPolicyId Required. The ID of the scaling policy resource to be created. - * @param scalingPolicy Required. The scaling policy resource to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createScalingPolicyAsync( - String parent, String scalingPolicyId, ScalingPolicy scalingPolicy) { - LOCATION_PATH_TEMPLATE.validate(parent, "createScalingPolicy"); - CreateScalingPolicyRequest request = - CreateScalingPolicyRequest.newBuilder() - .setParent(parent) - .setScalingPolicyId(scalingPolicyId) - .setScalingPolicy(scalingPolicy) - .build(); - return createScalingPolicyAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new scaling policy in a given project and location. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedParent = ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String scalingPolicyId = "";
-   *   ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build();
-   *   CreateScalingPolicyRequest request = CreateScalingPolicyRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setScalingPolicyId(scalingPolicyId)
-   *     .setScalingPolicy(scalingPolicy)
-   *     .build();
-   *   ScalingPolicy response = scalingPoliciesServiceClient.createScalingPolicyAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createScalingPolicyAsync( - CreateScalingPolicyRequest request) { - return createScalingPolicyOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new scaling policy in a given project and location. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedParent = ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String scalingPolicyId = "";
-   *   ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build();
-   *   CreateScalingPolicyRequest request = CreateScalingPolicyRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setScalingPolicyId(scalingPolicyId)
-   *     .setScalingPolicy(scalingPolicy)
-   *     .build();
-   *   OperationFuture<ScalingPolicy, Empty> future = scalingPoliciesServiceClient.createScalingPolicyOperationCallable().futureCall(request);
-   *   // Do something
-   *   ScalingPolicy response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - createScalingPolicyOperationCallable() { - return stub.createScalingPolicyOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a new scaling policy in a given project and location. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedParent = ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
-   *   String scalingPolicyId = "";
-   *   ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build();
-   *   CreateScalingPolicyRequest request = CreateScalingPolicyRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setScalingPolicyId(scalingPolicyId)
-   *     .setScalingPolicy(scalingPolicy)
-   *     .build();
-   *   ApiFuture<Operation> future = scalingPoliciesServiceClient.createScalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable createScalingPolicyCallable() { - return stub.createScalingPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedName = ScalingPoliciesServiceClient.formatScalingPolicyName("[PROJECT]", "[LOCATION]", "[SCALING_POLICY]");
-   *   scalingPoliciesServiceClient.deleteScalingPolicyAsync(formattedName).get();
-   * }
-   * 
- * - * @param name Required. The name of the scaling policy to delete, using the form: - *

`projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteScalingPolicyAsync(String name) { - SCALING_POLICY_PATH_TEMPLATE.validate(name, "deleteScalingPolicy"); - DeleteScalingPolicyRequest request = - DeleteScalingPolicyRequest.newBuilder().setName(name).build(); - return deleteScalingPolicyAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedName = ScalingPoliciesServiceClient.formatScalingPolicyName("[PROJECT]", "[LOCATION]", "[SCALING_POLICY]");
-   *   DeleteScalingPolicyRequest request = DeleteScalingPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   scalingPoliciesServiceClient.deleteScalingPolicyAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteScalingPolicyAsync( - DeleteScalingPolicyRequest request) { - return deleteScalingPolicyOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedName = ScalingPoliciesServiceClient.formatScalingPolicyName("[PROJECT]", "[LOCATION]", "[SCALING_POLICY]");
-   *   DeleteScalingPolicyRequest request = DeleteScalingPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   OperationFuture<Empty, Empty> future = scalingPoliciesServiceClient.deleteScalingPolicyOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - deleteScalingPolicyOperationCallable() { - return stub.deleteScalingPolicyOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   String formattedName = ScalingPoliciesServiceClient.formatScalingPolicyName("[PROJECT]", "[LOCATION]", "[SCALING_POLICY]");
-   *   DeleteScalingPolicyRequest request = DeleteScalingPolicyRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .build();
-   *   ApiFuture<Operation> future = scalingPoliciesServiceClient.deleteScalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable deleteScalingPolicyCallable() { - return stub.deleteScalingPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   ScalingPolicy response = scalingPoliciesServiceClient.updateScalingPolicyAsync(scalingPolicy, updateMask).get();
-   * }
-   * 
- * - * @param scalingPolicy Required. The scaling policy to be updated. Only fields specified in - * update_mask are updated. - * @param updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. For the `FieldMask` definition, see - *

https: //developers.google.com/protocol-buffers // - * /docs/reference/google.protobuf#fieldmask - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateScalingPolicyAsync( - ScalingPolicy scalingPolicy, FieldMask updateMask) { - - UpdateScalingPolicyRequest request = - UpdateScalingPolicyRequest.newBuilder() - .setScalingPolicy(scalingPolicy) - .setUpdateMask(updateMask) - .build(); - return updateScalingPolicyAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateScalingPolicyRequest request = UpdateScalingPolicyRequest.newBuilder()
-   *     .setScalingPolicy(scalingPolicy)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ScalingPolicy response = scalingPoliciesServiceClient.updateScalingPolicyAsync(request).get();
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateScalingPolicyAsync( - UpdateScalingPolicyRequest request) { - return updateScalingPolicyOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateScalingPolicyRequest request = UpdateScalingPolicyRequest.newBuilder()
-   *     .setScalingPolicy(scalingPolicy)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<ScalingPolicy, Empty> future = scalingPoliciesServiceClient.updateScalingPolicyOperationCallable().futureCall(request);
-   *   // Do something
-   *   ScalingPolicy response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - updateScalingPolicyOperationCallable() { - return stub.updateScalingPolicyOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Patches a single scaling policy. - * - *

Sample code: - * - *


-   * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
-   *   ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateScalingPolicyRequest request = UpdateScalingPolicyRequest.newBuilder()
-   *     .setScalingPolicy(scalingPolicy)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = scalingPoliciesServiceClient.updateScalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable updateScalingPolicyCallable() { - return stub.updateScalingPolicyCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListScalingPoliciesPagedResponse - extends AbstractPagedListResponse< - ListScalingPoliciesRequest, - ListScalingPoliciesResponse, - ScalingPolicy, - ListScalingPoliciesPage, - ListScalingPoliciesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListScalingPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListScalingPoliciesPagedResponse apply(ListScalingPoliciesPage input) { - return new ListScalingPoliciesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListScalingPoliciesPagedResponse(ListScalingPoliciesPage page) { - super(page, ListScalingPoliciesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListScalingPoliciesPage - extends AbstractPage< - ListScalingPoliciesRequest, - ListScalingPoliciesResponse, - ScalingPolicy, - ListScalingPoliciesPage> { - - private ListScalingPoliciesPage( - PageContext context, - ListScalingPoliciesResponse response) { - super(context, response); - } - - private static ListScalingPoliciesPage createEmptyPage() { - return new ListScalingPoliciesPage(null, null); - } - - @Override - protected ListScalingPoliciesPage createPage( - PageContext context, - ListScalingPoliciesResponse response) { - return new ListScalingPoliciesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListScalingPoliciesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListScalingPoliciesRequest, - ListScalingPoliciesResponse, - ScalingPolicy, - ListScalingPoliciesPage, - ListScalingPoliciesFixedSizeCollection> { - - private ListScalingPoliciesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListScalingPoliciesFixedSizeCollection createEmptyCollection() { - return new ListScalingPoliciesFixedSizeCollection(null, 0); - } - - @Override - protected ListScalingPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListScalingPoliciesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceSettings.java deleted file mode 100644 index 5cbb4eb8..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceSettings.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.ScalingPoliciesServiceClient.ListScalingPoliciesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.gaming.v1alpha.stub.ScalingPoliciesServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link ScalingPoliciesServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getScalingPolicy to 30 seconds: - * - *

- * 
- * ScalingPoliciesServiceSettings.Builder scalingPoliciesServiceSettingsBuilder =
- *     ScalingPoliciesServiceSettings.newBuilder();
- * scalingPoliciesServiceSettingsBuilder.getScalingPolicySettings().getRetrySettings().toBuilder()
- *     .setTotalTimeout(Duration.ofSeconds(30));
- * ScalingPoliciesServiceSettings scalingPoliciesServiceSettings = scalingPoliciesServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class ScalingPoliciesServiceSettings extends ClientSettings { - /** Returns the object with the settings used for calls to listScalingPolicies. */ - public PagedCallSettings< - ListScalingPoliciesRequest, ListScalingPoliciesResponse, ListScalingPoliciesPagedResponse> - listScalingPoliciesSettings() { - return ((ScalingPoliciesServiceStubSettings) getStubSettings()).listScalingPoliciesSettings(); - } - - /** Returns the object with the settings used for calls to getScalingPolicy. */ - public UnaryCallSettings getScalingPolicySettings() { - return ((ScalingPoliciesServiceStubSettings) getStubSettings()).getScalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to createScalingPolicy. */ - public UnaryCallSettings createScalingPolicySettings() { - return ((ScalingPoliciesServiceStubSettings) getStubSettings()).createScalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to createScalingPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - createScalingPolicyOperationSettings() { - return ((ScalingPoliciesServiceStubSettings) getStubSettings()) - .createScalingPolicyOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteScalingPolicy. */ - public UnaryCallSettings deleteScalingPolicySettings() { - return ((ScalingPoliciesServiceStubSettings) getStubSettings()).deleteScalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to deleteScalingPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - deleteScalingPolicyOperationSettings() { - return ((ScalingPoliciesServiceStubSettings) getStubSettings()) - .deleteScalingPolicyOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateScalingPolicy. */ - public UnaryCallSettings updateScalingPolicySettings() { - return ((ScalingPoliciesServiceStubSettings) getStubSettings()).updateScalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to updateScalingPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - updateScalingPolicyOperationSettings() { - return ((ScalingPoliciesServiceStubSettings) getStubSettings()) - .updateScalingPolicyOperationSettings(); - } - - public static final ScalingPoliciesServiceSettings create(ScalingPoliciesServiceStubSettings stub) - throws IOException { - return new ScalingPoliciesServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return ScalingPoliciesServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return ScalingPoliciesServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return ScalingPoliciesServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return ScalingPoliciesServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return ScalingPoliciesServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return ScalingPoliciesServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ScalingPoliciesServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ScalingPoliciesServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for ScalingPoliciesServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - protected Builder() throws IOException { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(ScalingPoliciesServiceStubSettings.newBuilder(clientContext)); - } - - private static Builder createDefault() { - return new Builder(ScalingPoliciesServiceStubSettings.newBuilder()); - } - - protected Builder(ScalingPoliciesServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(ScalingPoliciesServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - public ScalingPoliciesServiceStubSettings.Builder getStubSettingsBuilder() { - return ((ScalingPoliciesServiceStubSettings.Builder) getStubSettings()); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listScalingPolicies. */ - public PagedCallSettings.Builder< - ListScalingPoliciesRequest, - ListScalingPoliciesResponse, - ListScalingPoliciesPagedResponse> - listScalingPoliciesSettings() { - return getStubSettingsBuilder().listScalingPoliciesSettings(); - } - - /** Returns the builder for the settings used for calls to getScalingPolicy. */ - public UnaryCallSettings.Builder - getScalingPolicySettings() { - return getStubSettingsBuilder().getScalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to createScalingPolicy. */ - public UnaryCallSettings.Builder - createScalingPolicySettings() { - return getStubSettingsBuilder().createScalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to createScalingPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createScalingPolicyOperationSettings() { - return getStubSettingsBuilder().createScalingPolicyOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteScalingPolicy. */ - public UnaryCallSettings.Builder - deleteScalingPolicySettings() { - return getStubSettingsBuilder().deleteScalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to deleteScalingPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteScalingPolicyOperationSettings() { - return getStubSettingsBuilder().deleteScalingPolicyOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateScalingPolicy. */ - public UnaryCallSettings.Builder - updateScalingPolicySettings() { - return getStubSettingsBuilder().updateScalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to updateScalingPolicy. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateScalingPolicyOperationSettings() { - return getStubSettingsBuilder().updateScalingPolicyOperationSettings(); - } - - @Override - public ScalingPoliciesServiceSettings build() throws IOException { - return new ScalingPoliciesServiceSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/package-info.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/package-info.java index 8ba914af..0a6327d0 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/package-info.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,30 +19,11 @@ * *

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

=============================== AllocationPoliciesServiceClient + *

=============================== GameServerClustersServiceClient * =============================== * - *

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

Sample for AllocationPoliciesServiceClient: - * - *

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

Service Description: The game server cluster is used to capture the game server cluster's - * settings which are used to manage game server clusters. + *

Service Description: The game server cluster maps to Kubernetes clusters running Agones and is + * used to manage fleets within clusters. * *

Sample for GameServerClustersServiceClient: * @@ -58,8 +39,8 @@ * ================================== GameServerDeploymentsServiceClient * ================================== * - *

Service Description: The game server deployment is used to configure the deployment of game - * server software to Agones Fleets in game server clusters. + *

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

Sample for GameServerDeploymentsServiceClient: * @@ -74,7 +55,7 @@ * * =================== RealmsServiceClient =================== * - *

Service Description: Realm provides grouping of game server clusters that are serving + *

Service Description: Realm provides grouping of game server clusters that are serving a * particular gamer population. * *

Sample for RealmsServiceClient: @@ -87,22 +68,6 @@ * } * * - * - * ============================ ScalingPoliciesServiceClient ============================ - * - *

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

Sample for ScalingPoliciesServiceClient: - * - *

- * 
- * try (ScalingPoliciesServiceClient scalingPoliciesServiceClient = ScalingPoliciesServiceClient.create()) {
- *   String formattedName = ScalingPoliciesServiceClient.formatScalingPolicyName("[PROJECT]", "[LOCATION]", "[SCALING_POLICY]");
- *   ScalingPolicy response = scalingPoliciesServiceClient.getScalingPolicy(formattedName);
- * }
- * 
- * 
*/ @Generated("by gapic-generator") package com.google.cloud.gaming.v1alpha; diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/AllocationPoliciesServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/AllocationPoliciesServiceStub.java deleted file mode 100644 index 8ef33cfa..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/AllocationPoliciesServiceStub.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.AllocationPoliciesServiceClient.ListAllocationPoliciesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.AllocationPolicy; -import com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest; -import com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest; -import com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest; -import com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest; -import com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse; -import com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Base stub class for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public abstract class AllocationPoliciesServiceStub implements BackgroundResource { - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable - listAllocationPoliciesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listAllocationPoliciesPagedCallable()"); - } - - public UnaryCallable - listAllocationPoliciesCallable() { - throw new UnsupportedOperationException("Not implemented: listAllocationPoliciesCallable()"); - } - - public UnaryCallable getAllocationPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getAllocationPolicyCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createAllocationPolicyOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createAllocationPolicyOperationCallable()"); - } - - public UnaryCallable createAllocationPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: createAllocationPolicyCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteAllocationPolicyOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteAllocationPolicyOperationCallable()"); - } - - public UnaryCallable deleteAllocationPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: deleteAllocationPolicyCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateAllocationPolicyOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateAllocationPolicyOperationCallable()"); - } - - public UnaryCallable updateAllocationPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: updateAllocationPolicyCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/AllocationPoliciesServiceStubSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/AllocationPoliciesServiceStubSettings.java deleted file mode 100644 index 13befbff..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/AllocationPoliciesServiceStubSettings.java +++ /dev/null @@ -1,631 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.AllocationPoliciesServiceClient.ListAllocationPoliciesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.AllocationPolicy; -import com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest; -import com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest; -import com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest; -import com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest; -import com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse; -import com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link AllocationPoliciesServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getAllocationPolicy to 30 seconds: - * - *

- * 
- * AllocationPoliciesServiceStubSettings.Builder allocationPoliciesServiceSettingsBuilder =
- *     AllocationPoliciesServiceStubSettings.newBuilder();
- * allocationPoliciesServiceSettingsBuilder.getAllocationPolicySettings().getRetrySettings().toBuilder()
- *     .setTotalTimeout(Duration.ofSeconds(30));
- * AllocationPoliciesServiceStubSettings allocationPoliciesServiceSettings = allocationPoliciesServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class AllocationPoliciesServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - ListAllocationPoliciesPagedResponse> - listAllocationPoliciesSettings; - private final UnaryCallSettings - getAllocationPolicySettings; - private final UnaryCallSettings - createAllocationPolicySettings; - private final OperationCallSettings - createAllocationPolicyOperationSettings; - private final UnaryCallSettings - deleteAllocationPolicySettings; - private final OperationCallSettings - deleteAllocationPolicyOperationSettings; - private final UnaryCallSettings - updateAllocationPolicySettings; - private final OperationCallSettings - updateAllocationPolicyOperationSettings; - - /** Returns the object with the settings used for calls to listAllocationPolicies. */ - public PagedCallSettings< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - ListAllocationPoliciesPagedResponse> - listAllocationPoliciesSettings() { - return listAllocationPoliciesSettings; - } - - /** Returns the object with the settings used for calls to getAllocationPolicy. */ - public UnaryCallSettings - getAllocationPolicySettings() { - return getAllocationPolicySettings; - } - - /** Returns the object with the settings used for calls to createAllocationPolicy. */ - public UnaryCallSettings - createAllocationPolicySettings() { - return createAllocationPolicySettings; - } - - /** Returns the object with the settings used for calls to createAllocationPolicy. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - createAllocationPolicyOperationSettings() { - return createAllocationPolicyOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteAllocationPolicy. */ - public UnaryCallSettings - deleteAllocationPolicySettings() { - return deleteAllocationPolicySettings; - } - - /** Returns the object with the settings used for calls to deleteAllocationPolicy. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - deleteAllocationPolicyOperationSettings() { - return deleteAllocationPolicyOperationSettings; - } - - /** Returns the object with the settings used for calls to updateAllocationPolicy. */ - public UnaryCallSettings - updateAllocationPolicySettings() { - return updateAllocationPolicySettings; - } - - /** Returns the object with the settings used for calls to updateAllocationPolicy. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - updateAllocationPolicyOperationSettings() { - return updateAllocationPolicyOperationSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public AllocationPoliciesServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcAllocationPoliciesServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); - } - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "gameservices.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(AllocationPoliciesServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected AllocationPoliciesServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listAllocationPoliciesSettings = settingsBuilder.listAllocationPoliciesSettings().build(); - getAllocationPolicySettings = settingsBuilder.getAllocationPolicySettings().build(); - createAllocationPolicySettings = settingsBuilder.createAllocationPolicySettings().build(); - createAllocationPolicyOperationSettings = - settingsBuilder.createAllocationPolicyOperationSettings().build(); - deleteAllocationPolicySettings = settingsBuilder.deleteAllocationPolicySettings().build(); - deleteAllocationPolicyOperationSettings = - settingsBuilder.deleteAllocationPolicyOperationSettings().build(); - updateAllocationPolicySettings = settingsBuilder.updateAllocationPolicySettings().build(); - updateAllocationPolicyOperationSettings = - settingsBuilder.updateAllocationPolicyOperationSettings().build(); - } - - private static final PagedListDescriptor< - ListAllocationPoliciesRequest, ListAllocationPoliciesResponse, AllocationPolicy> - LIST_ALLOCATION_POLICIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListAllocationPoliciesRequest, ListAllocationPoliciesResponse, AllocationPolicy>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAllocationPoliciesRequest injectToken( - ListAllocationPoliciesRequest payload, String token) { - return ListAllocationPoliciesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAllocationPoliciesRequest injectPageSize( - ListAllocationPoliciesRequest payload, int pageSize) { - return ListAllocationPoliciesRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListAllocationPoliciesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAllocationPoliciesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListAllocationPoliciesResponse payload) { - return payload.getAllocationPoliciesList() != null - ? payload.getAllocationPoliciesList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - ListAllocationPoliciesPagedResponse> - LIST_ALLOCATION_POLICIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - ListAllocationPoliciesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListAllocationPoliciesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - AllocationPolicy> - pageContext = - PageContext.create( - callable, LIST_ALLOCATION_POLICIES_PAGE_STR_DESC, request, context); - return ListAllocationPoliciesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Builder for AllocationPoliciesServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - - private final PagedCallSettings.Builder< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - ListAllocationPoliciesPagedResponse> - listAllocationPoliciesSettings; - private final UnaryCallSettings.Builder - getAllocationPolicySettings; - private final UnaryCallSettings.Builder - createAllocationPolicySettings; - private final OperationCallSettings.Builder< - CreateAllocationPolicyRequest, AllocationPolicy, Empty> - createAllocationPolicyOperationSettings; - private final UnaryCallSettings.Builder - deleteAllocationPolicySettings; - private final OperationCallSettings.Builder - deleteAllocationPolicyOperationSettings; - private final UnaryCallSettings.Builder - updateAllocationPolicySettings; - private final OperationCallSettings.Builder< - UpdateAllocationPolicyRequest, AllocationPolicy, Empty> - updateAllocationPolicyOperationSettings; - - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "idempotent", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("default", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listAllocationPoliciesSettings = - PagedCallSettings.newBuilder(LIST_ALLOCATION_POLICIES_PAGE_STR_FACT); - - getAllocationPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createAllocationPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createAllocationPolicyOperationSettings = OperationCallSettings.newBuilder(); - - deleteAllocationPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - deleteAllocationPolicyOperationSettings = OperationCallSettings.newBuilder(); - - updateAllocationPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateAllocationPolicyOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listAllocationPoliciesSettings, - getAllocationPolicySettings, - createAllocationPolicySettings, - deleteAllocationPolicySettings, - updateAllocationPolicySettings); - - initDefaults(this); - } - - private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - - builder - .listAllocationPoliciesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .getAllocationPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .createAllocationPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .deleteAllocationPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .updateAllocationPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .createAllocationPolicyOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AllocationPolicy.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .deleteAllocationPolicyOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .updateAllocationPolicyOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AllocationPolicy.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - protected Builder(AllocationPoliciesServiceStubSettings settings) { - super(settings); - - listAllocationPoliciesSettings = settings.listAllocationPoliciesSettings.toBuilder(); - getAllocationPolicySettings = settings.getAllocationPolicySettings.toBuilder(); - createAllocationPolicySettings = settings.createAllocationPolicySettings.toBuilder(); - createAllocationPolicyOperationSettings = - settings.createAllocationPolicyOperationSettings.toBuilder(); - deleteAllocationPolicySettings = settings.deleteAllocationPolicySettings.toBuilder(); - deleteAllocationPolicyOperationSettings = - settings.deleteAllocationPolicyOperationSettings.toBuilder(); - updateAllocationPolicySettings = settings.updateAllocationPolicySettings.toBuilder(); - updateAllocationPolicyOperationSettings = - settings.updateAllocationPolicyOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listAllocationPoliciesSettings, - getAllocationPolicySettings, - createAllocationPolicySettings, - deleteAllocationPolicySettings, - updateAllocationPolicySettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listAllocationPolicies. */ - public PagedCallSettings.Builder< - ListAllocationPoliciesRequest, - ListAllocationPoliciesResponse, - ListAllocationPoliciesPagedResponse> - listAllocationPoliciesSettings() { - return listAllocationPoliciesSettings; - } - - /** Returns the builder for the settings used for calls to getAllocationPolicy. */ - public UnaryCallSettings.Builder - getAllocationPolicySettings() { - return getAllocationPolicySettings; - } - - /** Returns the builder for the settings used for calls to createAllocationPolicy. */ - public UnaryCallSettings.Builder - createAllocationPolicySettings() { - return createAllocationPolicySettings; - } - - /** Returns the builder for the settings used for calls to createAllocationPolicy. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createAllocationPolicyOperationSettings() { - return createAllocationPolicyOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteAllocationPolicy. */ - public UnaryCallSettings.Builder - deleteAllocationPolicySettings() { - return deleteAllocationPolicySettings; - } - - /** Returns the builder for the settings used for calls to deleteAllocationPolicy. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteAllocationPolicyOperationSettings() { - return deleteAllocationPolicyOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateAllocationPolicy. */ - public UnaryCallSettings.Builder - updateAllocationPolicySettings() { - return updateAllocationPolicySettings; - } - - /** Returns the builder for the settings used for calls to updateAllocationPolicy. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateAllocationPolicyOperationSettings() { - return updateAllocationPolicyOperationSettings; - } - - @Override - public AllocationPoliciesServiceStubSettings build() throws IOException { - return new AllocationPoliciesServiceStubSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStub.java index 10a94a26..0dde6653 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStub.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +27,12 @@ import com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest; import com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest; import com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse; +import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest; +import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse; +import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest; +import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse; +import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest; +import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse; import com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -100,6 +106,27 @@ public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: updateGameServerClusterCallable()"); } + public UnaryCallable< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterCallable() { + throw new UnsupportedOperationException( + "Not implemented: previewCreateGameServerClusterCallable()"); + } + + public UnaryCallable< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterCallable() { + throw new UnsupportedOperationException( + "Not implemented: previewDeleteGameServerClusterCallable()"); + } + + public UnaryCallable< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterCallable() { + throw new UnsupportedOperationException( + "Not implemented: previewUpdateGameServerClusterCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStubSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStubSettings.java index d48b6356..90949c3c 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStubSettings.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,6 +49,12 @@ import com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest; import com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest; import com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse; +import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest; +import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse; +import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest; +import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse; +import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest; +import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse; import com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -115,6 +121,15 @@ public class GameServerClustersServiceStubSettings updateGameServerClusterSettings; private final OperationCallSettings updateGameServerClusterOperationSettings; + private final UnaryCallSettings< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterSettings; + private final UnaryCallSettings< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterSettings; + private final UnaryCallSettings< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterSettings; /** Returns the object with the settings used for calls to listGameServerClusters. */ public PagedCallSettings< @@ -170,6 +185,27 @@ public class GameServerClustersServiceStubSettings return updateGameServerClusterOperationSettings; } + /** Returns the object with the settings used for calls to previewCreateGameServerCluster. */ + public UnaryCallSettings< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterSettings() { + return previewCreateGameServerClusterSettings; + } + + /** Returns the object with the settings used for calls to previewDeleteGameServerCluster. */ + public UnaryCallSettings< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterSettings() { + return previewDeleteGameServerClusterSettings; + } + + /** Returns the object with the settings used for calls to previewUpdateGameServerCluster. */ + public UnaryCallSettings< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterSettings() { + return previewUpdateGameServerClusterSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public GameServerClustersServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -250,6 +286,12 @@ protected GameServerClustersServiceStubSettings(Builder settingsBuilder) throws updateGameServerClusterSettings = settingsBuilder.updateGameServerClusterSettings().build(); updateGameServerClusterOperationSettings = settingsBuilder.updateGameServerClusterOperationSettings().build(); + previewCreateGameServerClusterSettings = + settingsBuilder.previewCreateGameServerClusterSettings().build(); + previewDeleteGameServerClusterSettings = + settingsBuilder.previewDeleteGameServerClusterSettings().build(); + previewUpdateGameServerClusterSettings = + settingsBuilder.previewUpdateGameServerClusterSettings().build(); } private static final PagedListDescriptor< @@ -348,6 +390,15 @@ public static class Builder private final OperationCallSettings.Builder< UpdateGameServerClusterRequest, GameServerCluster, Empty> updateGameServerClusterOperationSettings; + private final UnaryCallSettings.Builder< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterSettings; + private final UnaryCallSettings.Builder< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterSettings; + private final UnaryCallSettings.Builder< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -407,13 +458,22 @@ protected Builder(ClientContext clientContext) { updateGameServerClusterOperationSettings = OperationCallSettings.newBuilder(); + previewCreateGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + previewDeleteGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + previewUpdateGameServerClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = ImmutableList.>of( listGameServerClustersSettings, getGameServerClusterSettings, createGameServerClusterSettings, deleteGameServerClusterSettings, - updateGameServerClusterSettings); + updateGameServerClusterSettings, + previewCreateGameServerClusterSettings, + previewDeleteGameServerClusterSettings, + previewUpdateGameServerClusterSettings); initDefaults(this); } @@ -453,6 +513,21 @@ private static Builder initDefaults(Builder builder) { .updateGameServerClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .previewCreateGameServerClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .previewDeleteGameServerClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .previewUpdateGameServerClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .createGameServerClusterOperationSettings() .setInitialCallSettings( @@ -540,6 +615,12 @@ protected Builder(GameServerClustersServiceStubSettings settings) { updateGameServerClusterSettings = settings.updateGameServerClusterSettings.toBuilder(); updateGameServerClusterOperationSettings = settings.updateGameServerClusterOperationSettings.toBuilder(); + previewCreateGameServerClusterSettings = + settings.previewCreateGameServerClusterSettings.toBuilder(); + previewDeleteGameServerClusterSettings = + settings.previewDeleteGameServerClusterSettings.toBuilder(); + previewUpdateGameServerClusterSettings = + settings.previewUpdateGameServerClusterSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -547,7 +628,10 @@ protected Builder(GameServerClustersServiceStubSettings settings) { getGameServerClusterSettings, createGameServerClusterSettings, deleteGameServerClusterSettings, - updateGameServerClusterSettings); + updateGameServerClusterSettings, + previewCreateGameServerClusterSettings, + previewDeleteGameServerClusterSettings, + previewUpdateGameServerClusterSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -623,6 +707,27 @@ public Builder applyToAllUnaryMethods( return updateGameServerClusterOperationSettings; } + /** Returns the builder for the settings used for calls to previewCreateGameServerCluster. */ + public UnaryCallSettings.Builder< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterSettings() { + return previewCreateGameServerClusterSettings; + } + + /** Returns the builder for the settings used for calls to previewDeleteGameServerCluster. */ + public UnaryCallSettings.Builder< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterSettings() { + return previewDeleteGameServerClusterSettings; + } + + /** Returns the builder for the settings used for calls to previewUpdateGameServerCluster. */ + public UnaryCallSettings.Builder< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterSettings() { + return previewUpdateGameServerClusterSettings; + } + @Override public GameServerClustersServiceStubSettings build() throws IOException { return new GameServerClustersServiceStubSettings(this); diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub.java index 9681206b..44f601ce 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,19 +21,20 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CommitRolloutRequest; import com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest; import com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.DeploymentTarget; +import com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest; +import com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse; import com.google.cloud.gaming.v1alpha.GameServerDeployment; -import com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest; +import com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout; import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest; +import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest; import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest; import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse; -import com.google.cloud.gaming.v1alpha.RevertRolloutRequest; -import com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest; -import com.google.cloud.gaming.v1alpha.StartRolloutRequest; +import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest; +import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse; import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest; +import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -109,48 +110,28 @@ public OperationsStub getOperationsStub() { "Not implemented: updateGameServerDeploymentCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - startRolloutOperationCallable() { - throw new UnsupportedOperationException("Not implemented: startRolloutOperationCallable()"); - } - - public UnaryCallable startRolloutCallable() { - throw new UnsupportedOperationException("Not implemented: startRolloutCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - setRolloutTargetOperationCallable() { - throw new UnsupportedOperationException("Not implemented: setRolloutTargetOperationCallable()"); - } - - public UnaryCallable setRolloutTargetCallable() { - throw new UnsupportedOperationException("Not implemented: setRolloutTargetCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - commitRolloutOperationCallable() { - throw new UnsupportedOperationException("Not implemented: commitRolloutOperationCallable()"); - } - - public UnaryCallable commitRolloutCallable() { - throw new UnsupportedOperationException("Not implemented: commitRolloutCallable()"); + public UnaryCallable + getGameServerDeploymentRolloutCallable() { + throw new UnsupportedOperationException( + "Not implemented: getGameServerDeploymentRolloutCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - revertRolloutOperationCallable() { - throw new UnsupportedOperationException("Not implemented: revertRolloutOperationCallable()"); + public UnaryCallable + updateGameServerDeploymentRolloutCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateGameServerDeploymentRolloutCallable()"); } - public UnaryCallable revertRolloutCallable() { - throw new UnsupportedOperationException("Not implemented: revertRolloutCallable()"); + public UnaryCallable< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutCallable() { + throw new UnsupportedOperationException( + "Not implemented: previewGameServerDeploymentRolloutCallable()"); } - public UnaryCallable getDeploymentTargetCallable() { - throw new UnsupportedOperationException("Not implemented: getDeploymentTargetCallable()"); + public UnaryCallable + fetchDeploymentStateCallable() { + throw new UnsupportedOperationException("Not implemented: fetchDeploymentStateCallable()"); } @Override diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStubSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStubSettings.java index 41f403f3..191c9165 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStubSettings.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,19 +43,20 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CommitRolloutRequest; import com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest; import com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.DeploymentTarget; +import com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest; +import com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse; import com.google.cloud.gaming.v1alpha.GameServerDeployment; -import com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest; +import com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout; import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest; +import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest; import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest; import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse; -import com.google.cloud.gaming.v1alpha.RevertRolloutRequest; -import com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest; -import com.google.cloud.gaming.v1alpha.StartRolloutRequest; +import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest; +import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse; import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest; +import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -123,20 +124,16 @@ public class GameServerDeploymentsServiceStubSettings private final OperationCallSettings< UpdateGameServerDeploymentRequest, GameServerDeployment, Empty> updateGameServerDeploymentOperationSettings; - private final UnaryCallSettings startRolloutSettings; - private final OperationCallSettings - startRolloutOperationSettings; - private final UnaryCallSettings setRolloutTargetSettings; - private final OperationCallSettings - setRolloutTargetOperationSettings; - private final UnaryCallSettings commitRolloutSettings; - private final OperationCallSettings - commitRolloutOperationSettings; - private final UnaryCallSettings revertRolloutSettings; - private final OperationCallSettings - revertRolloutOperationSettings; - private final UnaryCallSettings - getDeploymentTargetSettings; + private final UnaryCallSettings< + GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> + getGameServerDeploymentRolloutSettings; + private final UnaryCallSettings + updateGameServerDeploymentRolloutSettings; + private final UnaryCallSettings< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutSettings; + private final UnaryCallSettings + fetchDeploymentStateSettings; /** Returns the object with the settings used for calls to listGameServerDeployments. */ public PagedCallSettings< @@ -192,58 +189,29 @@ public class GameServerDeploymentsServiceStubSettings return updateGameServerDeploymentOperationSettings; } - /** Returns the object with the settings used for calls to startRollout. */ - public UnaryCallSettings startRolloutSettings() { - return startRolloutSettings; + /** Returns the object with the settings used for calls to getGameServerDeploymentRollout. */ + public UnaryCallSettings + getGameServerDeploymentRolloutSettings() { + return getGameServerDeploymentRolloutSettings; } - /** Returns the object with the settings used for calls to startRollout. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - startRolloutOperationSettings() { - return startRolloutOperationSettings; - } - - /** Returns the object with the settings used for calls to setRolloutTarget. */ - public UnaryCallSettings setRolloutTargetSettings() { - return setRolloutTargetSettings; + /** Returns the object with the settings used for calls to updateGameServerDeploymentRollout. */ + public UnaryCallSettings + updateGameServerDeploymentRolloutSettings() { + return updateGameServerDeploymentRolloutSettings; } - /** Returns the object with the settings used for calls to setRolloutTarget. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - setRolloutTargetOperationSettings() { - return setRolloutTargetOperationSettings; - } - - /** Returns the object with the settings used for calls to commitRollout. */ - public UnaryCallSettings commitRolloutSettings() { - return commitRolloutSettings; - } - - /** Returns the object with the settings used for calls to commitRollout. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - commitRolloutOperationSettings() { - return commitRolloutOperationSettings; + /** Returns the object with the settings used for calls to previewGameServerDeploymentRollout. */ + public UnaryCallSettings< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutSettings() { + return previewGameServerDeploymentRolloutSettings; } - /** Returns the object with the settings used for calls to revertRollout. */ - public UnaryCallSettings revertRolloutSettings() { - return revertRolloutSettings; - } - - /** Returns the object with the settings used for calls to revertRollout. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - revertRolloutOperationSettings() { - return revertRolloutOperationSettings; - } - - /** Returns the object with the settings used for calls to getDeploymentTarget. */ - public UnaryCallSettings - getDeploymentTargetSettings() { - return getDeploymentTargetSettings; + /** Returns the object with the settings used for calls to fetchDeploymentState. */ + public UnaryCallSettings + fetchDeploymentStateSettings() { + return fetchDeploymentStateSettings; } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") @@ -330,15 +298,13 @@ protected GameServerDeploymentsServiceStubSettings(Builder settingsBuilder) thro settingsBuilder.updateGameServerDeploymentSettings().build(); updateGameServerDeploymentOperationSettings = settingsBuilder.updateGameServerDeploymentOperationSettings().build(); - startRolloutSettings = settingsBuilder.startRolloutSettings().build(); - startRolloutOperationSettings = settingsBuilder.startRolloutOperationSettings().build(); - setRolloutTargetSettings = settingsBuilder.setRolloutTargetSettings().build(); - setRolloutTargetOperationSettings = settingsBuilder.setRolloutTargetOperationSettings().build(); - commitRolloutSettings = settingsBuilder.commitRolloutSettings().build(); - commitRolloutOperationSettings = settingsBuilder.commitRolloutOperationSettings().build(); - revertRolloutSettings = settingsBuilder.revertRolloutSettings().build(); - revertRolloutOperationSettings = settingsBuilder.revertRolloutOperationSettings().build(); - getDeploymentTargetSettings = settingsBuilder.getDeploymentTargetSettings().build(); + getGameServerDeploymentRolloutSettings = + settingsBuilder.getGameServerDeploymentRolloutSettings().build(); + updateGameServerDeploymentRolloutSettings = + settingsBuilder.updateGameServerDeploymentRolloutSettings().build(); + previewGameServerDeploymentRolloutSettings = + settingsBuilder.previewGameServerDeploymentRolloutSettings().build(); + fetchDeploymentStateSettings = settingsBuilder.fetchDeploymentStateSettings().build(); } private static final PagedListDescriptor< @@ -442,22 +408,17 @@ public static class Builder private final OperationCallSettings.Builder< UpdateGameServerDeploymentRequest, GameServerDeployment, Empty> updateGameServerDeploymentOperationSettings; - private final UnaryCallSettings.Builder startRolloutSettings; - private final OperationCallSettings.Builder - startRolloutOperationSettings; - private final UnaryCallSettings.Builder - setRolloutTargetSettings; - private final OperationCallSettings.Builder< - SetRolloutTargetRequest, GameServerDeployment, Empty> - setRolloutTargetOperationSettings; - private final UnaryCallSettings.Builder commitRolloutSettings; - private final OperationCallSettings.Builder - commitRolloutOperationSettings; - private final UnaryCallSettings.Builder revertRolloutSettings; - private final OperationCallSettings.Builder - revertRolloutOperationSettings; - private final UnaryCallSettings.Builder - getDeploymentTargetSettings; + private final UnaryCallSettings.Builder< + GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> + getGameServerDeploymentRolloutSettings; + private final UnaryCallSettings.Builder + updateGameServerDeploymentRolloutSettings; + private final UnaryCallSettings.Builder< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutSettings; + private final UnaryCallSettings.Builder< + FetchDeploymentStateRequest, FetchDeploymentStateResponse> + fetchDeploymentStateSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -517,23 +478,13 @@ protected Builder(ClientContext clientContext) { updateGameServerDeploymentOperationSettings = OperationCallSettings.newBuilder(); - startRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - startRolloutOperationSettings = OperationCallSettings.newBuilder(); - - setRolloutTargetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getGameServerDeploymentRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setRolloutTargetOperationSettings = OperationCallSettings.newBuilder(); + updateGameServerDeploymentRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - commitRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + previewGameServerDeploymentRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - commitRolloutOperationSettings = OperationCallSettings.newBuilder(); - - revertRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - revertRolloutOperationSettings = OperationCallSettings.newBuilder(); - - getDeploymentTargetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + fetchDeploymentStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -542,11 +493,10 @@ protected Builder(ClientContext clientContext) { createGameServerDeploymentSettings, deleteGameServerDeploymentSettings, updateGameServerDeploymentSettings, - startRolloutSettings, - setRolloutTargetSettings, - commitRolloutSettings, - revertRolloutSettings, - getDeploymentTargetSettings); + getGameServerDeploymentRolloutSettings, + updateGameServerDeploymentRolloutSettings, + previewGameServerDeploymentRolloutSettings, + fetchDeploymentStateSettings); initDefaults(this); } @@ -588,29 +538,24 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder - .startRolloutSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .getGameServerDeploymentRolloutSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder - .setRolloutTargetSettings() + .updateGameServerDeploymentRolloutSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder - .commitRolloutSettings() + .previewGameServerDeploymentRolloutSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder - .revertRolloutSettings() + .fetchDeploymentStateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .getDeploymentTargetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .createGameServerDeploymentOperationSettings() .setInitialCallSettings( @@ -683,98 +628,6 @@ private static Builder initDefaults(Builder builder) { .setMaxRpcTimeout(Duration.ZERO) // ignored .setTotalTimeout(Duration.ofMillis(300000L)) .build())); - builder - .startRolloutOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(GameServerDeployment.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .setRolloutTargetOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(GameServerDeployment.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .commitRolloutOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(GameServerDeployment.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .revertRolloutOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(GameServerDeployment.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); return builder; } @@ -793,15 +646,13 @@ protected Builder(GameServerDeploymentsServiceStubSettings settings) { updateGameServerDeploymentSettings = settings.updateGameServerDeploymentSettings.toBuilder(); updateGameServerDeploymentOperationSettings = settings.updateGameServerDeploymentOperationSettings.toBuilder(); - startRolloutSettings = settings.startRolloutSettings.toBuilder(); - startRolloutOperationSettings = settings.startRolloutOperationSettings.toBuilder(); - setRolloutTargetSettings = settings.setRolloutTargetSettings.toBuilder(); - setRolloutTargetOperationSettings = settings.setRolloutTargetOperationSettings.toBuilder(); - commitRolloutSettings = settings.commitRolloutSettings.toBuilder(); - commitRolloutOperationSettings = settings.commitRolloutOperationSettings.toBuilder(); - revertRolloutSettings = settings.revertRolloutSettings.toBuilder(); - revertRolloutOperationSettings = settings.revertRolloutOperationSettings.toBuilder(); - getDeploymentTargetSettings = settings.getDeploymentTargetSettings.toBuilder(); + getGameServerDeploymentRolloutSettings = + settings.getGameServerDeploymentRolloutSettings.toBuilder(); + updateGameServerDeploymentRolloutSettings = + settings.updateGameServerDeploymentRolloutSettings.toBuilder(); + previewGameServerDeploymentRolloutSettings = + settings.previewGameServerDeploymentRolloutSettings.toBuilder(); + fetchDeploymentStateSettings = settings.fetchDeploymentStateSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -810,11 +661,10 @@ protected Builder(GameServerDeploymentsServiceStubSettings settings) { createGameServerDeploymentSettings, deleteGameServerDeploymentSettings, updateGameServerDeploymentSettings, - startRolloutSettings, - setRolloutTargetSettings, - commitRolloutSettings, - revertRolloutSettings, - getDeploymentTargetSettings); + getGameServerDeploymentRolloutSettings, + updateGameServerDeploymentRolloutSettings, + previewGameServerDeploymentRolloutSettings, + fetchDeploymentStateSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -892,63 +742,32 @@ public Builder applyToAllUnaryMethods( return updateGameServerDeploymentOperationSettings; } - /** Returns the builder for the settings used for calls to startRollout. */ - public UnaryCallSettings.Builder startRolloutSettings() { - return startRolloutSettings; - } - - /** Returns the builder for the settings used for calls to startRollout. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - startRolloutOperationSettings() { - return startRolloutOperationSettings; - } - - /** Returns the builder for the settings used for calls to setRolloutTarget. */ - public UnaryCallSettings.Builder - setRolloutTargetSettings() { - return setRolloutTargetSettings; - } - - /** Returns the builder for the settings used for calls to setRolloutTarget. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - setRolloutTargetOperationSettings() { - return setRolloutTargetOperationSettings; - } - - /** Returns the builder for the settings used for calls to commitRollout. */ - public UnaryCallSettings.Builder commitRolloutSettings() { - return commitRolloutSettings; + /** Returns the builder for the settings used for calls to getGameServerDeploymentRollout. */ + public UnaryCallSettings.Builder< + GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> + getGameServerDeploymentRolloutSettings() { + return getGameServerDeploymentRolloutSettings; } - /** Returns the builder for the settings used for calls to commitRollout. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - commitRolloutOperationSettings() { - return commitRolloutOperationSettings; - } - - /** Returns the builder for the settings used for calls to revertRollout. */ - public UnaryCallSettings.Builder revertRolloutSettings() { - return revertRolloutSettings; + /** Returns the builder for the settings used for calls to updateGameServerDeploymentRollout. */ + public UnaryCallSettings.Builder + updateGameServerDeploymentRolloutSettings() { + return updateGameServerDeploymentRolloutSettings; } - /** Returns the builder for the settings used for calls to revertRollout. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - revertRolloutOperationSettings() { - return revertRolloutOperationSettings; + /** + * Returns the builder for the settings used for calls to previewGameServerDeploymentRollout. + */ + public UnaryCallSettings.Builder< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutSettings() { + return previewGameServerDeploymentRolloutSettings; } - /** Returns the builder for the settings used for calls to getDeploymentTarget. */ - public UnaryCallSettings.Builder - getDeploymentTargetSettings() { - return getDeploymentTargetSettings; + /** Returns the builder for the settings used for calls to fetchDeploymentState. */ + public UnaryCallSettings.Builder + fetchDeploymentStateSettings() { + return fetchDeploymentStateSettings; } @Override diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcAllocationPoliciesServiceCallableFactory.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcAllocationPoliciesServiceCallableFactory.java deleted file mode 100644 index 4b502aae..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcAllocationPoliciesServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC callable factory implementation for Game Services API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class GrpcAllocationPoliciesServiceCallableFactory implements GrpcStubCallableFactory { - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcAllocationPoliciesServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcAllocationPoliciesServiceStub.java deleted file mode 100644 index e5d7327e..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcAllocationPoliciesServiceStub.java +++ /dev/null @@ -1,380 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.AllocationPoliciesServiceClient.ListAllocationPoliciesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.AllocationPolicy; -import com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest; -import com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest; -import com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest; -import com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest; -import com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse; -import com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC stub implementation for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public class GrpcAllocationPoliciesServiceStub extends AllocationPoliciesServiceStub { - - private static final MethodDescriptor< - ListAllocationPoliciesRequest, ListAllocationPoliciesResponse> - listAllocationPoliciesMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService/ListAllocationPolicies") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAllocationPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAllocationPoliciesResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - getAllocationPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService/GetAllocationPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(GetAllocationPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AllocationPolicy.getDefaultInstance())) - .build(); - private static final MethodDescriptor - createAllocationPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService/CreateAllocationPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateAllocationPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - deleteAllocationPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService/DeleteAllocationPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteAllocationPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - updateAllocationPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService/UpdateAllocationPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateAllocationPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - - private final UnaryCallable - listAllocationPoliciesCallable; - private final UnaryCallable - listAllocationPoliciesPagedCallable; - private final UnaryCallable - getAllocationPolicyCallable; - private final UnaryCallable - createAllocationPolicyCallable; - private final OperationCallable - createAllocationPolicyOperationCallable; - private final UnaryCallable - deleteAllocationPolicyCallable; - private final OperationCallable - deleteAllocationPolicyOperationCallable; - private final UnaryCallable - updateAllocationPolicyCallable; - private final OperationCallable - updateAllocationPolicyOperationCallable; - - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcAllocationPoliciesServiceStub create( - AllocationPoliciesServiceStubSettings settings) throws IOException { - return new GrpcAllocationPoliciesServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcAllocationPoliciesServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcAllocationPoliciesServiceStub( - AllocationPoliciesServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcAllocationPoliciesServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcAllocationPoliciesServiceStub( - AllocationPoliciesServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcAllocationPoliciesServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcAllocationPoliciesServiceStub( - AllocationPoliciesServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcAllocationPoliciesServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcAllocationPoliciesServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcAllocationPoliciesServiceStub( - AllocationPoliciesServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listAllocationPoliciesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listAllocationPoliciesMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListAllocationPoliciesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getAllocationPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAllocationPolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetAllocationPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - createAllocationPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createAllocationPolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateAllocationPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - deleteAllocationPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAllocationPolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteAllocationPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - updateAllocationPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAllocationPolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateAllocationPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "allocation_policy.name", - String.valueOf(request.getAllocationPolicy().getName())); - return params.build(); - } - }) - .build(); - - this.listAllocationPoliciesCallable = - callableFactory.createUnaryCallable( - listAllocationPoliciesTransportSettings, - settings.listAllocationPoliciesSettings(), - clientContext); - this.listAllocationPoliciesPagedCallable = - callableFactory.createPagedCallable( - listAllocationPoliciesTransportSettings, - settings.listAllocationPoliciesSettings(), - clientContext); - this.getAllocationPolicyCallable = - callableFactory.createUnaryCallable( - getAllocationPolicyTransportSettings, - settings.getAllocationPolicySettings(), - clientContext); - this.createAllocationPolicyCallable = - callableFactory.createUnaryCallable( - createAllocationPolicyTransportSettings, - settings.createAllocationPolicySettings(), - clientContext); - this.createAllocationPolicyOperationCallable = - callableFactory.createOperationCallable( - createAllocationPolicyTransportSettings, - settings.createAllocationPolicyOperationSettings(), - clientContext, - this.operationsStub); - this.deleteAllocationPolicyCallable = - callableFactory.createUnaryCallable( - deleteAllocationPolicyTransportSettings, - settings.deleteAllocationPolicySettings(), - clientContext); - this.deleteAllocationPolicyOperationCallable = - callableFactory.createOperationCallable( - deleteAllocationPolicyTransportSettings, - settings.deleteAllocationPolicyOperationSettings(), - clientContext, - this.operationsStub); - this.updateAllocationPolicyCallable = - callableFactory.createUnaryCallable( - updateAllocationPolicyTransportSettings, - settings.updateAllocationPolicySettings(), - clientContext); - this.updateAllocationPolicyOperationCallable = - callableFactory.createOperationCallable( - updateAllocationPolicyTransportSettings, - settings.updateAllocationPolicyOperationSettings(), - clientContext, - this.operationsStub); - - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - public UnaryCallable - listAllocationPoliciesPagedCallable() { - return listAllocationPoliciesPagedCallable; - } - - public UnaryCallable - listAllocationPoliciesCallable() { - return listAllocationPoliciesCallable; - } - - public UnaryCallable getAllocationPolicyCallable() { - return getAllocationPolicyCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createAllocationPolicyOperationCallable() { - return createAllocationPolicyOperationCallable; - } - - public UnaryCallable createAllocationPolicyCallable() { - return createAllocationPolicyCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteAllocationPolicyOperationCallable() { - return deleteAllocationPolicyOperationCallable; - } - - public UnaryCallable deleteAllocationPolicyCallable() { - return deleteAllocationPolicyCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateAllocationPolicyOperationCallable() { - return updateAllocationPolicyOperationCallable; - } - - public UnaryCallable updateAllocationPolicyCallable() { - return updateAllocationPolicyCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceCallableFactory.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceCallableFactory.java index 067728d0..d90c1c41 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceCallableFactory.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceStub.java index e7abca7a..3102db99 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceStub.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,6 +32,12 @@ import com.google.cloud.gaming.v1alpha.GetGameServerClusterRequest; import com.google.cloud.gaming.v1alpha.ListGameServerClustersRequest; import com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse; +import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest; +import com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse; +import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest; +import com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse; +import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest; +import com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse; import com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -107,6 +113,51 @@ public class GrpcGameServerClustersServiceStub extends GameServerClustersService ProtoUtils.marshaller(UpdateGameServerClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gaming.v1alpha.GameServerClustersService/PreviewCreateGameServerCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(PreviewCreateGameServerClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + PreviewCreateGameServerClusterResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gaming.v1alpha.GameServerClustersService/PreviewDeleteGameServerCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(PreviewDeleteGameServerClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + PreviewDeleteGameServerClusterResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gaming.v1alpha.GameServerClustersService/PreviewUpdateGameServerCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(PreviewUpdateGameServerClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + PreviewUpdateGameServerClusterResponse.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -129,6 +180,15 @@ public class GrpcGameServerClustersServiceStub extends GameServerClustersService updateGameServerClusterCallable; private final OperationCallable updateGameServerClusterOperationCallable; + private final UnaryCallable< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterCallable; + private final UnaryCallable< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterCallable; + private final UnaryCallable< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterCallable; private final GrpcStubCallableFactory callableFactory; @@ -246,6 +306,59 @@ public Map extract(UpdateGameServerClusterRequest request) { } }) .build(); + GrpcCallSettings + previewCreateGameServerClusterTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(previewCreateGameServerClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + PreviewCreateGameServerClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + previewDeleteGameServerClusterTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(previewDeleteGameServerClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + PreviewDeleteGameServerClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + previewUpdateGameServerClusterTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(previewUpdateGameServerClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + PreviewUpdateGameServerClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "game_server_cluster.name", + String.valueOf(request.getGameServerCluster().getName())); + return params.build(); + } + }) + .build(); this.listGameServerClustersCallable = callableFactory.createUnaryCallable( @@ -295,6 +408,21 @@ public Map extract(UpdateGameServerClusterRequest request) { settings.updateGameServerClusterOperationSettings(), clientContext, this.operationsStub); + this.previewCreateGameServerClusterCallable = + callableFactory.createUnaryCallable( + previewCreateGameServerClusterTransportSettings, + settings.previewCreateGameServerClusterSettings(), + clientContext); + this.previewDeleteGameServerClusterCallable = + callableFactory.createUnaryCallable( + previewDeleteGameServerClusterTransportSettings, + settings.previewDeleteGameServerClusterSettings(), + clientContext); + this.previewUpdateGameServerClusterCallable = + callableFactory.createUnaryCallable( + previewUpdateGameServerClusterTransportSettings, + settings.previewUpdateGameServerClusterSettings(), + clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -352,6 +480,24 @@ public GrpcOperationsStub getOperationsStub() { return updateGameServerClusterCallable; } + public UnaryCallable< + PreviewCreateGameServerClusterRequest, PreviewCreateGameServerClusterResponse> + previewCreateGameServerClusterCallable() { + return previewCreateGameServerClusterCallable; + } + + public UnaryCallable< + PreviewDeleteGameServerClusterRequest, PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerClusterCallable() { + return previewDeleteGameServerClusterCallable; + } + + public UnaryCallable< + PreviewUpdateGameServerClusterRequest, PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerClusterCallable() { + return previewUpdateGameServerClusterCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceCallableFactory.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceCallableFactory.java index 34250323..4fcc4cdb 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceCallableFactory.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub.java index aec437fc..d9663385 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,19 +26,20 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CommitRolloutRequest; import com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest; import com.google.cloud.gaming.v1alpha.DeleteGameServerDeploymentRequest; -import com.google.cloud.gaming.v1alpha.DeploymentTarget; +import com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest; +import com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse; import com.google.cloud.gaming.v1alpha.GameServerDeployment; -import com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest; +import com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout; import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRequest; +import com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest; import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsRequest; import com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse; -import com.google.cloud.gaming.v1alpha.RevertRolloutRequest; -import com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest; -import com.google.cloud.gaming.v1alpha.StartRolloutRequest; +import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest; +import com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse; import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest; +import com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; @@ -114,54 +115,57 @@ public class GrpcGameServerDeploymentsServiceStub extends GameServerDeploymentsS ProtoUtils.marshaller(UpdateGameServerDeploymentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - startRolloutMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/StartRollout") - .setRequestMarshaller(ProtoUtils.marshaller(StartRolloutRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - setRolloutTargetMethodDescriptor = - MethodDescriptor.newBuilder() + private static final MethodDescriptor< + GetGameServerDeploymentRolloutRequest, GameServerDeploymentRollout> + getGameServerDeploymentRolloutMethodDescriptor = + MethodDescriptor + .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/SetRolloutTarget") + "google.cloud.gaming.v1alpha.GameServerDeploymentsService/GetGameServerDeploymentRollout") .setRequestMarshaller( - ProtoUtils.marshaller(SetRolloutTargetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + ProtoUtils.marshaller(GetGameServerDeploymentRolloutRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GameServerDeploymentRollout.getDefaultInstance())) .build(); - private static final MethodDescriptor - commitRolloutMethodDescriptor = - MethodDescriptor.newBuilder() + private static final MethodDescriptor + updateGameServerDeploymentRolloutMethodDescriptor = + MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/CommitRollout") + "google.cloud.gaming.v1alpha.GameServerDeploymentsService/UpdateGameServerDeploymentRollout") .setRequestMarshaller( - ProtoUtils.marshaller(CommitRolloutRequest.getDefaultInstance())) + ProtoUtils.marshaller( + UpdateGameServerDeploymentRolloutRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - revertRolloutMethodDescriptor = - MethodDescriptor.newBuilder() + private static final MethodDescriptor< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutMethodDescriptor = + MethodDescriptor + . + newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/RevertRollout") + "google.cloud.gaming.v1alpha.GameServerDeploymentsService/PreviewGameServerDeploymentRollout") .setRequestMarshaller( - ProtoUtils.marshaller(RevertRolloutRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + ProtoUtils.marshaller( + PreviewGameServerDeploymentRolloutRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + PreviewGameServerDeploymentRolloutResponse.getDefaultInstance())) .build(); - private static final MethodDescriptor - getDeploymentTargetMethodDescriptor = - MethodDescriptor.newBuilder() + private static final MethodDescriptor + fetchDeploymentStateMethodDescriptor = + MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService/GetDeploymentTarget") + "google.cloud.gaming.v1alpha.GameServerDeploymentsService/FetchDeploymentState") .setRequestMarshaller( - ProtoUtils.marshaller(GetDeploymentTargetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DeploymentTarget.getDefaultInstance())) + ProtoUtils.marshaller(FetchDeploymentStateRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchDeploymentStateResponse.getDefaultInstance())) .build(); private final BackgroundResource backgroundResources; @@ -186,20 +190,15 @@ public class GrpcGameServerDeploymentsServiceStub extends GameServerDeploymentsS updateGameServerDeploymentCallable; private final OperationCallable updateGameServerDeploymentOperationCallable; - private final UnaryCallable startRolloutCallable; - private final OperationCallable - startRolloutOperationCallable; - private final UnaryCallable setRolloutTargetCallable; - private final OperationCallable - setRolloutTargetOperationCallable; - private final UnaryCallable commitRolloutCallable; - private final OperationCallable - commitRolloutOperationCallable; - private final UnaryCallable revertRolloutCallable; - private final OperationCallable - revertRolloutOperationCallable; - private final UnaryCallable - getDeploymentTargetCallable; + private final UnaryCallable + getGameServerDeploymentRolloutCallable; + private final UnaryCallable + updateGameServerDeploymentRolloutCallable; + private final UnaryCallable< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutCallable; + private final UnaryCallable + fetchDeploymentStateCallable; private final GrpcStubCallableFactory callableFactory; @@ -322,66 +321,64 @@ public Map extract( } }) .build(); - GrpcCallSettings startRolloutTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(startRolloutMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(StartRolloutRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setRolloutTargetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setRolloutTargetMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetRolloutTargetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings commitRolloutTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(commitRolloutMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CommitRolloutRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings revertRolloutTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(revertRolloutMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RevertRolloutRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getDeploymentTargetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDeploymentTargetMethodDescriptor) + GrpcCallSettings + getGameServerDeploymentRolloutTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getGameServerDeploymentRolloutMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { + new RequestParamsExtractor() { @Override - public Map extract(GetDeploymentTargetRequest request) { + public Map extract( + GetGameServerDeploymentRolloutRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateGameServerDeploymentRolloutTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGameServerDeploymentRolloutMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + UpdateGameServerDeploymentRolloutRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("rollout.name", String.valueOf(request.getRollout().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(previewGameServerDeploymentRolloutMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + PreviewGameServerDeploymentRolloutRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("rollout.name", String.valueOf(request.getRollout().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + fetchDeploymentStateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchDeploymentStateMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(FetchDeploymentStateRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("name", String.valueOf(request.getName())); return params.build(); @@ -437,46 +434,25 @@ public Map extract(GetDeploymentTargetRequest request) { settings.updateGameServerDeploymentOperationSettings(), clientContext, this.operationsStub); - this.startRolloutCallable = - callableFactory.createUnaryCallable( - startRolloutTransportSettings, settings.startRolloutSettings(), clientContext); - this.startRolloutOperationCallable = - callableFactory.createOperationCallable( - startRolloutTransportSettings, - settings.startRolloutOperationSettings(), - clientContext, - this.operationsStub); - this.setRolloutTargetCallable = + this.getGameServerDeploymentRolloutCallable = callableFactory.createUnaryCallable( - setRolloutTargetTransportSettings, settings.setRolloutTargetSettings(), clientContext); - this.setRolloutTargetOperationCallable = - callableFactory.createOperationCallable( - setRolloutTargetTransportSettings, - settings.setRolloutTargetOperationSettings(), - clientContext, - this.operationsStub); - this.commitRolloutCallable = + getGameServerDeploymentRolloutTransportSettings, + settings.getGameServerDeploymentRolloutSettings(), + clientContext); + this.updateGameServerDeploymentRolloutCallable = callableFactory.createUnaryCallable( - commitRolloutTransportSettings, settings.commitRolloutSettings(), clientContext); - this.commitRolloutOperationCallable = - callableFactory.createOperationCallable( - commitRolloutTransportSettings, - settings.commitRolloutOperationSettings(), - clientContext, - this.operationsStub); - this.revertRolloutCallable = + updateGameServerDeploymentRolloutTransportSettings, + settings.updateGameServerDeploymentRolloutSettings(), + clientContext); + this.previewGameServerDeploymentRolloutCallable = callableFactory.createUnaryCallable( - revertRolloutTransportSettings, settings.revertRolloutSettings(), clientContext); - this.revertRolloutOperationCallable = - callableFactory.createOperationCallable( - revertRolloutTransportSettings, - settings.revertRolloutOperationSettings(), - clientContext, - this.operationsStub); - this.getDeploymentTargetCallable = + previewGameServerDeploymentRolloutTransportSettings, + settings.previewGameServerDeploymentRolloutSettings(), + clientContext); + this.fetchDeploymentStateCallable = callableFactory.createUnaryCallable( - getDeploymentTargetTransportSettings, - settings.getDeploymentTargetSettings(), + fetchDeploymentStateTransportSettings, + settings.fetchDeploymentStateSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -535,48 +511,25 @@ public GrpcOperationsStub getOperationsStub() { return updateGameServerDeploymentCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - startRolloutOperationCallable() { - return startRolloutOperationCallable; - } - - public UnaryCallable startRolloutCallable() { - return startRolloutCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - setRolloutTargetOperationCallable() { - return setRolloutTargetOperationCallable; + public UnaryCallable + getGameServerDeploymentRolloutCallable() { + return getGameServerDeploymentRolloutCallable; } - public UnaryCallable setRolloutTargetCallable() { - return setRolloutTargetCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - commitRolloutOperationCallable() { - return commitRolloutOperationCallable; - } - - public UnaryCallable commitRolloutCallable() { - return commitRolloutCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - revertRolloutOperationCallable() { - return revertRolloutOperationCallable; + public UnaryCallable + updateGameServerDeploymentRolloutCallable() { + return updateGameServerDeploymentRolloutCallable; } - public UnaryCallable revertRolloutCallable() { - return revertRolloutCallable; + public UnaryCallable< + PreviewGameServerDeploymentRolloutRequest, PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRolloutCallable() { + return previewGameServerDeploymentRolloutCallable; } - public UnaryCallable getDeploymentTargetCallable() { - return getDeploymentTargetCallable; + public UnaryCallable + fetchDeploymentStateCallable() { + return fetchDeploymentStateCallable; } @Override diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceCallableFactory.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceCallableFactory.java index 7855a0b5..2d512f23 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceCallableFactory.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceStub.java index 464d127b..77dd1600 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceStub.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,6 +31,8 @@ import com.google.cloud.gaming.v1alpha.GetRealmRequest; import com.google.cloud.gaming.v1alpha.ListRealmsRequest; import com.google.cloud.gaming.v1alpha.ListRealmsResponse; +import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest; +import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse; import com.google.cloud.gaming.v1alpha.Realm; import com.google.cloud.gaming.v1alpha.UpdateRealmRequest; import com.google.common.collect.ImmutableMap; @@ -90,6 +92,16 @@ public class GrpcRealmsServiceStub extends RealmsServiceStub { .setRequestMarshaller(ProtoUtils.marshaller(UpdateRealmRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + previewRealmUpdateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gaming.v1alpha.RealmsService/PreviewRealmUpdate") + .setRequestMarshaller( + ProtoUtils.marshaller(PreviewRealmUpdateRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(PreviewRealmUpdateResponse.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -103,6 +115,8 @@ public class GrpcRealmsServiceStub extends RealmsServiceStub { private final OperationCallable deleteRealmOperationCallable; private final UnaryCallable updateRealmCallable; private final OperationCallable updateRealmOperationCallable; + private final UnaryCallable + previewRealmUpdateCallable; private final GrpcStubCallableFactory callableFactory; @@ -209,6 +223,20 @@ public Map extract(UpdateRealmRequest request) { } }) .build(); + GrpcCallSettings + previewRealmUpdateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(previewRealmUpdateMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(PreviewRealmUpdateRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("realm.name", String.valueOf(request.getRealm().getName())); + return params.build(); + } + }) + .build(); this.listRealmsCallable = callableFactory.createUnaryCallable( @@ -246,6 +274,11 @@ public Map extract(UpdateRealmRequest request) { settings.updateRealmOperationSettings(), clientContext, this.operationsStub); + this.previewRealmUpdateCallable = + callableFactory.createUnaryCallable( + previewRealmUpdateTransportSettings, + settings.previewRealmUpdateSettings(), + clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -294,6 +327,11 @@ public UnaryCallable updateRealmCallable() { return updateRealmCallable; } + public UnaryCallable + previewRealmUpdateCallable() { + return previewRealmUpdateCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcScalingPoliciesServiceCallableFactory.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcScalingPoliciesServiceCallableFactory.java deleted file mode 100644 index 1b06d5e5..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcScalingPoliciesServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC callable factory implementation for Game Services API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class GrpcScalingPoliciesServiceCallableFactory implements GrpcStubCallableFactory { - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcScalingPoliciesServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcScalingPoliciesServiceStub.java deleted file mode 100644 index 664e108a..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcScalingPoliciesServiceStub.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.ScalingPoliciesServiceClient.ListScalingPoliciesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest; -import com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest; -import com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest; -import com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest; -import com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse; -import com.google.cloud.gaming.v1alpha.ScalingPolicy; -import com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC stub implementation for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public class GrpcScalingPoliciesServiceStub extends ScalingPoliciesServiceStub { - - private static final MethodDescriptor - listScalingPoliciesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService/ListScalingPolicies") - .setRequestMarshaller( - ProtoUtils.marshaller(ListScalingPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListScalingPoliciesResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor - getScalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService/GetScalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(GetScalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ScalingPolicy.getDefaultInstance())) - .build(); - private static final MethodDescriptor - createScalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService/CreateScalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateScalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - deleteScalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService/DeleteScalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteScalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - private static final MethodDescriptor - updateScalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService/UpdateScalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateScalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - - private final UnaryCallable - listScalingPoliciesCallable; - private final UnaryCallable - listScalingPoliciesPagedCallable; - private final UnaryCallable getScalingPolicyCallable; - private final UnaryCallable createScalingPolicyCallable; - private final OperationCallable - createScalingPolicyOperationCallable; - private final UnaryCallable deleteScalingPolicyCallable; - private final OperationCallable - deleteScalingPolicyOperationCallable; - private final UnaryCallable updateScalingPolicyCallable; - private final OperationCallable - updateScalingPolicyOperationCallable; - - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcScalingPoliciesServiceStub create( - ScalingPoliciesServiceStubSettings settings) throws IOException { - return new GrpcScalingPoliciesServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcScalingPoliciesServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcScalingPoliciesServiceStub( - ScalingPoliciesServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcScalingPoliciesServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcScalingPoliciesServiceStub( - ScalingPoliciesServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcScalingPoliciesServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcScalingPoliciesServiceStub( - ScalingPoliciesServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcScalingPoliciesServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcScalingPoliciesServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcScalingPoliciesServiceStub( - ScalingPoliciesServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listScalingPoliciesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listScalingPoliciesMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListScalingPoliciesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings getScalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getScalingPolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetScalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings createScalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createScalingPolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateScalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings deleteScalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteScalingPolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteScalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); - GrpcCallSettings updateScalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateScalingPolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateScalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "scaling_policy.name", - String.valueOf(request.getScalingPolicy().getName())); - return params.build(); - } - }) - .build(); - - this.listScalingPoliciesCallable = - callableFactory.createUnaryCallable( - listScalingPoliciesTransportSettings, - settings.listScalingPoliciesSettings(), - clientContext); - this.listScalingPoliciesPagedCallable = - callableFactory.createPagedCallable( - listScalingPoliciesTransportSettings, - settings.listScalingPoliciesSettings(), - clientContext); - this.getScalingPolicyCallable = - callableFactory.createUnaryCallable( - getScalingPolicyTransportSettings, settings.getScalingPolicySettings(), clientContext); - this.createScalingPolicyCallable = - callableFactory.createUnaryCallable( - createScalingPolicyTransportSettings, - settings.createScalingPolicySettings(), - clientContext); - this.createScalingPolicyOperationCallable = - callableFactory.createOperationCallable( - createScalingPolicyTransportSettings, - settings.createScalingPolicyOperationSettings(), - clientContext, - this.operationsStub); - this.deleteScalingPolicyCallable = - callableFactory.createUnaryCallable( - deleteScalingPolicyTransportSettings, - settings.deleteScalingPolicySettings(), - clientContext); - this.deleteScalingPolicyOperationCallable = - callableFactory.createOperationCallable( - deleteScalingPolicyTransportSettings, - settings.deleteScalingPolicyOperationSettings(), - clientContext, - this.operationsStub); - this.updateScalingPolicyCallable = - callableFactory.createUnaryCallable( - updateScalingPolicyTransportSettings, - settings.updateScalingPolicySettings(), - clientContext); - this.updateScalingPolicyOperationCallable = - callableFactory.createOperationCallable( - updateScalingPolicyTransportSettings, - settings.updateScalingPolicyOperationSettings(), - clientContext, - this.operationsStub); - - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - public UnaryCallable - listScalingPoliciesPagedCallable() { - return listScalingPoliciesPagedCallable; - } - - public UnaryCallable - listScalingPoliciesCallable() { - return listScalingPoliciesCallable; - } - - public UnaryCallable getScalingPolicyCallable() { - return getScalingPolicyCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createScalingPolicyOperationCallable() { - return createScalingPolicyOperationCallable; - } - - public UnaryCallable createScalingPolicyCallable() { - return createScalingPolicyCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteScalingPolicyOperationCallable() { - return deleteScalingPolicyOperationCallable; - } - - public UnaryCallable deleteScalingPolicyCallable() { - return deleteScalingPolicyCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateScalingPolicyOperationCallable() { - return updateScalingPolicyOperationCallable; - } - - public UnaryCallable updateScalingPolicyCallable() { - return updateScalingPolicyCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStub.java index 320b3575..80093fe4 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStub.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,8 @@ import com.google.cloud.gaming.v1alpha.GetRealmRequest; import com.google.cloud.gaming.v1alpha.ListRealmsRequest; import com.google.cloud.gaming.v1alpha.ListRealmsResponse; +import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest; +import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse; import com.google.cloud.gaming.v1alpha.Realm; import com.google.cloud.gaming.v1alpha.UpdateRealmRequest; import com.google.longrunning.Operation; @@ -87,6 +89,11 @@ public UnaryCallable updateRealmCallable() { throw new UnsupportedOperationException("Not implemented: updateRealmCallable()"); } + public UnaryCallable + previewRealmUpdateCallable() { + throw new UnsupportedOperationException("Not implemented: previewRealmUpdateCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStubSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStubSettings.java index f414c654..f3ffe61c 100644 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStubSettings.java +++ b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,8 @@ import com.google.cloud.gaming.v1alpha.GetRealmRequest; import com.google.cloud.gaming.v1alpha.ListRealmsRequest; import com.google.cloud.gaming.v1alpha.ListRealmsResponse; +import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest; +import com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse; import com.google.cloud.gaming.v1alpha.Realm; import com.google.cloud.gaming.v1alpha.UpdateRealmRequest; import com.google.common.collect.ImmutableList; @@ -107,6 +109,8 @@ public class RealmsServiceStubSettings extends StubSettings updateRealmSettings; private final OperationCallSettings updateRealmOperationSettings; + private final UnaryCallSettings + previewRealmUpdateSettings; /** Returns the object with the settings used for calls to listRealms. */ public PagedCallSettings @@ -152,6 +156,12 @@ public OperationCallSettings updateRealmOperat return updateRealmOperationSettings; } + /** Returns the object with the settings used for calls to previewRealmUpdate. */ + public UnaryCallSettings + previewRealmUpdateSettings() { + return previewRealmUpdateSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public RealmsServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -229,6 +239,7 @@ protected RealmsServiceStubSettings(Builder settingsBuilder) throws IOException deleteRealmOperationSettings = settingsBuilder.deleteRealmOperationSettings().build(); updateRealmSettings = settingsBuilder.updateRealmSettings().build(); updateRealmOperationSettings = settingsBuilder.updateRealmOperationSettings().build(); + previewRealmUpdateSettings = settingsBuilder.previewRealmUpdateSettings().build(); } private static final PagedListDescriptor @@ -301,6 +312,8 @@ public static class Builder extends StubSettings.Builder updateRealmSettings; private final OperationCallSettings.Builder updateRealmOperationSettings; + private final UnaryCallSettings.Builder + previewRealmUpdateSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -359,13 +372,16 @@ protected Builder(ClientContext clientContext) { updateRealmOperationSettings = OperationCallSettings.newBuilder(); + previewRealmUpdateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = ImmutableList.>of( listRealmsSettings, getRealmSettings, createRealmSettings, deleteRealmSettings, - updateRealmSettings); + updateRealmSettings, + previewRealmUpdateSettings); initDefaults(this); } @@ -405,6 +421,11 @@ private static Builder initDefaults(Builder builder) { .updateRealmSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .previewRealmUpdateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .createRealmOperationSettings() .setInitialCallSettings( @@ -486,6 +507,7 @@ protected Builder(RealmsServiceStubSettings settings) { deleteRealmOperationSettings = settings.deleteRealmOperationSettings.toBuilder(); updateRealmSettings = settings.updateRealmSettings.toBuilder(); updateRealmOperationSettings = settings.updateRealmOperationSettings.toBuilder(); + previewRealmUpdateSettings = settings.previewRealmUpdateSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -493,7 +515,8 @@ protected Builder(RealmsServiceStubSettings settings) { getRealmSettings, createRealmSettings, deleteRealmSettings, - updateRealmSettings); + updateRealmSettings, + previewRealmUpdateSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -562,6 +585,12 @@ public UnaryCallSettings.Builder updateRealmSetti return updateRealmOperationSettings; } + /** Returns the builder for the settings used for calls to previewRealmUpdate. */ + public UnaryCallSettings.Builder + previewRealmUpdateSettings() { + return previewRealmUpdateSettings; + } + @Override public RealmsServiceStubSettings build() throws IOException { return new RealmsServiceStubSettings(this); diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/ScalingPoliciesServiceStub.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/ScalingPoliciesServiceStub.java deleted file mode 100644 index 4a55cb1f..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/ScalingPoliciesServiceStub.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.ScalingPoliciesServiceClient.ListScalingPoliciesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest; -import com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest; -import com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest; -import com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest; -import com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse; -import com.google.cloud.gaming.v1alpha.ScalingPolicy; -import com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Base stub class for Game Services API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public abstract class ScalingPoliciesServiceStub implements BackgroundResource { - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable - listScalingPoliciesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listScalingPoliciesPagedCallable()"); - } - - public UnaryCallable - listScalingPoliciesCallable() { - throw new UnsupportedOperationException("Not implemented: listScalingPoliciesCallable()"); - } - - public UnaryCallable getScalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getScalingPolicyCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - createScalingPolicyOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createScalingPolicyOperationCallable()"); - } - - public UnaryCallable createScalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: createScalingPolicyCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - deleteScalingPolicyOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteScalingPolicyOperationCallable()"); - } - - public UnaryCallable deleteScalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: deleteScalingPolicyCallable()"); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - updateScalingPolicyOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateScalingPolicyOperationCallable()"); - } - - public UnaryCallable updateScalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: updateScalingPolicyCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/ScalingPoliciesServiceStubSettings.java b/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/ScalingPoliciesServiceStubSettings.java deleted file mode 100644 index 156f3cb3..00000000 --- a/google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/ScalingPoliciesServiceStubSettings.java +++ /dev/null @@ -1,611 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha.stub; - -import static com.google.cloud.gaming.v1alpha.ScalingPoliciesServiceClient.ListScalingPoliciesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest; -import com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest; -import com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest; -import com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest; -import com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse; -import com.google.cloud.gaming.v1alpha.ScalingPolicy; -import com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link ScalingPoliciesServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (gameservices.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getScalingPolicy to 30 seconds: - * - *

- * 
- * ScalingPoliciesServiceStubSettings.Builder scalingPoliciesServiceSettingsBuilder =
- *     ScalingPoliciesServiceStubSettings.newBuilder();
- * scalingPoliciesServiceSettingsBuilder.getScalingPolicySettings().getRetrySettings().toBuilder()
- *     .setTotalTimeout(Duration.ofSeconds(30));
- * ScalingPoliciesServiceStubSettings scalingPoliciesServiceSettings = scalingPoliciesServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class ScalingPoliciesServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListScalingPoliciesRequest, ListScalingPoliciesResponse, ListScalingPoliciesPagedResponse> - listScalingPoliciesSettings; - private final UnaryCallSettings getScalingPolicySettings; - private final UnaryCallSettings - createScalingPolicySettings; - private final OperationCallSettings - createScalingPolicyOperationSettings; - private final UnaryCallSettings - deleteScalingPolicySettings; - private final OperationCallSettings - deleteScalingPolicyOperationSettings; - private final UnaryCallSettings - updateScalingPolicySettings; - private final OperationCallSettings - updateScalingPolicyOperationSettings; - - /** Returns the object with the settings used for calls to listScalingPolicies. */ - public PagedCallSettings< - ListScalingPoliciesRequest, ListScalingPoliciesResponse, ListScalingPoliciesPagedResponse> - listScalingPoliciesSettings() { - return listScalingPoliciesSettings; - } - - /** Returns the object with the settings used for calls to getScalingPolicy. */ - public UnaryCallSettings getScalingPolicySettings() { - return getScalingPolicySettings; - } - - /** Returns the object with the settings used for calls to createScalingPolicy. */ - public UnaryCallSettings createScalingPolicySettings() { - return createScalingPolicySettings; - } - - /** Returns the object with the settings used for calls to createScalingPolicy. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - createScalingPolicyOperationSettings() { - return createScalingPolicyOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteScalingPolicy. */ - public UnaryCallSettings deleteScalingPolicySettings() { - return deleteScalingPolicySettings; - } - - /** Returns the object with the settings used for calls to deleteScalingPolicy. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - deleteScalingPolicyOperationSettings() { - return deleteScalingPolicyOperationSettings; - } - - /** Returns the object with the settings used for calls to updateScalingPolicy. */ - public UnaryCallSettings updateScalingPolicySettings() { - return updateScalingPolicySettings; - } - - /** Returns the object with the settings used for calls to updateScalingPolicy. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - updateScalingPolicyOperationSettings() { - return updateScalingPolicyOperationSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public ScalingPoliciesServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcScalingPoliciesServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); - } - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "gameservices.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(ScalingPoliciesServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ScalingPoliciesServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listScalingPoliciesSettings = settingsBuilder.listScalingPoliciesSettings().build(); - getScalingPolicySettings = settingsBuilder.getScalingPolicySettings().build(); - createScalingPolicySettings = settingsBuilder.createScalingPolicySettings().build(); - createScalingPolicyOperationSettings = - settingsBuilder.createScalingPolicyOperationSettings().build(); - deleteScalingPolicySettings = settingsBuilder.deleteScalingPolicySettings().build(); - deleteScalingPolicyOperationSettings = - settingsBuilder.deleteScalingPolicyOperationSettings().build(); - updateScalingPolicySettings = settingsBuilder.updateScalingPolicySettings().build(); - updateScalingPolicyOperationSettings = - settingsBuilder.updateScalingPolicyOperationSettings().build(); - } - - private static final PagedListDescriptor< - ListScalingPoliciesRequest, ListScalingPoliciesResponse, ScalingPolicy> - LIST_SCALING_POLICIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListScalingPoliciesRequest, ListScalingPoliciesResponse, ScalingPolicy>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListScalingPoliciesRequest injectToken( - ListScalingPoliciesRequest payload, String token) { - return ListScalingPoliciesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListScalingPoliciesRequest injectPageSize( - ListScalingPoliciesRequest payload, int pageSize) { - return ListScalingPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListScalingPoliciesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListScalingPoliciesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListScalingPoliciesResponse payload) { - return payload.getScalingPoliciesList() != null - ? payload.getScalingPoliciesList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListScalingPoliciesRequest, ListScalingPoliciesResponse, ListScalingPoliciesPagedResponse> - LIST_SCALING_POLICIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListScalingPoliciesRequest, - ListScalingPoliciesResponse, - ListScalingPoliciesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListScalingPoliciesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_SCALING_POLICIES_PAGE_STR_DESC, request, context); - return ListScalingPoliciesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Builder for ScalingPoliciesServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - - private final PagedCallSettings.Builder< - ListScalingPoliciesRequest, - ListScalingPoliciesResponse, - ListScalingPoliciesPagedResponse> - listScalingPoliciesSettings; - private final UnaryCallSettings.Builder - getScalingPolicySettings; - private final UnaryCallSettings.Builder - createScalingPolicySettings; - private final OperationCallSettings.Builder - createScalingPolicyOperationSettings; - private final UnaryCallSettings.Builder - deleteScalingPolicySettings; - private final OperationCallSettings.Builder - deleteScalingPolicyOperationSettings; - private final UnaryCallSettings.Builder - updateScalingPolicySettings; - private final OperationCallSettings.Builder - updateScalingPolicyOperationSettings; - - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "idempotent", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("default", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listScalingPoliciesSettings = - PagedCallSettings.newBuilder(LIST_SCALING_POLICIES_PAGE_STR_FACT); - - getScalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createScalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - createScalingPolicyOperationSettings = OperationCallSettings.newBuilder(); - - deleteScalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - deleteScalingPolicyOperationSettings = OperationCallSettings.newBuilder(); - - updateScalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - updateScalingPolicyOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listScalingPoliciesSettings, - getScalingPolicySettings, - createScalingPolicySettings, - deleteScalingPolicySettings, - updateScalingPolicySettings); - - initDefaults(this); - } - - private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - - builder - .listScalingPoliciesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .getScalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .createScalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .deleteScalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .updateScalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .createScalingPolicyOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ScalingPolicy.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .deleteScalingPolicyOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - builder - .updateScalingPolicyOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ScalingPolicy.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(Empty.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - protected Builder(ScalingPoliciesServiceStubSettings settings) { - super(settings); - - listScalingPoliciesSettings = settings.listScalingPoliciesSettings.toBuilder(); - getScalingPolicySettings = settings.getScalingPolicySettings.toBuilder(); - createScalingPolicySettings = settings.createScalingPolicySettings.toBuilder(); - createScalingPolicyOperationSettings = - settings.createScalingPolicyOperationSettings.toBuilder(); - deleteScalingPolicySettings = settings.deleteScalingPolicySettings.toBuilder(); - deleteScalingPolicyOperationSettings = - settings.deleteScalingPolicyOperationSettings.toBuilder(); - updateScalingPolicySettings = settings.updateScalingPolicySettings.toBuilder(); - updateScalingPolicyOperationSettings = - settings.updateScalingPolicyOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listScalingPoliciesSettings, - getScalingPolicySettings, - createScalingPolicySettings, - deleteScalingPolicySettings, - updateScalingPolicySettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listScalingPolicies. */ - public PagedCallSettings.Builder< - ListScalingPoliciesRequest, - ListScalingPoliciesResponse, - ListScalingPoliciesPagedResponse> - listScalingPoliciesSettings() { - return listScalingPoliciesSettings; - } - - /** Returns the builder for the settings used for calls to getScalingPolicy. */ - public UnaryCallSettings.Builder - getScalingPolicySettings() { - return getScalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to createScalingPolicy. */ - public UnaryCallSettings.Builder - createScalingPolicySettings() { - return createScalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to createScalingPolicy. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createScalingPolicyOperationSettings() { - return createScalingPolicyOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteScalingPolicy. */ - public UnaryCallSettings.Builder - deleteScalingPolicySettings() { - return deleteScalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to deleteScalingPolicy. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteScalingPolicyOperationSettings() { - return deleteScalingPolicyOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateScalingPolicy. */ - public UnaryCallSettings.Builder - updateScalingPolicySettings() { - return updateScalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to updateScalingPolicy. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateScalingPolicyOperationSettings() { - return updateScalingPolicyOperationSettings; - } - - @Override - public ScalingPoliciesServiceStubSettings build() throws IOException { - return new ScalingPoliciesServiceStubSettings(this); - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceClientTest.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceClientTest.java deleted file mode 100644 index 9ee56674..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceClientTest.java +++ /dev/null @@ -1,364 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.AllocationPoliciesServiceClient.ListAllocationPoliciesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.Status; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@javax.annotation.Generated("by GAPIC") -public class AllocationPoliciesServiceClientTest { - private static MockAllocationPoliciesService mockAllocationPoliciesService; - private static MockGameServerClustersService mockGameServerClustersService; - private static MockGameServerDeploymentsService mockGameServerDeploymentsService; - private static MockRealmsService mockRealmsService; - private static MockScalingPoliciesService mockScalingPoliciesService; - private static MockServiceHelper serviceHelper; - private AllocationPoliciesServiceClient client; - private LocalChannelProvider channelProvider; - - @BeforeClass - public static void startStaticServer() { - mockAllocationPoliciesService = new MockAllocationPoliciesService(); - mockGameServerClustersService = new MockGameServerClustersService(); - mockGameServerDeploymentsService = new MockGameServerDeploymentsService(); - mockRealmsService = new MockRealmsService(); - mockScalingPoliciesService = new MockScalingPoliciesService(); - serviceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList( - mockAllocationPoliciesService, - mockGameServerClustersService, - mockGameServerDeploymentsService, - mockRealmsService, - mockScalingPoliciesService)); - serviceHelper.start(); - } - - @AfterClass - public static void stopServer() { - serviceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); - AllocationPoliciesServiceSettings settings = - AllocationPoliciesServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AllocationPoliciesServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - @SuppressWarnings("all") - public void listAllocationPoliciesTest() { - String nextPageToken = ""; - AllocationPolicy allocationPoliciesElement = AllocationPolicy.newBuilder().build(); - List allocationPolicies = Arrays.asList(allocationPoliciesElement); - ListAllocationPoliciesResponse expectedResponse = - ListAllocationPoliciesResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllAllocationPolicies(allocationPolicies) - .build(); - mockAllocationPoliciesService.addResponse(expectedResponse); - - String formattedParent = - AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - - ListAllocationPoliciesPagedResponse pagedListResponse = - client.listAllocationPolicies(formattedParent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAllocationPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockAllocationPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAllocationPoliciesRequest actualRequest = - (ListAllocationPoliciesRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listAllocationPoliciesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockAllocationPoliciesService.addException(exception); - - try { - String formattedParent = - AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - - client.listAllocationPolicies(formattedParent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void getAllocationPolicyTest() { - String name2 = "name2-1052831874"; - int weight = 791592328; - AllocationPolicy expectedResponse = - AllocationPolicy.newBuilder().setName(name2).setWeight(weight).build(); - mockAllocationPoliciesService.addResponse(expectedResponse); - - String formattedName = - AllocationPoliciesServiceClient.formatAllocationPolicyName( - "[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]"); - - AllocationPolicy actualResponse = client.getAllocationPolicy(formattedName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAllocationPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAllocationPolicyRequest actualRequest = (GetAllocationPolicyRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getAllocationPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockAllocationPoliciesService.addException(exception); - - try { - String formattedName = - AllocationPoliciesServiceClient.formatAllocationPolicyName( - "[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]"); - - client.getAllocationPolicy(formattedName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void createAllocationPolicyTest() throws Exception { - String name = "name3373707"; - int weight = 791592328; - AllocationPolicy expectedResponse = - AllocationPolicy.newBuilder().setName(name).setWeight(weight).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createAllocationPolicyTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockAllocationPoliciesService.addResponse(resultOperation); - - String formattedParent = - AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - String allocationPolicyId = "allocationPolicyId-850912599"; - AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build(); - - AllocationPolicy actualResponse = - client - .createAllocationPolicyAsync(formattedParent, allocationPolicyId, allocationPolicy) - .get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAllocationPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAllocationPolicyRequest actualRequest = - (CreateAllocationPolicyRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertEquals(allocationPolicyId, actualRequest.getAllocationPolicyId()); - Assert.assertEquals(allocationPolicy, actualRequest.getAllocationPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createAllocationPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockAllocationPoliciesService.addException(exception); - - try { - String formattedParent = - AllocationPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - String allocationPolicyId = "allocationPolicyId-850912599"; - AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build(); - - client - .createAllocationPolicyAsync(formattedParent, allocationPolicyId, allocationPolicy) - .get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void deleteAllocationPolicyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteAllocationPolicyTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockAllocationPoliciesService.addResponse(resultOperation); - - String formattedName = - AllocationPoliciesServiceClient.formatAllocationPolicyName( - "[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]"); - - Empty actualResponse = client.deleteAllocationPolicyAsync(formattedName).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAllocationPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAllocationPolicyRequest actualRequest = - (DeleteAllocationPolicyRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void deleteAllocationPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockAllocationPoliciesService.addException(exception); - - try { - String formattedName = - AllocationPoliciesServiceClient.formatAllocationPolicyName( - "[PROJECT]", "[LOCATION]", "[ALLOCATION_POLICY]"); - - client.deleteAllocationPolicyAsync(formattedName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void updateAllocationPolicyTest() throws Exception { - String name = "name3373707"; - int weight = 791592328; - AllocationPolicy expectedResponse = - AllocationPolicy.newBuilder().setName(name).setWeight(weight).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateAllocationPolicyTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockAllocationPoliciesService.addResponse(resultOperation); - - AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - AllocationPolicy actualResponse = - client.updateAllocationPolicyAsync(allocationPolicy, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAllocationPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateAllocationPolicyRequest actualRequest = - (UpdateAllocationPolicyRequest) actualRequests.get(0); - - Assert.assertEquals(allocationPolicy, actualRequest.getAllocationPolicy()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateAllocationPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockAllocationPoliciesService.addException(exception); - - try { - AllocationPolicy allocationPolicy = AllocationPolicy.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateAllocationPolicyAsync(allocationPolicy, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClientTest.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClientTest.java index 6bb2f288..0673d087 100644 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClientTest.java +++ b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,31 +47,25 @@ @javax.annotation.Generated("by GAPIC") public class GameServerClustersServiceClientTest { - private static MockAllocationPoliciesService mockAllocationPoliciesService; private static MockGameServerClustersService mockGameServerClustersService; private static MockGameServerDeploymentsService mockGameServerDeploymentsService; private static MockRealmsService mockRealmsService; - private static MockScalingPoliciesService mockScalingPoliciesService; private static MockServiceHelper serviceHelper; private GameServerClustersServiceClient client; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { - mockAllocationPoliciesService = new MockAllocationPoliciesService(); mockGameServerClustersService = new MockGameServerClustersService(); mockGameServerDeploymentsService = new MockGameServerDeploymentsService(); mockRealmsService = new MockRealmsService(); - mockScalingPoliciesService = new MockScalingPoliciesService(); serviceHelper = new MockServiceHelper( UUID.randomUUID().toString(), Arrays.asList( - mockAllocationPoliciesService, mockGameServerClustersService, mockGameServerDeploymentsService, - mockRealmsService, - mockScalingPoliciesService)); + mockRealmsService)); serviceHelper.start(); } @@ -153,7 +147,14 @@ public void listGameServerClustersExceptionTest() throws Exception { @SuppressWarnings("all") public void getGameServerClusterTest() { String name2 = "name2-1052831874"; - GameServerCluster expectedResponse = GameServerCluster.newBuilder().setName(name2).build(); + String etag = "etag3123477"; + String description = "description-1724546052"; + GameServerCluster expectedResponse = + GameServerCluster.newBuilder() + .setName(name2) + .setEtag(etag) + .setDescription(description) + .build(); mockGameServerClustersService.addResponse(expectedResponse); String formattedName = @@ -196,7 +197,14 @@ public void getGameServerClusterExceptionTest() throws Exception { @SuppressWarnings("all") public void createGameServerClusterTest() throws Exception { String name = "name3373707"; - GameServerCluster expectedResponse = GameServerCluster.newBuilder().setName(name).build(); + String etag = "etag3123477"; + String description = "description-1724546052"; + GameServerCluster expectedResponse = + GameServerCluster.newBuilder() + .setName(name) + .setEtag(etag) + .setDescription(description) + .build(); Operation resultOperation = Operation.newBuilder() .setName("createGameServerClusterTest") @@ -308,7 +316,14 @@ public void deleteGameServerClusterExceptionTest() throws Exception { @SuppressWarnings("all") public void updateGameServerClusterTest() throws Exception { String name = "name3373707"; - GameServerCluster expectedResponse = GameServerCluster.newBuilder().setName(name).build(); + String etag = "etag3123477"; + String description = "description-1724546052"; + GameServerCluster expectedResponse = + GameServerCluster.newBuilder() + .setName(name) + .setEtag(etag) + .setDescription(description) + .build(); Operation resultOperation = Operation.newBuilder() .setName("updateGameServerClusterTest") diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClientTest.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClientTest.java index d2a96cdc..bcc860fc 100644 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClientTest.java +++ b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,7 +34,6 @@ import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.UUID; @@ -48,31 +47,25 @@ @javax.annotation.Generated("by GAPIC") public class GameServerDeploymentsServiceClientTest { - private static MockAllocationPoliciesService mockAllocationPoliciesService; private static MockGameServerClustersService mockGameServerClustersService; private static MockGameServerDeploymentsService mockGameServerDeploymentsService; private static MockRealmsService mockRealmsService; - private static MockScalingPoliciesService mockScalingPoliciesService; private static MockServiceHelper serviceHelper; private GameServerDeploymentsServiceClient client; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { - mockAllocationPoliciesService = new MockAllocationPoliciesService(); mockGameServerClustersService = new MockGameServerClustersService(); mockGameServerDeploymentsService = new MockGameServerDeploymentsService(); mockRealmsService = new MockRealmsService(); - mockScalingPoliciesService = new MockScalingPoliciesService(); serviceHelper = new MockServiceHelper( UUID.randomUUID().toString(), Arrays.asList( - mockAllocationPoliciesService, mockGameServerClustersService, mockGameServerDeploymentsService, - mockRealmsService, - mockScalingPoliciesService)); + mockRealmsService)); serviceHelper.start(); } @@ -154,8 +147,14 @@ public void listGameServerDeploymentsExceptionTest() throws Exception { @SuppressWarnings("all") public void getGameServerDeploymentTest() { String name2 = "name2-1052831874"; + String etag = "etag3123477"; + String description = "description-1724546052"; GameServerDeployment expectedResponse = - GameServerDeployment.newBuilder().setName(name2).build(); + GameServerDeployment.newBuilder() + .setName(name2) + .setEtag(etag) + .setDescription(description) + .build(); mockGameServerDeploymentsService.addResponse(expectedResponse); String formattedName = @@ -199,7 +198,14 @@ public void getGameServerDeploymentExceptionTest() throws Exception { @SuppressWarnings("all") public void createGameServerDeploymentTest() throws Exception { String name = "name3373707"; - GameServerDeployment expectedResponse = GameServerDeployment.newBuilder().setName(name).build(); + String etag = "etag3123477"; + String description = "description-1724546052"; + GameServerDeployment expectedResponse = + GameServerDeployment.newBuilder() + .setName(name) + .setEtag(etag) + .setDescription(description) + .build(); Operation resultOperation = Operation.newBuilder() .setName("createGameServerDeploymentTest") @@ -311,7 +317,14 @@ public void deleteGameServerDeploymentExceptionTest() throws Exception { @SuppressWarnings("all") public void updateGameServerDeploymentTest() throws Exception { String name = "name3373707"; - GameServerDeployment expectedResponse = GameServerDeployment.newBuilder().setName(name).build(); + String etag = "etag3123477"; + String description = "description-1724546052"; + GameServerDeployment expectedResponse = + GameServerDeployment.newBuilder() + .setName(name) + .setEtag(etag) + .setDescription(description) + .build(); Operation resultOperation = Operation.newBuilder() .setName("updateGameServerDeploymentTest") @@ -358,263 +371,4 @@ public void updateGameServerDeploymentExceptionTest() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } - - @Test - @SuppressWarnings("all") - public void startRolloutTest() throws Exception { - String name2 = "name2-1052831874"; - GameServerDeployment expectedResponse = - GameServerDeployment.newBuilder().setName(name2).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("startRolloutTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerDeploymentsService.addResponse(resultOperation); - - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - GameServerTemplate newGameServerTemplate = GameServerTemplate.newBuilder().build(); - - GameServerDeployment actualResponse = - client.startRolloutAsync(formattedName, newGameServerTemplate).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - StartRolloutRequest actualRequest = (StartRolloutRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertEquals(newGameServerTemplate, actualRequest.getNewGameServerTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void startRolloutExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - GameServerTemplate newGameServerTemplate = GameServerTemplate.newBuilder().build(); - - client.startRolloutAsync(formattedName, newGameServerTemplate).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void setRolloutTargetTest() throws Exception { - String name2 = "name2-1052831874"; - GameServerDeployment expectedResponse = - GameServerDeployment.newBuilder().setName(name2).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("setRolloutTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerDeploymentsService.addResponse(resultOperation); - - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - List clusterPercentageSelector = new ArrayList<>(); - - GameServerDeployment actualResponse = - client.setRolloutTargetAsync(formattedName, clusterPercentageSelector).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetRolloutTargetRequest actualRequest = (SetRolloutTargetRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertEquals( - clusterPercentageSelector, actualRequest.getClusterPercentageSelectorList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void setRolloutTargetExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - List clusterPercentageSelector = new ArrayList<>(); - - client.setRolloutTargetAsync(formattedName, clusterPercentageSelector).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void commitRolloutTest() throws Exception { - String name2 = "name2-1052831874"; - GameServerDeployment expectedResponse = - GameServerDeployment.newBuilder().setName(name2).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("commitRolloutTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerDeploymentsService.addResponse(resultOperation); - - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - GameServerDeployment actualResponse = client.commitRolloutAsync(formattedName).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CommitRolloutRequest actualRequest = (CommitRolloutRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void commitRolloutExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - client.commitRolloutAsync(formattedName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void revertRolloutTest() throws Exception { - String name2 = "name2-1052831874"; - GameServerDeployment expectedResponse = - GameServerDeployment.newBuilder().setName(name2).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("revertRolloutTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockGameServerDeploymentsService.addResponse(resultOperation); - - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - GameServerDeployment actualResponse = client.revertRolloutAsync(formattedName).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RevertRolloutRequest actualRequest = (RevertRolloutRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void revertRolloutExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - client.revertRolloutAsync(formattedName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void getDeploymentTargetTest() { - DeploymentTarget expectedResponse = DeploymentTarget.newBuilder().build(); - mockGameServerDeploymentsService.addResponse(expectedResponse); - - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - DeploymentTarget actualResponse = client.getDeploymentTarget(formattedName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockGameServerDeploymentsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDeploymentTargetRequest actualRequest = (GetDeploymentTargetRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getDeploymentTargetExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockGameServerDeploymentsService.addException(exception); - - try { - String formattedName = - GameServerDeploymentsServiceClient.formatGameServerDeploymentName( - "[PROJECT]", "[LOCATION]", "[GAME_SERVER_DEPLOYMENT]"); - - client.getDeploymentTarget(formattedName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } } diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockAllocationPoliciesService.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockAllocationPoliciesService.java deleted file mode 100644 index 9af14d6c..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockAllocationPoliciesService.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockAllocationPoliciesService implements MockGrpcService { - private final MockAllocationPoliciesServiceImpl serviceImpl; - - public MockAllocationPoliciesService() { - serviceImpl = new MockAllocationPoliciesServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockAllocationPoliciesServiceImpl.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockAllocationPoliciesServiceImpl.java deleted file mode 100644 index 7e8b0e8c..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockAllocationPoliciesServiceImpl.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.cloud.gaming.v1alpha.AllocationPoliciesServiceGrpc.AllocationPoliciesServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockAllocationPoliciesServiceImpl extends AllocationPoliciesServiceImplBase { - private List requests; - private Queue responses; - - public MockAllocationPoliciesServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listAllocationPolicies( - ListAllocationPoliciesRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListAllocationPoliciesResponse) { - requests.add(request); - responseObserver.onNext((ListAllocationPoliciesResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getAllocationPolicy( - GetAllocationPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof AllocationPolicy) { - requests.add(request); - responseObserver.onNext((AllocationPolicy) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void createAllocationPolicy( - CreateAllocationPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void deleteAllocationPolicy( - DeleteAllocationPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateAllocationPolicy( - UpdateAllocationPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersService.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersService.java index 2f92f4b1..031e87b3 100644 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersService.java +++ b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersService.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersServiceImpl.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersServiceImpl.java index 27ab3f0a..8d43a14e 100644 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersServiceImpl.java +++ b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,6 +103,22 @@ public void createGameServerCluster( } } + @Override + public void previewCreateGameServerCluster( + PreviewCreateGameServerClusterRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof PreviewCreateGameServerClusterResponse) { + requests.add(request); + responseObserver.onNext((PreviewCreateGameServerClusterResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + @Override public void deleteGameServerCluster( DeleteGameServerClusterRequest request, StreamObserver responseObserver) { @@ -118,6 +134,22 @@ public void deleteGameServerCluster( } } + @Override + public void previewDeleteGameServerCluster( + PreviewDeleteGameServerClusterRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof PreviewDeleteGameServerClusterResponse) { + requests.add(request); + responseObserver.onNext((PreviewDeleteGameServerClusterResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + @Override public void updateGameServerCluster( UpdateGameServerClusterRequest request, StreamObserver responseObserver) { @@ -132,4 +164,20 @@ public void updateGameServerCluster( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void previewUpdateGameServerCluster( + PreviewUpdateGameServerClusterRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof PreviewUpdateGameServerClusterResponse) { + requests.add(request); + responseObserver.onNext((PreviewUpdateGameServerClusterResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsService.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsService.java index 08d81768..8c1d3d2a 100644 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsService.java +++ b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsService.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsServiceImpl.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsServiceImpl.java index 0f0ce9f7..fd098d6e 100644 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsServiceImpl.java +++ b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -135,12 +135,13 @@ public void updateGameServerDeployment( } @Override - public void startRollout( - StartRolloutRequest request, StreamObserver responseObserver) { + public void getGameServerDeploymentRollout( + GetGameServerDeploymentRolloutRequest request, + StreamObserver responseObserver) { Object response = responses.remove(); - if (response instanceof Operation) { + if (response instanceof GameServerDeploymentRollout) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext((GameServerDeploymentRollout) response); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError((Exception) response); @@ -150,8 +151,9 @@ public void startRollout( } @Override - public void setRolloutTarget( - SetRolloutTargetRequest request, StreamObserver responseObserver) { + public void updateGameServerDeploymentRollout( + UpdateGameServerDeploymentRolloutRequest request, + StreamObserver responseObserver) { Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); @@ -165,27 +167,13 @@ public void setRolloutTarget( } @Override - public void commitRollout( - CommitRolloutRequest request, StreamObserver responseObserver) { + public void previewGameServerDeploymentRollout( + PreviewGameServerDeploymentRolloutRequest request, + StreamObserver responseObserver) { Object response = responses.remove(); - if (response instanceof Operation) { + if (response instanceof PreviewGameServerDeploymentRolloutResponse) { requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void revertRollout( - RevertRolloutRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext((PreviewGameServerDeploymentRolloutResponse) response); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError((Exception) response); @@ -195,12 +183,13 @@ public void revertRollout( } @Override - public void getDeploymentTarget( - GetDeploymentTargetRequest request, StreamObserver responseObserver) { + public void fetchDeploymentState( + FetchDeploymentStateRequest request, + StreamObserver responseObserver) { Object response = responses.remove(); - if (response instanceof DeploymentTarget) { + if (response instanceof FetchDeploymentStateResponse) { requests.add(request); - responseObserver.onNext((DeploymentTarget) response); + responseObserver.onNext((FetchDeploymentStateResponse) response); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError((Exception) response); diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsService.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsService.java index bce493ec..1b4c251b 100644 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsService.java +++ b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsService.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsServiceImpl.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsServiceImpl.java index d4a1d17c..d55028a9 100644 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsServiceImpl.java +++ b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -127,4 +127,20 @@ public void updateRealm(UpdateRealmRequest request, StreamObserver re responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void previewRealmUpdate( + PreviewRealmUpdateRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof PreviewRealmUpdateResponse) { + requests.add(request); + responseObserver.onNext((PreviewRealmUpdateResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockScalingPoliciesService.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockScalingPoliciesService.java deleted file mode 100644 index d30386d6..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockScalingPoliciesService.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockScalingPoliciesService implements MockGrpcService { - private final MockScalingPoliciesServiceImpl serviceImpl; - - public MockScalingPoliciesService() { - serviceImpl = new MockScalingPoliciesServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockScalingPoliciesServiceImpl.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockScalingPoliciesServiceImpl.java deleted file mode 100644 index bac8f0c9..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockScalingPoliciesServiceImpl.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import com.google.api.core.BetaApi; -import com.google.cloud.gaming.v1alpha.ScalingPoliciesServiceGrpc.ScalingPoliciesServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockScalingPoliciesServiceImpl extends ScalingPoliciesServiceImplBase { - private List requests; - private Queue responses; - - public MockScalingPoliciesServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listScalingPolicies( - ListScalingPoliciesRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListScalingPoliciesResponse) { - requests.add(request); - responseObserver.onNext((ListScalingPoliciesResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getScalingPolicy( - GetScalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ScalingPolicy) { - requests.add(request); - responseObserver.onNext((ScalingPolicy) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void createScalingPolicy( - CreateScalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void deleteScalingPolicy( - DeleteScalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void updateScalingPolicy( - UpdateScalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext((Operation) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } -} diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/RealmsServiceClientTest.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/RealmsServiceClientTest.java index 96f22dfa..b5597c62 100644 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/RealmsServiceClientTest.java +++ b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/RealmsServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,31 +47,25 @@ @javax.annotation.Generated("by GAPIC") public class RealmsServiceClientTest { - private static MockAllocationPoliciesService mockAllocationPoliciesService; private static MockGameServerClustersService mockGameServerClustersService; private static MockGameServerDeploymentsService mockGameServerDeploymentsService; private static MockRealmsService mockRealmsService; - private static MockScalingPoliciesService mockScalingPoliciesService; private static MockServiceHelper serviceHelper; private RealmsServiceClient client; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { - mockAllocationPoliciesService = new MockAllocationPoliciesService(); mockGameServerClustersService = new MockGameServerClustersService(); mockGameServerDeploymentsService = new MockGameServerDeploymentsService(); mockRealmsService = new MockRealmsService(); - mockScalingPoliciesService = new MockScalingPoliciesService(); serviceHelper = new MockServiceHelper( UUID.randomUUID().toString(), Arrays.asList( - mockAllocationPoliciesService, mockGameServerClustersService, mockGameServerDeploymentsService, - mockRealmsService, - mockScalingPoliciesService)); + mockRealmsService)); serviceHelper.start(); } @@ -150,7 +144,15 @@ public void listRealmsExceptionTest() throws Exception { public void getRealmTest() { String name2 = "name2-1052831874"; String timeZone = "timeZone36848094"; - Realm expectedResponse = Realm.newBuilder().setName(name2).setTimeZone(timeZone).build(); + String etag = "etag3123477"; + String description = "description-1724546052"; + Realm expectedResponse = + Realm.newBuilder() + .setName(name2) + .setTimeZone(timeZone) + .setEtag(etag) + .setDescription(description) + .build(); mockRealmsService.addResponse(expectedResponse); String formattedName = @@ -192,7 +194,15 @@ public void getRealmExceptionTest() throws Exception { public void createRealmTest() throws Exception { String name = "name3373707"; String timeZone = "timeZone36848094"; - Realm expectedResponse = Realm.newBuilder().setName(name).setTimeZone(timeZone).build(); + String etag = "etag3123477"; + String description = "description-1724546052"; + Realm expectedResponse = + Realm.newBuilder() + .setName(name) + .setTimeZone(timeZone) + .setEtag(etag) + .setDescription(description) + .build(); Operation resultOperation = Operation.newBuilder() .setName("createRealmTest") @@ -294,7 +304,15 @@ public void deleteRealmExceptionTest() throws Exception { public void updateRealmTest() throws Exception { String name = "name3373707"; String timeZone = "timeZone36848094"; - Realm expectedResponse = Realm.newBuilder().setName(name).setTimeZone(timeZone).build(); + String etag = "etag3123477"; + String description = "description-1724546052"; + Realm expectedResponse = + Realm.newBuilder() + .setName(name) + .setTimeZone(timeZone) + .setEtag(etag) + .setDescription(description) + .build(); Operation resultOperation = Operation.newBuilder() .setName("updateRealmTest") diff --git a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceClientTest.java b/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceClientTest.java deleted file mode 100644 index 12da4bda..00000000 --- a/google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceClientTest.java +++ /dev/null @@ -1,364 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import static com.google.cloud.gaming.v1alpha.ScalingPoliciesServiceClient.ListScalingPoliciesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.Status; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@javax.annotation.Generated("by GAPIC") -public class ScalingPoliciesServiceClientTest { - private static MockAllocationPoliciesService mockAllocationPoliciesService; - private static MockGameServerClustersService mockGameServerClustersService; - private static MockGameServerDeploymentsService mockGameServerDeploymentsService; - private static MockRealmsService mockRealmsService; - private static MockScalingPoliciesService mockScalingPoliciesService; - private static MockServiceHelper serviceHelper; - private ScalingPoliciesServiceClient client; - private LocalChannelProvider channelProvider; - - @BeforeClass - public static void startStaticServer() { - mockAllocationPoliciesService = new MockAllocationPoliciesService(); - mockGameServerClustersService = new MockGameServerClustersService(); - mockGameServerDeploymentsService = new MockGameServerDeploymentsService(); - mockRealmsService = new MockRealmsService(); - mockScalingPoliciesService = new MockScalingPoliciesService(); - serviceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList( - mockAllocationPoliciesService, - mockGameServerClustersService, - mockGameServerDeploymentsService, - mockRealmsService, - mockScalingPoliciesService)); - serviceHelper.start(); - } - - @AfterClass - public static void stopServer() { - serviceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); - ScalingPoliciesServiceSettings settings = - ScalingPoliciesServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ScalingPoliciesServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - @SuppressWarnings("all") - public void listScalingPoliciesTest() { - String nextPageToken = ""; - ScalingPolicy scalingPoliciesElement = ScalingPolicy.newBuilder().build(); - List scalingPolicies = Arrays.asList(scalingPoliciesElement); - ListScalingPoliciesResponse expectedResponse = - ListScalingPoliciesResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllScalingPolicies(scalingPolicies) - .build(); - mockScalingPoliciesService.addResponse(expectedResponse); - - String formattedParent = - ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - - ListScalingPoliciesPagedResponse pagedListResponse = - client.listScalingPolicies(formattedParent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getScalingPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockScalingPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListScalingPoliciesRequest actualRequest = (ListScalingPoliciesRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void listScalingPoliciesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockScalingPoliciesService.addException(exception); - - try { - String formattedParent = - ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - - client.listScalingPolicies(formattedParent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void getScalingPolicyTest() { - String name2 = "name2-1052831874"; - String gameServerDeployment = "gameServerDeployment840476212"; - ScalingPolicy expectedResponse = - ScalingPolicy.newBuilder() - .setName(name2) - .setGameServerDeployment(gameServerDeployment) - .build(); - mockScalingPoliciesService.addResponse(expectedResponse); - - String formattedName = - ScalingPoliciesServiceClient.formatScalingPolicyName( - "[PROJECT]", "[LOCATION]", "[SCALING_POLICY]"); - - ScalingPolicy actualResponse = client.getScalingPolicy(formattedName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockScalingPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetScalingPolicyRequest actualRequest = (GetScalingPolicyRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void getScalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockScalingPoliciesService.addException(exception); - - try { - String formattedName = - ScalingPoliciesServiceClient.formatScalingPolicyName( - "[PROJECT]", "[LOCATION]", "[SCALING_POLICY]"); - - client.getScalingPolicy(formattedName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void createScalingPolicyTest() throws Exception { - String name = "name3373707"; - String gameServerDeployment = "gameServerDeployment840476212"; - ScalingPolicy expectedResponse = - ScalingPolicy.newBuilder() - .setName(name) - .setGameServerDeployment(gameServerDeployment) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createScalingPolicyTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockScalingPoliciesService.addResponse(resultOperation); - - String formattedParent = - ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - String scalingPolicyId = "scalingPolicyId1901060240"; - ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build(); - - ScalingPolicy actualResponse = - client.createScalingPolicyAsync(formattedParent, scalingPolicyId, scalingPolicy).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockScalingPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateScalingPolicyRequest actualRequest = (CreateScalingPolicyRequest) actualRequests.get(0); - - Assert.assertEquals(formattedParent, actualRequest.getParent()); - Assert.assertEquals(scalingPolicyId, actualRequest.getScalingPolicyId()); - Assert.assertEquals(scalingPolicy, actualRequest.getScalingPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void createScalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockScalingPoliciesService.addException(exception); - - try { - String formattedParent = - ScalingPoliciesServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); - String scalingPolicyId = "scalingPolicyId1901060240"; - ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build(); - - client.createScalingPolicyAsync(formattedParent, scalingPolicyId, scalingPolicy).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void deleteScalingPolicyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteScalingPolicyTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockScalingPoliciesService.addResponse(resultOperation); - - String formattedName = - ScalingPoliciesServiceClient.formatScalingPolicyName( - "[PROJECT]", "[LOCATION]", "[SCALING_POLICY]"); - - Empty actualResponse = client.deleteScalingPolicyAsync(formattedName).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockScalingPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteScalingPolicyRequest actualRequest = (DeleteScalingPolicyRequest) actualRequests.get(0); - - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void deleteScalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockScalingPoliciesService.addException(exception); - - try { - String formattedName = - ScalingPoliciesServiceClient.formatScalingPolicyName( - "[PROJECT]", "[LOCATION]", "[SCALING_POLICY]"); - - client.deleteScalingPolicyAsync(formattedName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - @SuppressWarnings("all") - public void updateScalingPolicyTest() throws Exception { - String name = "name3373707"; - String gameServerDeployment = "gameServerDeployment840476212"; - ScalingPolicy expectedResponse = - ScalingPolicy.newBuilder() - .setName(name) - .setGameServerDeployment(gameServerDeployment) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateScalingPolicyTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockScalingPoliciesService.addResponse(resultOperation); - - ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - ScalingPolicy actualResponse = client.updateScalingPolicyAsync(scalingPolicy, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockScalingPoliciesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateScalingPolicyRequest actualRequest = (UpdateScalingPolicyRequest) actualRequests.get(0); - - Assert.assertEquals(scalingPolicy, actualRequest.getScalingPolicy()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void updateScalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockScalingPoliciesService.addException(exception); - - try { - ScalingPolicy scalingPolicy = ScalingPolicy.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - client.updateScalingPolicyAsync(scalingPolicy, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/grpc-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml b/grpc-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml new file mode 100644 index 00000000..4e8d73dc --- /dev/null +++ b/grpc-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,48 @@ + + + + + + 6001 + com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc + METHOD_COMMIT_ROLLOUT + + + 6001 + com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc + METHOD_GET_DEPLOYMENT_TARGET + + + 6001 + com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc + METHOD_REVERT_ROLLOUT + + + 6001 + com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc + METHOD_SET_ROLLOUT_TARGET + + + 6001 + com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc + METHOD_START_ROLLOUT + + + 7002 + com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceGrpc* + * + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc* + * + + + 8001 + com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceGrpc* + + + 8001 + com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceGrpc* + + diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceGrpc.java deleted file mode 100644 index c54466ff..00000000 --- a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPoliciesServiceGrpc.java +++ /dev/null @@ -1,945 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - * - * - *
- * 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 - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService", - "ListAllocationPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AllocationPoliciesServiceMethodDescriptorSupplier( - "ListAllocationPolicies")) - .build(); - } - } - } - return getListAllocationPoliciesMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetAllocationPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest, - com.google.cloud.gaming.v1alpha.AllocationPolicy> - METHOD_GET_ALLOCATION_POLICY = getGetAllocationPolicyMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest, - com.google.cloud.gaming.v1alpha.AllocationPolicy> - getGetAllocationPolicyMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest, - com.google.cloud.gaming.v1alpha.AllocationPolicy> - getGetAllocationPolicyMethod() { - return getGetAllocationPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest, - com.google.cloud.gaming.v1alpha.AllocationPolicy> - getGetAllocationPolicyMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest, - com.google.cloud.gaming.v1alpha.AllocationPolicy> - getGetAllocationPolicyMethod; - if ((getGetAllocationPolicyMethod = AllocationPoliciesServiceGrpc.getGetAllocationPolicyMethod) - == null) { - synchronized (AllocationPoliciesServiceGrpc.class) { - if ((getGetAllocationPolicyMethod = - AllocationPoliciesServiceGrpc.getGetAllocationPolicyMethod) - == null) { - AllocationPoliciesServiceGrpc.getGetAllocationPolicyMethod = - getGetAllocationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService", - "GetAllocationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.AllocationPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new AllocationPoliciesServiceMethodDescriptorSupplier( - "GetAllocationPolicy")) - .build(); - } - } - } - return getGetAllocationPolicyMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateAllocationPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest, - com.google.longrunning.Operation> - METHOD_CREATE_ALLOCATION_POLICY = getCreateAllocationPolicyMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest, - com.google.longrunning.Operation> - getCreateAllocationPolicyMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest, - com.google.longrunning.Operation> - getCreateAllocationPolicyMethod() { - return getCreateAllocationPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest, - com.google.longrunning.Operation> - getCreateAllocationPolicyMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest, - com.google.longrunning.Operation> - getCreateAllocationPolicyMethod; - if ((getCreateAllocationPolicyMethod = - AllocationPoliciesServiceGrpc.getCreateAllocationPolicyMethod) - == null) { - synchronized (AllocationPoliciesServiceGrpc.class) { - if ((getCreateAllocationPolicyMethod = - AllocationPoliciesServiceGrpc.getCreateAllocationPolicyMethod) - == null) { - AllocationPoliciesServiceGrpc.getCreateAllocationPolicyMethod = - getCreateAllocationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService", - "CreateAllocationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new AllocationPoliciesServiceMethodDescriptorSupplier( - "CreateAllocationPolicy")) - .build(); - } - } - } - return getCreateAllocationPolicyMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteAllocationPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest, - com.google.longrunning.Operation> - METHOD_DELETE_ALLOCATION_POLICY = getDeleteAllocationPolicyMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAllocationPolicyMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAllocationPolicyMethod() { - return getDeleteAllocationPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAllocationPolicyMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest, - com.google.longrunning.Operation> - getDeleteAllocationPolicyMethod; - if ((getDeleteAllocationPolicyMethod = - AllocationPoliciesServiceGrpc.getDeleteAllocationPolicyMethod) - == null) { - synchronized (AllocationPoliciesServiceGrpc.class) { - if ((getDeleteAllocationPolicyMethod = - AllocationPoliciesServiceGrpc.getDeleteAllocationPolicyMethod) - == null) { - AllocationPoliciesServiceGrpc.getDeleteAllocationPolicyMethod = - getDeleteAllocationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService", - "DeleteAllocationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new AllocationPoliciesServiceMethodDescriptorSupplier( - "DeleteAllocationPolicy")) - .build(); - } - } - } - return getDeleteAllocationPolicyMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateAllocationPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest, - com.google.longrunning.Operation> - METHOD_UPDATE_ALLOCATION_POLICY = getUpdateAllocationPolicyMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAllocationPolicyMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAllocationPolicyMethod() { - return getUpdateAllocationPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAllocationPolicyMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest, - com.google.longrunning.Operation> - getUpdateAllocationPolicyMethod; - if ((getUpdateAllocationPolicyMethod = - AllocationPoliciesServiceGrpc.getUpdateAllocationPolicyMethod) - == null) { - synchronized (AllocationPoliciesServiceGrpc.class) { - if ((getUpdateAllocationPolicyMethod = - AllocationPoliciesServiceGrpc.getUpdateAllocationPolicyMethod) - == null) { - AllocationPoliciesServiceGrpc.getUpdateAllocationPolicyMethod = - getUpdateAllocationPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.AllocationPoliciesService", - "UpdateAllocationPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new AllocationPoliciesServiceMethodDescriptorSupplier( - "UpdateAllocationPolicy")) - .build(); - } - } - } - return getUpdateAllocationPolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AllocationPoliciesServiceStub newStub(io.grpc.Channel channel) { - return new AllocationPoliciesServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AllocationPoliciesServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new AllocationPoliciesServiceBlockingStub(channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AllocationPoliciesServiceFutureStub newFutureStub(io.grpc.Channel channel) { - return new AllocationPoliciesServiceFutureStub(channel); - } - - /** - * - * - *
-   * 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 - responseObserver) { - asyncUnimplementedUnaryCall(getListAllocationPoliciesMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single allocation policy.
-     * 
- */ - public void getAllocationPolicy( - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getGetAllocationPolicyMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * 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 responseObserver) { - asyncUnimplementedUnaryCall(getCreateAllocationPolicyMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single allocation policy.
-     * 
- */ - public void deleteAllocationPolicy( - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteAllocationPolicyMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Patches a single allocation policy.
-     * 
- */ - public void updateAllocationPolicy( - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAllocationPolicyMethodHelper(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListAllocationPoliciesMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest, - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse>( - this, METHODID_LIST_ALLOCATION_POLICIES))) - .addMethod( - getGetAllocationPolicyMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest, - com.google.cloud.gaming.v1alpha.AllocationPolicy>( - this, METHODID_GET_ALLOCATION_POLICY))) - .addMethod( - getCreateAllocationPolicyMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_ALLOCATION_POLICY))) - .addMethod( - getDeleteAllocationPolicyMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_ALLOCATION_POLICY))) - .addMethod( - getUpdateAllocationPolicyMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_ALLOCATION_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * 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 { - private AllocationPoliciesServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private AllocationPoliciesServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AllocationPoliciesServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AllocationPoliciesServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * List allocation policies in a given project and location.
-     * 
- */ - public void listAllocationPolicies( - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListAllocationPoliciesMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single allocation policy.
-     * 
- */ - public void getAllocationPolicy( - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetAllocationPolicyMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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 responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateAllocationPolicyMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single allocation policy.
-     * 
- */ - public void deleteAllocationPolicy( - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteAllocationPolicyMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Patches a single allocation policy.
-     * 
- */ - public void updateAllocationPolicy( - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateAllocationPolicyMethodHelper(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * 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 { - private AllocationPoliciesServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private AllocationPoliciesServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AllocationPoliciesServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AllocationPoliciesServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * 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 { - private AllocationPoliciesServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private AllocationPoliciesServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AllocationPoliciesServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AllocationPoliciesServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * 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 - createAllocationPolicy( - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateAllocationPolicyMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single allocation policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAllocationPolicy( - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest request) { - return futureUnaryCall( - getChannel().newCall(getDeleteAllocationPolicyMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Patches a single allocation policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateAllocationPolicy( - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateAllocationPolicyMethodHelper(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_ALLOCATION_POLICIES = 0; - private static final int METHODID_GET_ALLOCATION_POLICY = 1; - private static final int METHODID_CREATE_ALLOCATION_POLICY = 2; - private static final int METHODID_DELETE_ALLOCATION_POLICY = 3; - private static final int METHODID_UPDATE_ALLOCATION_POLICY = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AllocationPoliciesServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AllocationPoliciesServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_ALLOCATION_POLICIES: - serviceImpl.listAllocationPolicies( - (com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse>) - responseObserver); - break; - case METHODID_GET_ALLOCATION_POLICY: - serviceImpl.getAllocationPolicy( - (com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_ALLOCATION_POLICY: - serviceImpl.createAllocationPolicy( - (com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ALLOCATION_POLICY: - serviceImpl.deleteAllocationPolicy( - (com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ALLOCATION_POLICY: - serviceImpl.updateAllocationPolicy( - (com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AllocationPoliciesServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AllocationPoliciesServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AllocationPoliciesService"); - } - } - - private static final class AllocationPoliciesServiceFileDescriptorSupplier - extends AllocationPoliciesServiceBaseDescriptorSupplier { - AllocationPoliciesServiceFileDescriptorSupplier() {} - } - - private static final class AllocationPoliciesServiceMethodDescriptorSupplier - extends AllocationPoliciesServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AllocationPoliciesServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AllocationPoliciesServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AllocationPoliciesServiceFileDescriptorSupplier()) - .addMethod(getListAllocationPoliciesMethodHelper()) - .addMethod(getGetAllocationPolicyMethodHelper()) - .addMethod(getCreateAllocationPolicyMethodHelper()) - .addMethod(getDeleteAllocationPolicyMethodHelper()) - .addMethod(getUpdateAllocationPolicyMethodHelper()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceGrpc.java index 75564e57..1521be1d 100644 --- a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceGrpc.java +++ b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,13 +26,13 @@ * * *
- * The game server cluster is used to capture the game server cluster's settings
- * which are used to manage game server clusters.
+ * The game server cluster maps to Kubernetes clusters running Agones and is
+ * used to manage fleets within clusters.
  * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/cloud/gaming/v1alpha/game_server_clusters.proto") + comments = "Source: google/cloud/gaming/v1alpha/game_server_clusters_service.proto") public final class GameServerClustersServiceGrpc { private GameServerClustersServiceGrpc() {} @@ -234,6 +234,71 @@ private GameServerClustersServiceGrpc() {} return getCreateGameServerClusterMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getPreviewCreateGameServerClusterMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> + METHOD_PREVIEW_CREATE_GAME_SERVER_CLUSTER = getPreviewCreateGameServerClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> + getPreviewCreateGameServerClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> + getPreviewCreateGameServerClusterMethod() { + return getPreviewCreateGameServerClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> + getPreviewCreateGameServerClusterMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> + getPreviewCreateGameServerClusterMethod; + if ((getPreviewCreateGameServerClusterMethod = + GameServerClustersServiceGrpc.getPreviewCreateGameServerClusterMethod) + == null) { + synchronized (GameServerClustersServiceGrpc.class) { + if ((getPreviewCreateGameServerClusterMethod = + GameServerClustersServiceGrpc.getPreviewCreateGameServerClusterMethod) + == null) { + GameServerClustersServiceGrpc.getPreviewCreateGameServerClusterMethod = + getPreviewCreateGameServerClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.gaming.v1alpha.GameServerClustersService", + "PreviewCreateGameServerCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GameServerClustersServiceMethodDescriptorSupplier( + "PreviewCreateGameServerCluster")) + .build(); + } + } + } + return getPreviewCreateGameServerClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getDeleteGameServerClusterMethod()} instead. public static final io.grpc.MethodDescriptor< @@ -298,6 +363,71 @@ private GameServerClustersServiceGrpc() {} return getDeleteGameServerClusterMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getPreviewDeleteGameServerClusterMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> + METHOD_PREVIEW_DELETE_GAME_SERVER_CLUSTER = getPreviewDeleteGameServerClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> + getPreviewDeleteGameServerClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> + getPreviewDeleteGameServerClusterMethod() { + return getPreviewDeleteGameServerClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> + getPreviewDeleteGameServerClusterMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> + getPreviewDeleteGameServerClusterMethod; + if ((getPreviewDeleteGameServerClusterMethod = + GameServerClustersServiceGrpc.getPreviewDeleteGameServerClusterMethod) + == null) { + synchronized (GameServerClustersServiceGrpc.class) { + if ((getPreviewDeleteGameServerClusterMethod = + GameServerClustersServiceGrpc.getPreviewDeleteGameServerClusterMethod) + == null) { + GameServerClustersServiceGrpc.getPreviewDeleteGameServerClusterMethod = + getPreviewDeleteGameServerClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.gaming.v1alpha.GameServerClustersService", + "PreviewDeleteGameServerCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GameServerClustersServiceMethodDescriptorSupplier( + "PreviewDeleteGameServerCluster")) + .build(); + } + } + } + return getPreviewDeleteGameServerClusterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getUpdateGameServerClusterMethod()} instead. public static final io.grpc.MethodDescriptor< @@ -362,6 +492,71 @@ private GameServerClustersServiceGrpc() {} return getUpdateGameServerClusterMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getPreviewUpdateGameServerClusterMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> + METHOD_PREVIEW_UPDATE_GAME_SERVER_CLUSTER = getPreviewUpdateGameServerClusterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> + getPreviewUpdateGameServerClusterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> + getPreviewUpdateGameServerClusterMethod() { + return getPreviewUpdateGameServerClusterMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> + getPreviewUpdateGameServerClusterMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> + getPreviewUpdateGameServerClusterMethod; + if ((getPreviewUpdateGameServerClusterMethod = + GameServerClustersServiceGrpc.getPreviewUpdateGameServerClusterMethod) + == null) { + synchronized (GameServerClustersServiceGrpc.class) { + if ((getPreviewUpdateGameServerClusterMethod = + GameServerClustersServiceGrpc.getPreviewUpdateGameServerClusterMethod) + == null) { + GameServerClustersServiceGrpc.getPreviewUpdateGameServerClusterMethod = + getPreviewUpdateGameServerClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.gaming.v1alpha.GameServerClustersService", + "PreviewUpdateGameServerCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GameServerClustersServiceMethodDescriptorSupplier( + "PreviewUpdateGameServerCluster")) + .build(); + } + } + } + return getPreviewUpdateGameServerClusterMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static GameServerClustersServiceStub newStub(io.grpc.Channel channel) { return new GameServerClustersServiceStub(channel); @@ -383,8 +578,8 @@ public static GameServerClustersServiceFutureStub newFutureStub(io.grpc.Channel * * *
-   * The game server cluster is used to capture the game server cluster's settings
-   * which are used to manage game server clusters.
+   * The game server cluster maps to Kubernetes clusters running Agones and is
+   * used to manage fleets within clusters.
    * 
*/ public abstract static class GameServerClustersServiceImplBase @@ -431,6 +626,23 @@ public void createGameServerCluster( asyncUnimplementedUnaryCall(getCreateGameServerClusterMethodHelper(), responseObserver); } + /** + * + * + *
+     * Previews creation of a new game server cluster in a given project and
+     * location.
+     * 
+ */ + public void previewCreateGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> + responseObserver) { + asyncUnimplementedUnaryCall( + getPreviewCreateGameServerClusterMethodHelper(), responseObserver); + } + /** * * @@ -444,6 +656,22 @@ public void deleteGameServerCluster( asyncUnimplementedUnaryCall(getDeleteGameServerClusterMethodHelper(), responseObserver); } + /** + * + * + *
+     * Previews deletion of a single game server cluster.
+     * 
+ */ + public void previewDeleteGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> + responseObserver) { + asyncUnimplementedUnaryCall( + getPreviewDeleteGameServerClusterMethodHelper(), responseObserver); + } + /** * * @@ -457,6 +685,22 @@ public void updateGameServerCluster( asyncUnimplementedUnaryCall(getUpdateGameServerClusterMethodHelper(), responseObserver); } + /** + * + * + *
+     * Previews updating a GameServerCluster.
+     * 
+ */ + public void previewUpdateGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> + responseObserver) { + asyncUnimplementedUnaryCall( + getPreviewUpdateGameServerClusterMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -480,18 +724,39 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_GAME_SERVER_CLUSTER))) + .addMethod( + getPreviewCreateGameServerClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse>( + this, METHODID_PREVIEW_CREATE_GAME_SERVER_CLUSTER))) .addMethod( getDeleteGameServerClusterMethodHelper(), asyncUnaryCall( new MethodHandlers< com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_GAME_SERVER_CLUSTER))) + .addMethod( + getPreviewDeleteGameServerClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse>( + this, METHODID_PREVIEW_DELETE_GAME_SERVER_CLUSTER))) .addMethod( getUpdateGameServerClusterMethodHelper(), asyncUnaryCall( new MethodHandlers< com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_GAME_SERVER_CLUSTER))) + .addMethod( + getPreviewUpdateGameServerClusterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse>( + this, METHODID_PREVIEW_UPDATE_GAME_SERVER_CLUSTER))) .build(); } } @@ -500,8 +765,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * The game server cluster is used to capture the game server cluster's settings
-   * which are used to manage game server clusters.
+   * The game server cluster maps to Kubernetes clusters running Agones and is
+   * used to manage fleets within clusters.
    * 
*/ public static final class GameServerClustersServiceStub @@ -571,6 +836,25 @@ public void createGameServerCluster( responseObserver); } + /** + * + * + *
+     * Previews creation of a new game server cluster in a given project and
+     * location.
+     * 
+ */ + public void previewCreateGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getPreviewCreateGameServerClusterMethodHelper(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -587,6 +871,24 @@ public void deleteGameServerCluster( responseObserver); } + /** + * + * + *
+     * Previews deletion of a single game server cluster.
+     * 
+ */ + public void previewDeleteGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getPreviewDeleteGameServerClusterMethodHelper(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -602,14 +904,32 @@ public void updateGameServerCluster( request, responseObserver); } + + /** + * + * + *
+     * Previews updating a GameServerCluster.
+     * 
+ */ + public void previewUpdateGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getPreviewUpdateGameServerClusterMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** * * *
-   * The game server cluster is used to capture the game server cluster's settings
-   * which are used to manage game server clusters.
+   * The game server cluster maps to Kubernetes clusters running Agones and is
+   * used to manage fleets within clusters.
    * 
*/ public static final class GameServerClustersServiceBlockingStub @@ -668,6 +988,21 @@ public com.google.longrunning.Operation createGameServerCluster( getChannel(), getCreateGameServerClusterMethodHelper(), getCallOptions(), request); } + /** + * + * + *
+     * Previews creation of a new game server cluster in a given project and
+     * location.
+     * 
+ */ + public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse + previewCreateGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest request) { + return blockingUnaryCall( + getChannel(), getPreviewCreateGameServerClusterMethodHelper(), getCallOptions(), request); + } + /** * * @@ -681,6 +1016,20 @@ public com.google.longrunning.Operation deleteGameServerCluster( getChannel(), getDeleteGameServerClusterMethodHelper(), getCallOptions(), request); } + /** + * + * + *
+     * Previews deletion of a single game server cluster.
+     * 
+ */ + public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse + previewDeleteGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest request) { + return blockingUnaryCall( + getChannel(), getPreviewDeleteGameServerClusterMethodHelper(), getCallOptions(), request); + } + /** * * @@ -693,14 +1042,28 @@ public com.google.longrunning.Operation updateGameServerCluster( return blockingUnaryCall( getChannel(), getUpdateGameServerClusterMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+     * Previews updating a GameServerCluster.
+     * 
+ */ + public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse + previewUpdateGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest request) { + return blockingUnaryCall( + getChannel(), getPreviewUpdateGameServerClusterMethodHelper(), getCallOptions(), request); + } } /** * * *
-   * The game server cluster is used to capture the game server cluster's settings
-   * which are used to manage game server clusters.
+   * The game server cluster maps to Kubernetes clusters running Agones and is
+   * used to manage fleets within clusters.
    * 
*/ public static final class GameServerClustersServiceFutureStub @@ -764,6 +1127,23 @@ protected GameServerClustersServiceFutureStub build( request); } + /** + * + * + *
+     * Previews creation of a new game server cluster in a given project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse> + previewCreateGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getPreviewCreateGameServerClusterMethodHelper(), getCallOptions()), + request); + } + /** * * @@ -779,6 +1159,22 @@ protected GameServerClustersServiceFutureStub build( request); } + /** + * + * + *
+     * Previews deletion of a single game server cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse> + previewDeleteGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getPreviewDeleteGameServerClusterMethodHelper(), getCallOptions()), + request); + } + /** * * @@ -793,13 +1189,32 @@ protected GameServerClustersServiceFutureStub build( getChannel().newCall(getUpdateGameServerClusterMethodHelper(), getCallOptions()), request); } + + /** + * + * + *
+     * Previews updating a GameServerCluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse> + previewUpdateGameServerCluster( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest request) { + return futureUnaryCall( + getChannel().newCall(getPreviewUpdateGameServerClusterMethodHelper(), getCallOptions()), + request); + } } private static final int METHODID_LIST_GAME_SERVER_CLUSTERS = 0; private static final int METHODID_GET_GAME_SERVER_CLUSTER = 1; private static final int METHODID_CREATE_GAME_SERVER_CLUSTER = 2; - private static final int METHODID_DELETE_GAME_SERVER_CLUSTER = 3; - private static final int METHODID_UPDATE_GAME_SERVER_CLUSTER = 4; + private static final int METHODID_PREVIEW_CREATE_GAME_SERVER_CLUSTER = 3; + private static final int METHODID_DELETE_GAME_SERVER_CLUSTER = 4; + private static final int METHODID_PREVIEW_DELETE_GAME_SERVER_CLUSTER = 5; + private static final int METHODID_UPDATE_GAME_SERVER_CLUSTER = 6; + private static final int METHODID_PREVIEW_UPDATE_GAME_SERVER_CLUSTER = 7; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -836,16 +1251,37 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.gaming.v1alpha.CreateGameServerClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PREVIEW_CREATE_GAME_SERVER_CLUSTER: + serviceImpl.previewCreateGameServerCluster( + (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse>) + responseObserver); + break; case METHODID_DELETE_GAME_SERVER_CLUSTER: serviceImpl.deleteGameServerCluster( (com.google.cloud.gaming.v1alpha.DeleteGameServerClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PREVIEW_DELETE_GAME_SERVER_CLUSTER: + serviceImpl.previewDeleteGameServerCluster( + (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse>) + responseObserver); + break; case METHODID_UPDATE_GAME_SERVER_CLUSTER: serviceImpl.updateGameServerCluster( (com.google.cloud.gaming.v1alpha.UpdateGameServerClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PREVIEW_UPDATE_GAME_SERVER_CLUSTER: + serviceImpl.previewUpdateGameServerCluster( + (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -869,7 +1305,7 @@ private abstract static class GameServerClustersServiceBaseDescriptorSupplier @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerClusters.getDescriptor(); + return com.google.cloud.gaming.v1alpha.GameServerClustersServiceOuterClass.getDescriptor(); } @java.lang.Override @@ -913,8 +1349,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListGameServerClustersMethodHelper()) .addMethod(getGetGameServerClusterMethodHelper()) .addMethod(getCreateGameServerClusterMethodHelper()) + .addMethod(getPreviewCreateGameServerClusterMethodHelper()) .addMethod(getDeleteGameServerClusterMethodHelper()) + .addMethod(getPreviewDeleteGameServerClusterMethodHelper()) .addMethod(getUpdateGameServerClusterMethodHelper()) + .addMethod(getPreviewUpdateGameServerClusterMethodHelper()) .build(); } } diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceGrpc.java new file mode 100644 index 00000000..4c45be12 --- /dev/null +++ b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceGrpc.java @@ -0,0 +1,805 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.gaming.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * The game server config is used to configure the set of game
+ * servers in Agones Fleets.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/gaming/v1alpha/game_server_configs_service.proto") +public final class GameServerConfigsServiceGrpc { + + private GameServerConfigsServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gaming.v1alpha.GameServerConfigsService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListGameServerConfigsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> + METHOD_LIST_GAME_SERVER_CONFIGS = getListGameServerConfigsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> + getListGameServerConfigsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> + getListGameServerConfigsMethod() { + return getListGameServerConfigsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> + getListGameServerConfigsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> + getListGameServerConfigsMethod; + if ((getListGameServerConfigsMethod = + GameServerConfigsServiceGrpc.getListGameServerConfigsMethod) + == null) { + synchronized (GameServerConfigsServiceGrpc.class) { + if ((getListGameServerConfigsMethod = + GameServerConfigsServiceGrpc.getListGameServerConfigsMethod) + == null) { + GameServerConfigsServiceGrpc.getListGameServerConfigsMethod = + getListGameServerConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.gaming.v1alpha.GameServerConfigsService", + "ListGameServerConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GameServerConfigsServiceMethodDescriptorSupplier( + "ListGameServerConfigs")) + .build(); + } + } + } + return getListGameServerConfigsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetGameServerConfigMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, + com.google.cloud.gaming.v1alpha.GameServerConfig> + METHOD_GET_GAME_SERVER_CONFIG = getGetGameServerConfigMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, + com.google.cloud.gaming.v1alpha.GameServerConfig> + getGetGameServerConfigMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, + com.google.cloud.gaming.v1alpha.GameServerConfig> + getGetGameServerConfigMethod() { + return getGetGameServerConfigMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, + com.google.cloud.gaming.v1alpha.GameServerConfig> + getGetGameServerConfigMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, + com.google.cloud.gaming.v1alpha.GameServerConfig> + getGetGameServerConfigMethod; + if ((getGetGameServerConfigMethod = GameServerConfigsServiceGrpc.getGetGameServerConfigMethod) + == null) { + synchronized (GameServerConfigsServiceGrpc.class) { + if ((getGetGameServerConfigMethod = + GameServerConfigsServiceGrpc.getGetGameServerConfigMethod) + == null) { + GameServerConfigsServiceGrpc.getGetGameServerConfigMethod = + getGetGameServerConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.gaming.v1alpha.GameServerConfigsService", + "GetGameServerConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.GameServerConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new GameServerConfigsServiceMethodDescriptorSupplier( + "GetGameServerConfig")) + .build(); + } + } + } + return getGetGameServerConfigMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateGameServerConfigMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, + com.google.longrunning.Operation> + METHOD_CREATE_GAME_SERVER_CONFIG = getCreateGameServerConfigMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, + com.google.longrunning.Operation> + getCreateGameServerConfigMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, + com.google.longrunning.Operation> + getCreateGameServerConfigMethod() { + return getCreateGameServerConfigMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, + com.google.longrunning.Operation> + getCreateGameServerConfigMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, + com.google.longrunning.Operation> + getCreateGameServerConfigMethod; + if ((getCreateGameServerConfigMethod = + GameServerConfigsServiceGrpc.getCreateGameServerConfigMethod) + == null) { + synchronized (GameServerConfigsServiceGrpc.class) { + if ((getCreateGameServerConfigMethod = + GameServerConfigsServiceGrpc.getCreateGameServerConfigMethod) + == null) { + GameServerConfigsServiceGrpc.getCreateGameServerConfigMethod = + getCreateGameServerConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.gaming.v1alpha.GameServerConfigsService", + "CreateGameServerConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GameServerConfigsServiceMethodDescriptorSupplier( + "CreateGameServerConfig")) + .build(); + } + } + } + return getCreateGameServerConfigMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteGameServerConfigMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, + com.google.longrunning.Operation> + METHOD_DELETE_GAME_SERVER_CONFIG = getDeleteGameServerConfigMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, + com.google.longrunning.Operation> + getDeleteGameServerConfigMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, + com.google.longrunning.Operation> + getDeleteGameServerConfigMethod() { + return getDeleteGameServerConfigMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, + com.google.longrunning.Operation> + getDeleteGameServerConfigMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, + com.google.longrunning.Operation> + getDeleteGameServerConfigMethod; + if ((getDeleteGameServerConfigMethod = + GameServerConfigsServiceGrpc.getDeleteGameServerConfigMethod) + == null) { + synchronized (GameServerConfigsServiceGrpc.class) { + if ((getDeleteGameServerConfigMethod = + GameServerConfigsServiceGrpc.getDeleteGameServerConfigMethod) + == null) { + GameServerConfigsServiceGrpc.getDeleteGameServerConfigMethod = + getDeleteGameServerConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.gaming.v1alpha.GameServerConfigsService", + "DeleteGameServerConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GameServerConfigsServiceMethodDescriptorSupplier( + "DeleteGameServerConfig")) + .build(); + } + } + } + return getDeleteGameServerConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GameServerConfigsServiceStub newStub(io.grpc.Channel channel) { + return new GameServerConfigsServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GameServerConfigsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + return new GameServerConfigsServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GameServerConfigsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new GameServerConfigsServiceFutureStub(channel); + } + + /** + * + * + *
+   * The game server config is used to configure the set of game
+   * servers in Agones Fleets.
+   * 
+ */ + public abstract static class GameServerConfigsServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists game server configs in a given project, location, and game server
+     * deployment.
+     * 
+ */ + public void listGameServerConfigs( + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListGameServerConfigsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single game server config.
+     * 
+ */ + public void getGameServerConfig( + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGetGameServerConfigMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Creates a new game server config in a given project, location, and game
+     * server deployment. Game server configs are immutable. A game server config
+     * is not applied until it is rolled out which is managed
+     * by updating the game server rollout resource.
+     * 
+ */ + public void createGameServerConfig( + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateGameServerConfigMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single game server config. The deletion will fail if the game
+     * server config is referenced in a game server rollout.
+     * 
+ */ + public void deleteGameServerConfig( + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteGameServerConfigMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListGameServerConfigsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse>( + this, METHODID_LIST_GAME_SERVER_CONFIGS))) + .addMethod( + getGetGameServerConfigMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest, + com.google.cloud.gaming.v1alpha.GameServerConfig>( + this, METHODID_GET_GAME_SERVER_CONFIG))) + .addMethod( + getCreateGameServerConfigMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_GAME_SERVER_CONFIG))) + .addMethod( + getDeleteGameServerConfigMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_GAME_SERVER_CONFIG))) + .build(); + } + } + + /** + * + * + *
+   * The game server config is used to configure the set of game
+   * servers in Agones Fleets.
+   * 
+ */ + public static final class GameServerConfigsServiceStub + extends io.grpc.stub.AbstractStub { + private GameServerConfigsServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private GameServerConfigsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GameServerConfigsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GameServerConfigsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists game server configs in a given project, location, and game server
+     * deployment.
+     * 
+ */ + public void listGameServerConfigs( + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListGameServerConfigsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single game server config.
+     * 
+ */ + public void getGameServerConfig( + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetGameServerConfigMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new game server config in a given project, location, and game
+     * server deployment. Game server configs are immutable. A game server config
+     * is not applied until it is rolled out which is managed
+     * by updating the game server rollout resource.
+     * 
+ */ + public void createGameServerConfig( + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateGameServerConfigMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single game server config. The deletion will fail if the game
+     * server config is referenced in a game server rollout.
+     * 
+ */ + public void deleteGameServerConfig( + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteGameServerConfigMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The game server config is used to configure the set of game
+   * servers in Agones Fleets.
+   * 
+ */ + public static final class GameServerConfigsServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private GameServerConfigsServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private GameServerConfigsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GameServerConfigsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GameServerConfigsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists game server configs in a given project, location, and game server
+     * deployment.
+     * 
+ */ + public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse listGameServerConfigs( + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest request) { + return blockingUnaryCall( + getChannel(), getListGameServerConfigsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single game server config.
+     * 
+ */ + public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfig( + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest request) { + return blockingUnaryCall( + getChannel(), getGetGameServerConfigMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new game server config in a given project, location, and game
+     * server deployment. Game server configs are immutable. A game server config
+     * is not applied until it is rolled out which is managed
+     * by updating the game server rollout resource.
+     * 
+ */ + public com.google.longrunning.Operation createGameServerConfig( + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest request) { + return blockingUnaryCall( + getChannel(), getCreateGameServerConfigMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single game server config. The deletion will fail if the game
+     * server config is referenced in a game server rollout.
+     * 
+ */ + public com.google.longrunning.Operation deleteGameServerConfig( + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteGameServerConfigMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The game server config is used to configure the set of game
+   * servers in Agones Fleets.
+   * 
+ */ + public static final class GameServerConfigsServiceFutureStub + extends io.grpc.stub.AbstractStub { + private GameServerConfigsServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private GameServerConfigsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GameServerConfigsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GameServerConfigsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists game server configs in a given project, location, and game server
+     * deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse> + listGameServerConfigs( + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListGameServerConfigsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single game server config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.GameServerConfig> + getGameServerConfig(com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetGameServerConfigMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new game server config in a given project, location, and game
+     * server deployment. Game server configs are immutable. A game server config
+     * is not applied until it is rolled out which is managed
+     * by updating the game server rollout resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createGameServerConfig( + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateGameServerConfigMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single game server config. The deletion will fail if the game
+     * server config is referenced in a game server rollout.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteGameServerConfig( + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteGameServerConfigMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_GAME_SERVER_CONFIGS = 0; + private static final int METHODID_GET_GAME_SERVER_CONFIG = 1; + private static final int METHODID_CREATE_GAME_SERVER_CONFIG = 2; + private static final int METHODID_DELETE_GAME_SERVER_CONFIG = 3; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final GameServerConfigsServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GameServerConfigsServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_GAME_SERVER_CONFIGS: + serviceImpl.listGameServerConfigs( + (com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse>) + responseObserver); + break; + case METHODID_GET_GAME_SERVER_CONFIG: + serviceImpl.getGameServerConfig( + (com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_GAME_SERVER_CONFIG: + serviceImpl.createGameServerConfig( + (com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GAME_SERVER_CONFIG: + serviceImpl.deleteGameServerConfig( + (com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class GameServerConfigsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GameServerConfigsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerConfigsServiceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GameServerConfigsService"); + } + } + + private static final class GameServerConfigsServiceFileDescriptorSupplier + extends GameServerConfigsServiceBaseDescriptorSupplier { + GameServerConfigsServiceFileDescriptorSupplier() {} + } + + private static final class GameServerConfigsServiceMethodDescriptorSupplier + extends GameServerConfigsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GameServerConfigsServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (GameServerConfigsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GameServerConfigsServiceFileDescriptorSupplier()) + .addMethod(getListGameServerConfigsMethodHelper()) + .addMethod(getGetGameServerConfigMethodHelper()) + .addMethod(getCreateGameServerConfigMethodHelper()) + .addMethod(getDeleteGameServerConfigMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc.java index cd95a5c9..4b02ca13 100644 --- a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc.java +++ b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,13 +26,13 @@ * * *
- * The game server deployment is used to configure the deployment of game server
- * software to Agones Fleets in game server clusters.
+ * The game server deployment is used to control the deployment of game server
+ * software to Agones fleets.
  * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/cloud/gaming/v1alpha/game_server_deployments.proto") + comments = "Source: google/cloud/gaming/v1alpha/game_server_deployments_service.proto") public final class GameServerDeploymentsServiceGrpc { private GameServerDeploymentsServiceGrpc() {} @@ -364,293 +364,265 @@ private GameServerDeploymentsServiceGrpc() {} } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getStartRolloutMethod()} instead. + @java.lang.Deprecated // Use {@link #getGetGameServerDeploymentRolloutMethod()} instead. public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.StartRolloutRequest, com.google.longrunning.Operation> - METHOD_START_ROLLOUT = getStartRolloutMethodHelper(); + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> + METHOD_GET_GAME_SERVER_DEPLOYMENT_ROLLOUT = getGetGameServerDeploymentRolloutMethodHelper(); private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.StartRolloutRequest, com.google.longrunning.Operation> - getStartRolloutMethod; + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> + getGetGameServerDeploymentRolloutMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.StartRolloutRequest, com.google.longrunning.Operation> - getStartRolloutMethod() { - return getStartRolloutMethodHelper(); + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> + getGetGameServerDeploymentRolloutMethod() { + return getGetGameServerDeploymentRolloutMethodHelper(); } private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.StartRolloutRequest, com.google.longrunning.Operation> - getStartRolloutMethodHelper() { + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> + getGetGameServerDeploymentRolloutMethodHelper() { io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.StartRolloutRequest, com.google.longrunning.Operation> - getStartRolloutMethod; - if ((getStartRolloutMethod = GameServerDeploymentsServiceGrpc.getStartRolloutMethod) == null) { - synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getStartRolloutMethod = GameServerDeploymentsServiceGrpc.getStartRolloutMethod) - == null) { - GameServerDeploymentsServiceGrpc.getStartRolloutMethod = - getStartRolloutMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "StartRollout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.StartRolloutRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier("StartRollout")) - .build(); - } - } - } - return getStartRolloutMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getSetRolloutTargetMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest, com.google.longrunning.Operation> - METHOD_SET_ROLLOUT_TARGET = getSetRolloutTargetMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest, com.google.longrunning.Operation> - getSetRolloutTargetMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest, com.google.longrunning.Operation> - getSetRolloutTargetMethod() { - return getSetRolloutTargetMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest, com.google.longrunning.Operation> - getSetRolloutTargetMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest, - com.google.longrunning.Operation> - getSetRolloutTargetMethod; - if ((getSetRolloutTargetMethod = GameServerDeploymentsServiceGrpc.getSetRolloutTargetMethod) + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> + getGetGameServerDeploymentRolloutMethod; + if ((getGetGameServerDeploymentRolloutMethod = + GameServerDeploymentsServiceGrpc.getGetGameServerDeploymentRolloutMethod) == null) { synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getSetRolloutTargetMethod = GameServerDeploymentsServiceGrpc.getSetRolloutTargetMethod) + if ((getGetGameServerDeploymentRolloutMethod = + GameServerDeploymentsServiceGrpc.getGetGameServerDeploymentRolloutMethod) == null) { - GameServerDeploymentsServiceGrpc.getSetRolloutTargetMethod = - getSetRolloutTargetMethod = + GameServerDeploymentsServiceGrpc.getGetGameServerDeploymentRolloutMethod = + getGetGameServerDeploymentRolloutMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName( "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "SetRolloutTarget")) + "GetGameServerDeploymentRollout")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout + .getDefaultInstance())) .setSchemaDescriptor( new GameServerDeploymentsServiceMethodDescriptorSupplier( - "SetRolloutTarget")) + "GetGameServerDeploymentRollout")) .build(); } } } - return getSetRolloutTargetMethod; + return getGetGameServerDeploymentRolloutMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCommitRolloutMethod()} instead. + @java.lang.Deprecated // Use {@link #getUpdateGameServerDeploymentRolloutMethod()} instead. public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CommitRolloutRequest, com.google.longrunning.Operation> - METHOD_COMMIT_ROLLOUT = getCommitRolloutMethodHelper(); + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, + com.google.longrunning.Operation> + METHOD_UPDATE_GAME_SERVER_DEPLOYMENT_ROLLOUT = + getUpdateGameServerDeploymentRolloutMethodHelper(); private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CommitRolloutRequest, com.google.longrunning.Operation> - getCommitRolloutMethod; + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, + com.google.longrunning.Operation> + getUpdateGameServerDeploymentRolloutMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CommitRolloutRequest, com.google.longrunning.Operation> - getCommitRolloutMethod() { - return getCommitRolloutMethodHelper(); + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, + com.google.longrunning.Operation> + getUpdateGameServerDeploymentRolloutMethod() { + return getUpdateGameServerDeploymentRolloutMethodHelper(); } private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CommitRolloutRequest, com.google.longrunning.Operation> - getCommitRolloutMethodHelper() { + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, + com.google.longrunning.Operation> + getUpdateGameServerDeploymentRolloutMethodHelper() { io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CommitRolloutRequest, com.google.longrunning.Operation> - getCommitRolloutMethod; - if ((getCommitRolloutMethod = GameServerDeploymentsServiceGrpc.getCommitRolloutMethod) + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, + com.google.longrunning.Operation> + getUpdateGameServerDeploymentRolloutMethod; + if ((getUpdateGameServerDeploymentRolloutMethod = + GameServerDeploymentsServiceGrpc.getUpdateGameServerDeploymentRolloutMethod) == null) { synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getCommitRolloutMethod = GameServerDeploymentsServiceGrpc.getCommitRolloutMethod) + if ((getUpdateGameServerDeploymentRolloutMethod = + GameServerDeploymentsServiceGrpc.getUpdateGameServerDeploymentRolloutMethod) == null) { - GameServerDeploymentsServiceGrpc.getCommitRolloutMethod = - getCommitRolloutMethod = + GameServerDeploymentsServiceGrpc.getUpdateGameServerDeploymentRolloutMethod = + getUpdateGameServerDeploymentRolloutMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName( "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "CommitRollout")) + "UpdateGameServerDeploymentRollout")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.CommitRolloutRequest - .getDefaultInstance())) + com.google.cloud.gaming.v1alpha + .UpdateGameServerDeploymentRolloutRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier("CommitRollout")) + new GameServerDeploymentsServiceMethodDescriptorSupplier( + "UpdateGameServerDeploymentRollout")) .build(); } } } - return getCommitRolloutMethod; + return getUpdateGameServerDeploymentRolloutMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getRevertRolloutMethod()} instead. + @java.lang.Deprecated // Use {@link #getPreviewGameServerDeploymentRolloutMethod()} instead. public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.RevertRolloutRequest, com.google.longrunning.Operation> - METHOD_REVERT_ROLLOUT = getRevertRolloutMethodHelper(); + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> + METHOD_PREVIEW_GAME_SERVER_DEPLOYMENT_ROLLOUT = + getPreviewGameServerDeploymentRolloutMethodHelper(); private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.RevertRolloutRequest, com.google.longrunning.Operation> - getRevertRolloutMethod; + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> + getPreviewGameServerDeploymentRolloutMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.RevertRolloutRequest, com.google.longrunning.Operation> - getRevertRolloutMethod() { - return getRevertRolloutMethodHelper(); + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> + getPreviewGameServerDeploymentRolloutMethod() { + return getPreviewGameServerDeploymentRolloutMethodHelper(); } private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.RevertRolloutRequest, com.google.longrunning.Operation> - getRevertRolloutMethodHelper() { + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> + getPreviewGameServerDeploymentRolloutMethodHelper() { io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.RevertRolloutRequest, com.google.longrunning.Operation> - getRevertRolloutMethod; - if ((getRevertRolloutMethod = GameServerDeploymentsServiceGrpc.getRevertRolloutMethod) + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> + getPreviewGameServerDeploymentRolloutMethod; + if ((getPreviewGameServerDeploymentRolloutMethod = + GameServerDeploymentsServiceGrpc.getPreviewGameServerDeploymentRolloutMethod) == null) { synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getRevertRolloutMethod = GameServerDeploymentsServiceGrpc.getRevertRolloutMethod) + if ((getPreviewGameServerDeploymentRolloutMethod = + GameServerDeploymentsServiceGrpc.getPreviewGameServerDeploymentRolloutMethod) == null) { - GameServerDeploymentsServiceGrpc.getRevertRolloutMethod = - getRevertRolloutMethod = + GameServerDeploymentsServiceGrpc.getPreviewGameServerDeploymentRolloutMethod = + getPreviewGameServerDeploymentRolloutMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName( "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "RevertRollout")) + "PreviewGameServerDeploymentRollout")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.RevertRolloutRequest - .getDefaultInstance())) + com.google.cloud.gaming.v1alpha + .PreviewGameServerDeploymentRolloutRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) + com.google.cloud.gaming.v1alpha + .PreviewGameServerDeploymentRolloutResponse.getDefaultInstance())) .setSchemaDescriptor( - new GameServerDeploymentsServiceMethodDescriptorSupplier("RevertRollout")) + new GameServerDeploymentsServiceMethodDescriptorSupplier( + "PreviewGameServerDeploymentRollout")) .build(); } } } - return getRevertRolloutMethod; + return getPreviewGameServerDeploymentRolloutMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetDeploymentTargetMethod()} instead. + @java.lang.Deprecated // Use {@link #getFetchDeploymentStateMethod()} instead. public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest, - com.google.cloud.gaming.v1alpha.DeploymentTarget> - METHOD_GET_DEPLOYMENT_TARGET = getGetDeploymentTargetMethodHelper(); + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> + METHOD_FETCH_DEPLOYMENT_STATE = getFetchDeploymentStateMethodHelper(); private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest, - com.google.cloud.gaming.v1alpha.DeploymentTarget> - getGetDeploymentTargetMethod; + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> + getFetchDeploymentStateMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest, - com.google.cloud.gaming.v1alpha.DeploymentTarget> - getGetDeploymentTargetMethod() { - return getGetDeploymentTargetMethodHelper(); + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> + getFetchDeploymentStateMethod() { + return getFetchDeploymentStateMethodHelper(); } private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest, - com.google.cloud.gaming.v1alpha.DeploymentTarget> - getGetDeploymentTargetMethodHelper() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> + getFetchDeploymentStateMethodHelper() { io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest, - com.google.cloud.gaming.v1alpha.DeploymentTarget> - getGetDeploymentTargetMethod; - if ((getGetDeploymentTargetMethod = - GameServerDeploymentsServiceGrpc.getGetDeploymentTargetMethod) + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> + getFetchDeploymentStateMethod; + if ((getFetchDeploymentStateMethod = + GameServerDeploymentsServiceGrpc.getFetchDeploymentStateMethod) == null) { synchronized (GameServerDeploymentsServiceGrpc.class) { - if ((getGetDeploymentTargetMethod = - GameServerDeploymentsServiceGrpc.getGetDeploymentTargetMethod) + if ((getFetchDeploymentStateMethod = + GameServerDeploymentsServiceGrpc.getFetchDeploymentStateMethod) == null) { - GameServerDeploymentsServiceGrpc.getGetDeploymentTargetMethod = - getGetDeploymentTargetMethod = + GameServerDeploymentsServiceGrpc.getFetchDeploymentStateMethod = + getFetchDeploymentStateMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName( "google.cloud.gaming.v1alpha.GameServerDeploymentsService", - "GetDeploymentTarget")) + "FetchDeploymentState")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.DeploymentTarget + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse .getDefaultInstance())) .setSchemaDescriptor( new GameServerDeploymentsServiceMethodDescriptorSupplier( - "GetDeploymentTarget")) + "FetchDeploymentState")) .build(); } } } - return getGetDeploymentTargetMethod; + return getFetchDeploymentStateMethod; } /** Creates a new async stub that supports all call types for the service */ @@ -674,8 +646,8 @@ public static GameServerDeploymentsServiceFutureStub newFutureStub(io.grpc.Chann * * *
-   * The game server deployment is used to configure the deployment of game server
-   * software to Agones Fleets in game server clusters.
+   * The game server deployment is used to control the deployment of game server
+   * software to Agones fleets.
    * 
*/ public abstract static class GameServerDeploymentsServiceImplBase @@ -753,74 +725,62 @@ public void updateGameServerDeployment( * * *
-     * Starts rollout of this game server deployment based on the given game
-     * server template.
+     * Gets details a single game server deployment rollout.
      * 
*/ - public void startRollout( - com.google.cloud.gaming.v1alpha.StartRolloutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getStartRolloutMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * 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 responseObserver) { - asyncUnimplementedUnaryCall(getSetRolloutTargetMethodHelper(), responseObserver); + public void getGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall( + getGetGameServerDeploymentRolloutMethodHelper(), responseObserver); } /** * * *
-     * 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.
+     * Patches a single game server deployment rollout.
      * 
*/ - public void commitRollout( - com.google.cloud.gaming.v1alpha.CommitRolloutRequest request, + public void updateGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCommitRolloutMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall( + getUpdateGameServerDeploymentRolloutMethodHelper(), responseObserver); } /** * * *
-     * 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.
+     * Previews the game server deployment rollout. This API does not mutate the
+     * rollout resource.
      * 
*/ - public void revertRollout( - com.google.cloud.gaming.v1alpha.RevertRolloutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRevertRolloutMethodHelper(), responseObserver); + public void previewGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> + responseObserver) { + asyncUnimplementedUnaryCall( + getPreviewGameServerDeploymentRolloutMethodHelper(), responseObserver); } /** * * *
-     * 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.
+     * Retrieves information about the current state of the deployment, e.g. it
+     * gathers all the fleets and autoscalars for this deployment.
+     * This includes fleets running older version of the deployment.
      * 
*/ - public void getDeploymentTarget( - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest request, - io.grpc.stub.StreamObserver + public void fetchDeploymentState( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDeploymentTargetMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getFetchDeploymentStateMethodHelper(), responseObserver); } @java.lang.Override @@ -862,36 +822,33 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.longrunning.Operation>( this, METHODID_UPDATE_GAME_SERVER_DEPLOYMENT))) .addMethod( - getStartRolloutMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.StartRolloutRequest, - com.google.longrunning.Operation>(this, METHODID_START_ROLLOUT))) - .addMethod( - getSetRolloutTargetMethodHelper(), + getGetGameServerDeploymentRolloutMethodHelper(), asyncUnaryCall( new MethodHandlers< - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest, - com.google.longrunning.Operation>(this, METHODID_SET_ROLLOUT_TARGET))) + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout>( + this, METHODID_GET_GAME_SERVER_DEPLOYMENT_ROLLOUT))) .addMethod( - getCommitRolloutMethodHelper(), + getUpdateGameServerDeploymentRolloutMethodHelper(), asyncUnaryCall( new MethodHandlers< - com.google.cloud.gaming.v1alpha.CommitRolloutRequest, - com.google.longrunning.Operation>(this, METHODID_COMMIT_ROLLOUT))) + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_GAME_SERVER_DEPLOYMENT_ROLLOUT))) .addMethod( - getRevertRolloutMethodHelper(), + getPreviewGameServerDeploymentRolloutMethodHelper(), asyncUnaryCall( new MethodHandlers< - com.google.cloud.gaming.v1alpha.RevertRolloutRequest, - com.google.longrunning.Operation>(this, METHODID_REVERT_ROLLOUT))) + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse>( + this, METHODID_PREVIEW_GAME_SERVER_DEPLOYMENT_ROLLOUT))) .addMethod( - getGetDeploymentTargetMethodHelper(), + getFetchDeploymentStateMethodHelper(), asyncUnaryCall( new MethodHandlers< - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest, - com.google.cloud.gaming.v1alpha.DeploymentTarget>( - this, METHODID_GET_DEPLOYMENT_TARGET))) + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse>( + this, METHODID_FETCH_DEPLOYMENT_STATE))) .build(); } } @@ -900,8 +857,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * The game server deployment is used to configure the deployment of game server
-   * software to Agones Fleets in game server clusters.
+   * The game server deployment is used to control the deployment of game server
+   * software to Agones fleets.
    * 
*/ public static final class GameServerDeploymentsServiceStub @@ -1008,32 +965,15 @@ public void updateGameServerDeployment( * * *
-     * 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 responseObserver) { - asyncUnaryCall( - getChannel().newCall(getStartRolloutMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets rollout target for the ongoing game server deployment rollout in the
-     * specified clusters and based on the given rollout percentage. Default is 0.
+     * Gets details a single game server deployment rollout.
      * 
*/ - public void setRolloutTarget( - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnaryCall( - getChannel().newCall(getSetRolloutTargetMethodHelper(), getCallOptions()), + getChannel().newCall(getGetGameServerDeploymentRolloutMethodHelper(), getCallOptions()), request, responseObserver); } @@ -1042,16 +982,15 @@ public void setRolloutTarget( * * *
-     * 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.
+     * Patches a single game server deployment rollout.
      * 
*/ - public void commitRollout( - com.google.cloud.gaming.v1alpha.CommitRolloutRequest request, + public void updateGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCommitRolloutMethodHelper(), getCallOptions()), + getChannel() + .newCall(getUpdateGameServerDeploymentRolloutMethodHelper(), getCallOptions()), request, responseObserver); } @@ -1060,16 +999,18 @@ public void commitRollout( * * *
-     * 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.
+     * Previews the game server deployment rollout. This API does not mutate the
+     * rollout resource.
      * 
*/ - public void revertRollout( - com.google.cloud.gaming.v1alpha.RevertRolloutRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void previewGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> + responseObserver) { asyncUnaryCall( - getChannel().newCall(getRevertRolloutMethodHelper(), getCallOptions()), + getChannel() + .newCall(getPreviewGameServerDeploymentRolloutMethodHelper(), getCallOptions()), request, responseObserver); } @@ -1078,17 +1019,17 @@ public void revertRollout( * * *
-     * 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.
+     * Retrieves information about the current state of the deployment, e.g. it
+     * gathers all the fleets and autoscalars for this deployment.
+     * This includes fleets running older version of the deployment.
      * 
*/ - public void getDeploymentTarget( - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest request, - io.grpc.stub.StreamObserver + public void fetchDeploymentState( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetDeploymentTargetMethodHelper(), getCallOptions()), + getChannel().newCall(getFetchDeploymentStateMethodHelper(), getCallOptions()), request, responseObserver); } @@ -1098,8 +1039,8 @@ public void getDeploymentTarget( * * *
-   * The game server deployment is used to configure the deployment of game server
-   * software to Agones Fleets in game server clusters.
+   * The game server deployment is used to control the deployment of game server
+   * software to Agones fleets.
    * 
*/ public static final class GameServerDeploymentsServiceBlockingStub @@ -1189,73 +1130,63 @@ public com.google.longrunning.Operation updateGameServerDeployment( * * *
-     * 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.
+     * Gets details a single game server deployment rollout.
      * 
*/ - public com.google.longrunning.Operation setRolloutTarget( - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest request) { + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout + getGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest request) { return blockingUnaryCall( - getChannel(), getSetRolloutTargetMethodHelper(), getCallOptions(), request); + getChannel(), getGetGameServerDeploymentRolloutMethodHelper(), 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.
+     * Patches a single game server deployment rollout.
      * 
*/ - public com.google.longrunning.Operation commitRollout( - com.google.cloud.gaming.v1alpha.CommitRolloutRequest request) { + public com.google.longrunning.Operation updateGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request) { return blockingUnaryCall( - getChannel(), getCommitRolloutMethodHelper(), getCallOptions(), request); + getChannel(), + getUpdateGameServerDeploymentRolloutMethodHelper(), + 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.
+     * Previews the game server deployment rollout. This API does not mutate the
+     * rollout resource.
      * 
*/ - public com.google.longrunning.Operation revertRollout( - com.google.cloud.gaming.v1alpha.RevertRolloutRequest request) { + public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + previewGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest request) { return blockingUnaryCall( - getChannel(), getRevertRolloutMethodHelper(), getCallOptions(), request); + getChannel(), + getPreviewGameServerDeploymentRolloutMethodHelper(), + 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.
+     * Retrieves information about the current state of the deployment, e.g. it
+     * gathers all the fleets and autoscalars for this deployment.
+     * This includes fleets running older version of the deployment.
      * 
*/ - public com.google.cloud.gaming.v1alpha.DeploymentTarget getDeploymentTarget( - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest request) { + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse fetchDeploymentState( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest request) { return blockingUnaryCall( - getChannel(), getGetDeploymentTargetMethodHelper(), getCallOptions(), request); + getChannel(), getFetchDeploymentStateMethodHelper(), getCallOptions(), request); } } @@ -1263,8 +1194,8 @@ public com.google.cloud.gaming.v1alpha.DeploymentTarget getDeploymentTarget( * * *
-   * The game server deployment is used to configure the deployment of game server
-   * software to Agones Fleets in game server clusters.
+   * The game server deployment is used to control the deployment of game server
+   * software to Agones fleets.
    * 
*/ public static final class GameServerDeploymentsServiceFutureStub @@ -1365,74 +1296,66 @@ protected GameServerDeploymentsServiceFutureStub build( * * *
-     * Starts rollout of this game server deployment based on the given game
-     * server template.
+     * Gets details a single game server deployment rollout.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - startRollout(com.google.cloud.gaming.v1alpha.StartRolloutRequest request) { - return futureUnaryCall( - getChannel().newCall(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.common.util.concurrent.ListenableFuture - setRolloutTarget(com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout> + getGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest request) { return futureUnaryCall( - getChannel().newCall(getSetRolloutTargetMethodHelper(), getCallOptions()), request); + getChannel().newCall(getGetGameServerDeploymentRolloutMethodHelper(), 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.
+     * Patches a single game server deployment rollout.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - commitRollout(com.google.cloud.gaming.v1alpha.CommitRolloutRequest request) { + updateGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request) { return futureUnaryCall( - getChannel().newCall(getCommitRolloutMethodHelper(), getCallOptions()), request); + getChannel() + .newCall(getUpdateGameServerDeploymentRolloutMethodHelper(), 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.
+     * Previews the game server deployment rollout. This API does not mutate the
+     * rollout resource.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - revertRollout(com.google.cloud.gaming.v1alpha.RevertRolloutRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse> + previewGameServerDeploymentRollout( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest request) { return futureUnaryCall( - getChannel().newCall(getRevertRolloutMethodHelper(), getCallOptions()), request); + getChannel() + .newCall(getPreviewGameServerDeploymentRolloutMethodHelper(), 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.
+     * Retrieves information about the current state of the deployment, e.g. it
+     * gathers all the fleets and autoscalars for this deployment.
+     * This includes fleets running older version of the deployment.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gaming.v1alpha.DeploymentTarget> - getDeploymentTarget(com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest request) { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse> + fetchDeploymentState(com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest request) { return futureUnaryCall( - getChannel().newCall(getGetDeploymentTargetMethodHelper(), getCallOptions()), request); + getChannel().newCall(getFetchDeploymentStateMethodHelper(), getCallOptions()), request); } } @@ -1441,11 +1364,10 @@ protected GameServerDeploymentsServiceFutureStub build( 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 int METHODID_GET_GAME_SERVER_DEPLOYMENT_ROLLOUT = 5; + private static final int METHODID_UPDATE_GAME_SERVER_DEPLOYMENT_ROLLOUT = 6; + private static final int METHODID_PREVIEW_GAME_SERVER_DEPLOYMENT_ROLLOUT = 7; + private static final int METHODID_FETCH_DEPLOYMENT_STATE = 8; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1492,30 +1414,30 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_START_ROLLOUT: - serviceImpl.startRollout( - (com.google.cloud.gaming.v1alpha.StartRolloutRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_ROLLOUT_TARGET: - serviceImpl.setRolloutTarget( - (com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_GET_GAME_SERVER_DEPLOYMENT_ROLLOUT: + serviceImpl.getGameServerDeploymentRollout( + (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout>) + responseObserver); break; - case METHODID_COMMIT_ROLLOUT: - serviceImpl.commitRollout( - (com.google.cloud.gaming.v1alpha.CommitRolloutRequest) request, + case METHODID_UPDATE_GAME_SERVER_DEPLOYMENT_ROLLOUT: + serviceImpl.updateGameServerDeploymentRollout( + (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_REVERT_ROLLOUT: - serviceImpl.revertRollout( - (com.google.cloud.gaming.v1alpha.RevertRolloutRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_PREVIEW_GAME_SERVER_DEPLOYMENT_ROLLOUT: + serviceImpl.previewGameServerDeploymentRollout( + (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse>) + responseObserver); break; - case METHODID_GET_DEPLOYMENT_TARGET: - serviceImpl.getDeploymentTarget( - (com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) request, - (io.grpc.stub.StreamObserver) + case METHODID_FETCH_DEPLOYMENT_STATE: + serviceImpl.fetchDeploymentState( + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse>) responseObserver); break; default: @@ -1541,7 +1463,7 @@ private abstract static class GameServerDeploymentsServiceBaseDescriptorSupplier @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments.getDescriptor(); + return com.google.cloud.gaming.v1alpha.GameServerDeploymentsServiceOuterClass.getDescriptor(); } @java.lang.Override @@ -1587,11 +1509,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateGameServerDeploymentMethodHelper()) .addMethod(getDeleteGameServerDeploymentMethodHelper()) .addMethod(getUpdateGameServerDeploymentMethodHelper()) - .addMethod(getStartRolloutMethodHelper()) - .addMethod(getSetRolloutTargetMethodHelper()) - .addMethod(getCommitRolloutMethodHelper()) - .addMethod(getRevertRolloutMethodHelper()) - .addMethod(getGetDeploymentTargetMethodHelper()) + .addMethod(getGetGameServerDeploymentRolloutMethodHelper()) + .addMethod(getUpdateGameServerDeploymentRolloutMethodHelper()) + .addMethod(getPreviewGameServerDeploymentRolloutMethodHelper()) + .addMethod(getFetchDeploymentStateMethodHelper()) .build(); } } diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceGrpc.java index 1ecccbdd..d50d5919 100644 --- a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceGrpc.java +++ b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,13 +26,13 @@ * * *
- * Realm provides grouping of game server clusters that are serving particular
+ * Realm provides grouping of game server clusters that are serving a particular
  * gamer population.
  * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/cloud/gaming/v1alpha/realms.proto") + comments = "Source: google/cloud/gaming/v1alpha/realms_service.proto") public final class RealmsServiceGrpc { private RealmsServiceGrpc() {} @@ -305,6 +305,65 @@ private RealmsServiceGrpc() {} return getUpdateRealmMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getPreviewRealmUpdateMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> + METHOD_PREVIEW_REALM_UPDATE = getPreviewRealmUpdateMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> + getPreviewRealmUpdateMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> + getPreviewRealmUpdateMethod() { + return getPreviewRealmUpdateMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> + getPreviewRealmUpdateMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> + getPreviewRealmUpdateMethod; + if ((getPreviewRealmUpdateMethod = RealmsServiceGrpc.getPreviewRealmUpdateMethod) == null) { + synchronized (RealmsServiceGrpc.class) { + if ((getPreviewRealmUpdateMethod = RealmsServiceGrpc.getPreviewRealmUpdateMethod) == null) { + RealmsServiceGrpc.getPreviewRealmUpdateMethod = + getPreviewRealmUpdateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.gaming.v1alpha.RealmsService", "PreviewRealmUpdate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RealmsServiceMethodDescriptorSupplier("PreviewRealmUpdate")) + .build(); + } + } + } + return getPreviewRealmUpdateMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static RealmsServiceStub newStub(io.grpc.Channel channel) { return new RealmsServiceStub(channel); @@ -326,7 +385,7 @@ public static RealmsServiceFutureStub newFutureStub(io.grpc.Channel channel) { * * *
-   * Realm provides grouping of game server clusters that are serving particular
+   * Realm provides grouping of game server clusters that are serving a particular
    * gamer population.
    * 
*/ @@ -398,6 +457,20 @@ public void updateRealm( asyncUnimplementedUnaryCall(getUpdateRealmMethodHelper(), responseObserver); } + /** + * + * + *
+     * Previews patches to a single Realm.
+     * 
+ */ + public void previewRealmUpdate( + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getPreviewRealmUpdateMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -432,6 +505,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.gaming.v1alpha.UpdateRealmRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_REALM))) + .addMethod( + getPreviewRealmUpdateMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse>( + this, METHODID_PREVIEW_REALM_UPDATE))) .build(); } } @@ -440,7 +520,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * Realm provides grouping of game server clusters that are serving particular
+   * Realm provides grouping of game server clusters that are serving a particular
    * gamer population.
    * 
*/ @@ -538,13 +618,30 @@ public void updateRealm( request, responseObserver); } + + /** + * + * + *
+     * Previews patches to a single Realm.
+     * 
+ */ + public void previewRealmUpdate( + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getPreviewRealmUpdateMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** * * *
-   * Realm provides grouping of game server clusters that are serving particular
+   * Realm provides grouping of game server clusters that are serving a particular
    * gamer population.
    * 
*/ @@ -627,13 +724,26 @@ public com.google.longrunning.Operation updateRealm( return blockingUnaryCall( getChannel(), getUpdateRealmMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+     * Previews patches to a single Realm.
+     * 
+ */ + public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse previewRealmUpdate( + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest request) { + return blockingUnaryCall( + getChannel(), getPreviewRealmUpdateMethodHelper(), getCallOptions(), request); + } } /** * * *
-   * Realm provides grouping of game server clusters that are serving particular
+   * Realm provides grouping of game server clusters that are serving a particular
    * gamer population.
    * 
*/ @@ -718,6 +828,20 @@ protected RealmsServiceFutureStub build( return futureUnaryCall( getChannel().newCall(getUpdateRealmMethodHelper(), getCallOptions()), request); } + + /** + * + * + *
+     * Previews patches to a single Realm.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse> + previewRealmUpdate(com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest request) { + return futureUnaryCall( + getChannel().newCall(getPreviewRealmUpdateMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_LIST_REALMS = 0; @@ -725,6 +849,7 @@ protected RealmsServiceFutureStub build( private static final int METHODID_CREATE_REALM = 2; private static final int METHODID_DELETE_REALM = 3; private static final int METHODID_UPDATE_REALM = 4; + private static final int METHODID_PREVIEW_REALM_UPDATE = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -770,6 +895,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.gaming.v1alpha.UpdateRealmRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PREVIEW_REALM_UPDATE: + serviceImpl.previewRealmUpdate( + (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -793,7 +925,7 @@ private abstract static class RealmsServiceBaseDescriptorSupplier @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gaming.v1alpha.Realms.getDescriptor(); + return com.google.cloud.gaming.v1alpha.RealmsServiceOuterClass.getDescriptor(); } @java.lang.Override @@ -839,6 +971,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateRealmMethodHelper()) .addMethod(getDeleteRealmMethodHelper()) .addMethod(getUpdateRealmMethodHelper()) + .addMethod(getPreviewRealmUpdateMethodHelper()) .build(); } } diff --git a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceGrpc.java b/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceGrpc.java deleted file mode 100644 index ff9f27c9..00000000 --- a/grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPoliciesServiceGrpc.java +++ /dev/null @@ -1,899 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gaming.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - * - * - *
- * 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 - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService", - "ListScalingPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ScalingPoliciesServiceMethodDescriptorSupplier("ListScalingPolicies")) - .build(); - } - } - } - return getListScalingPoliciesMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetScalingPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest, - com.google.cloud.gaming.v1alpha.ScalingPolicy> - METHOD_GET_SCALING_POLICY = getGetScalingPolicyMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest, - com.google.cloud.gaming.v1alpha.ScalingPolicy> - getGetScalingPolicyMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest, - com.google.cloud.gaming.v1alpha.ScalingPolicy> - getGetScalingPolicyMethod() { - return getGetScalingPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest, - com.google.cloud.gaming.v1alpha.ScalingPolicy> - getGetScalingPolicyMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest, - com.google.cloud.gaming.v1alpha.ScalingPolicy> - getGetScalingPolicyMethod; - if ((getGetScalingPolicyMethod = ScalingPoliciesServiceGrpc.getGetScalingPolicyMethod) - == null) { - synchronized (ScalingPoliciesServiceGrpc.class) { - if ((getGetScalingPolicyMethod = ScalingPoliciesServiceGrpc.getGetScalingPolicyMethod) - == null) { - ScalingPoliciesServiceGrpc.getGetScalingPolicyMethod = - getGetScalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService", - "GetScalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance())) - .setSchemaDescriptor( - new ScalingPoliciesServiceMethodDescriptorSupplier("GetScalingPolicy")) - .build(); - } - } - } - return getGetScalingPolicyMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateScalingPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest, - com.google.longrunning.Operation> - METHOD_CREATE_SCALING_POLICY = getCreateScalingPolicyMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest, - com.google.longrunning.Operation> - getCreateScalingPolicyMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest, - com.google.longrunning.Operation> - getCreateScalingPolicyMethod() { - return getCreateScalingPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest, - com.google.longrunning.Operation> - getCreateScalingPolicyMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest, - com.google.longrunning.Operation> - getCreateScalingPolicyMethod; - if ((getCreateScalingPolicyMethod = ScalingPoliciesServiceGrpc.getCreateScalingPolicyMethod) - == null) { - synchronized (ScalingPoliciesServiceGrpc.class) { - if ((getCreateScalingPolicyMethod = ScalingPoliciesServiceGrpc.getCreateScalingPolicyMethod) - == null) { - ScalingPoliciesServiceGrpc.getCreateScalingPolicyMethod = - getCreateScalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService", - "CreateScalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ScalingPoliciesServiceMethodDescriptorSupplier("CreateScalingPolicy")) - .build(); - } - } - } - return getCreateScalingPolicyMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteScalingPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest, - com.google.longrunning.Operation> - METHOD_DELETE_SCALING_POLICY = getDeleteScalingPolicyMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest, - com.google.longrunning.Operation> - getDeleteScalingPolicyMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest, - com.google.longrunning.Operation> - getDeleteScalingPolicyMethod() { - return getDeleteScalingPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest, - com.google.longrunning.Operation> - getDeleteScalingPolicyMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest, - com.google.longrunning.Operation> - getDeleteScalingPolicyMethod; - if ((getDeleteScalingPolicyMethod = ScalingPoliciesServiceGrpc.getDeleteScalingPolicyMethod) - == null) { - synchronized (ScalingPoliciesServiceGrpc.class) { - if ((getDeleteScalingPolicyMethod = ScalingPoliciesServiceGrpc.getDeleteScalingPolicyMethod) - == null) { - ScalingPoliciesServiceGrpc.getDeleteScalingPolicyMethod = - getDeleteScalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService", - "DeleteScalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ScalingPoliciesServiceMethodDescriptorSupplier("DeleteScalingPolicy")) - .build(); - } - } - } - return getDeleteScalingPolicyMethod; - } - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateScalingPolicyMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest, - com.google.longrunning.Operation> - METHOD_UPDATE_SCALING_POLICY = getUpdateScalingPolicyMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest, - com.google.longrunning.Operation> - getUpdateScalingPolicyMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest, - com.google.longrunning.Operation> - getUpdateScalingPolicyMethod() { - return getUpdateScalingPolicyMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest, - com.google.longrunning.Operation> - getUpdateScalingPolicyMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest, - com.google.longrunning.Operation> - getUpdateScalingPolicyMethod; - if ((getUpdateScalingPolicyMethod = ScalingPoliciesServiceGrpc.getUpdateScalingPolicyMethod) - == null) { - synchronized (ScalingPoliciesServiceGrpc.class) { - if ((getUpdateScalingPolicyMethod = ScalingPoliciesServiceGrpc.getUpdateScalingPolicyMethod) - == null) { - ScalingPoliciesServiceGrpc.getUpdateScalingPolicyMethod = - getUpdateScalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.gaming.v1alpha.ScalingPoliciesService", - "UpdateScalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ScalingPoliciesServiceMethodDescriptorSupplier("UpdateScalingPolicy")) - .build(); - } - } - } - return getUpdateScalingPolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ScalingPoliciesServiceStub newStub(io.grpc.Channel channel) { - return new ScalingPoliciesServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ScalingPoliciesServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new ScalingPoliciesServiceBlockingStub(channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ScalingPoliciesServiceFutureStub newFutureStub(io.grpc.Channel channel) { - return new ScalingPoliciesServiceFutureStub(channel); - } - - /** - * - * - *
-   * 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 - responseObserver) { - asyncUnimplementedUnaryCall(getListScalingPoliciesMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single scaling policy.
-     * 
- */ - public void getScalingPolicy( - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getGetScalingPolicyMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * 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 responseObserver) { - asyncUnimplementedUnaryCall(getCreateScalingPolicyMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single scaling policy.
-     * 
- */ - public void deleteScalingPolicy( - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteScalingPolicyMethodHelper(), responseObserver); - } - - /** - * - * - *
-     * Patches a single scaling policy.
-     * 
- */ - public void updateScalingPolicy( - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateScalingPolicyMethodHelper(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListScalingPoliciesMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest, - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse>( - this, METHODID_LIST_SCALING_POLICIES))) - .addMethod( - getGetScalingPolicyMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest, - com.google.cloud.gaming.v1alpha.ScalingPolicy>( - this, METHODID_GET_SCALING_POLICY))) - .addMethod( - getCreateScalingPolicyMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SCALING_POLICY))) - .addMethod( - getDeleteScalingPolicyMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SCALING_POLICY))) - .addMethod( - getUpdateScalingPolicyMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SCALING_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * The cloud gaming scaling policy is used to configure scaling parameters for
-   * each fleet.
-   * 
- */ - public static final class ScalingPoliciesServiceStub - extends io.grpc.stub.AbstractStub { - private ScalingPoliciesServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private ScalingPoliciesServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ScalingPoliciesServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ScalingPoliciesServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists ScalingPolicies in a given project and location.
-     * 
- */ - public void listScalingPolicies( - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListScalingPoliciesMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single scaling policy.
-     * 
- */ - public void getScalingPolicy( - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetScalingPolicyMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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 responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateScalingPolicyMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single scaling policy.
-     * 
- */ - public void deleteScalingPolicy( - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteScalingPolicyMethodHelper(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Patches a single scaling policy.
-     * 
- */ - public void updateScalingPolicy( - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateScalingPolicyMethodHelper(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The cloud gaming scaling policy is used to configure scaling parameters for
-   * each fleet.
-   * 
- */ - public static final class ScalingPoliciesServiceBlockingStub - extends io.grpc.stub.AbstractStub { - private ScalingPoliciesServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private ScalingPoliciesServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ScalingPoliciesServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ScalingPoliciesServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * 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 { - private ScalingPoliciesServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private ScalingPoliciesServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ScalingPoliciesServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ScalingPoliciesServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * 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 - createScalingPolicy(com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateScalingPolicyMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single scaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteScalingPolicy(com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest request) { - return futureUnaryCall( - getChannel().newCall(getDeleteScalingPolicyMethodHelper(), getCallOptions()), request); - } - - /** - * - * - *
-     * Patches a single scaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateScalingPolicy(com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateScalingPolicyMethodHelper(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_SCALING_POLICIES = 0; - private static final int METHODID_GET_SCALING_POLICY = 1; - private static final int METHODID_CREATE_SCALING_POLICY = 2; - private static final int METHODID_DELETE_SCALING_POLICY = 3; - private static final int METHODID_UPDATE_SCALING_POLICY = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ScalingPoliciesServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ScalingPoliciesServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_SCALING_POLICIES: - serviceImpl.listScalingPolicies( - (com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse>) - responseObserver); - break; - case METHODID_GET_SCALING_POLICY: - serviceImpl.getScalingPolicy( - (com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SCALING_POLICY: - serviceImpl.createScalingPolicy( - (com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SCALING_POLICY: - serviceImpl.deleteScalingPolicy( - (com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SCALING_POLICY: - serviceImpl.updateScalingPolicy( - (com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ScalingPoliciesServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ScalingPoliciesServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ScalingPoliciesService"); - } - } - - private static final class ScalingPoliciesServiceFileDescriptorSupplier - extends ScalingPoliciesServiceBaseDescriptorSupplier { - ScalingPoliciesServiceFileDescriptorSupplier() {} - } - - private static final class ScalingPoliciesServiceMethodDescriptorSupplier - extends ScalingPoliciesServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ScalingPoliciesServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ScalingPoliciesServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ScalingPoliciesServiceFileDescriptorSupplier()) - .addMethod(getListScalingPoliciesMethodHelper()) - .addMethod(getGetScalingPolicyMethodHelper()) - .addMethod(getCreateScalingPolicyMethodHelper()) - .addMethod(getDeleteScalingPolicyMethodHelper()) - .addMethod(getUpdateScalingPolicyMethodHelper()) - .build(); - } - } - } - return result; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml b/proto-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml index 65f825f1..0c5a18f2 100644 --- a/proto-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml +++ b/proto-google-cloud-gameservices-v1alpha/clirr-ignored-differences.xml @@ -17,17 +17,144 @@ boolean has*(*) - + - 7006 - com/google/cloud/gaming/v1alpha/FleetAutoscalerSettings* - float getBufferSizePercentage() - int + 6011 + com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo* + GKE_NAME_FIELD_NUMBER - 7005 - com/google/cloud/gaming/v1alpha/FleetAutoscalerSettings$Builder - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings$Builder setBufferSizePercentage(float) - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings$Builder setBufferSizePercentage(int) + 6011 + com/google/cloud/gaming/v1alpha/GameServerDeployment* + NEW_GAME_SERVER_TEMPLATE_FIELD_NUMBER + + + 6011 + com/google/cloud/gaming/v1alpha/GameServerDeployment* + STABLE_GAME_SERVER_TEMPLATE_FIELD_NUMBER + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo + * get*() + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder + * get*() + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo$Builder + * + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerDeployment + * get*() + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerDeployment + * has*() + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerDeployment$Builder + * + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder + com.google.cloud.gaming.v1alpha.GameServerTemplate* get*() + + + 7002 + com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder + boolean has*() + + + 8001 + com/google/cloud/gaming/v1alpha/AllocationPolic* + + + 8001 + com/google/cloud/gaming/v1alpha/ClusterPercentageSelector* + + + 8001 + com/google/cloud/gaming/v1alpha/CommitRolloutRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/CreateScalingPolicyRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/DeleteAllocationPolicyRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/DeleteScalingPolicyRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/DeploymentTarget* + + + 8001 + com/google/cloud/gaming/v1alpha/FleetAutoscalerSettings** + + + 8001 + com/google/cloud/gaming/v1alpha/GameServerTemplate* + + + 8001 + com/google/cloud/gaming/v1alpha/GetAllocationPolicyRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/GetDeploymentTargetRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/GetScalingPolicyRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/ListAllocationPolicies* + + + 8001 + com/google/cloud/gaming/v1alpha/ListScalingPolicies* + + + 8001 + com/google/cloud/gaming/v1alpha/RevertRolloutRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/ScalingPolic* + + + 8001 + com/google/cloud/gaming/v1alpha/SetRolloutTargetRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/StartRolloutRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/UpdateAllocationPolicyRequest* + + + 8001 + com/google/cloud/gaming/v1alpha/UpdateScalingPolicyRequest* diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicies.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicies.java deleted file mode 100644 index 38cc1b59..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicies.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public final class AllocationPolicies { - private AllocationPolicies() {} - - 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_ListAllocationPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/gaming/v1alpha/allocation" - + "_policies.proto\022\033google.cloud.gaming.v1a" - + "lpha\032\034google/api/annotations.proto\032(goog" - + "le/cloud/gaming/v1alpha/common.proto\032#go" - + "ogle/longrunning/operations.proto\032 googl" - + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\032\036google/protobuf/wr" - + "appers.proto\032\027google/api/client.proto\"x\n" - + "\035ListAllocationPoliciesRequest\022\016\n\006parent" - + "\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"" - + "\205\001\n\036ListAllocationPoliciesResponse\022J\n\023al" - + "location_policies\030\001 \003(\0132-.google.cloud.g" - + "aming.v1alpha.AllocationPolicy\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"*\n\032GetAllocationPolicyRe" - + "quest\022\014\n\004name\030\001 \001(\t\"\227\001\n\035CreateAllocation" - + "PolicyRequest\022\016\n\006parent\030\001 \001(\t\022\034\n\024allocat" - + "ion_policy_id\030\002 \001(\t\022H\n\021allocation_policy" - + "\030\003 \001(\0132-.google.cloud.gaming.v1alpha.All" - + "ocationPolicy\"-\n\035DeleteAllocationPolicyR" - + "equest\022\014\n\004name\030\001 \001(\t\"\232\001\n\035UpdateAllocatio" - + "nPolicyRequest\022H\n\021allocation_policy\030\001 \001(" - + "\0132-.google.cloud.gaming.v1alpha.Allocati" - + "onPolicy\022/\n\013update_mask\030\002 \001(\0132\032.google.p" - + "rotobuf.FieldMask\"\274\003\n\020AllocationPolicy\022\014" - + "\n\004name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022/\n\013update_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp\022I\n\006labels" - + "\030\004 \003(\01329.google.cloud.gaming.v1alpha.All" - + "ocationPolicy.LabelsEntry\022-\n\010priority\030\010 " - + "\001(\0132\033.google.protobuf.Int32Value\022\016\n\006weig" - + "ht\030\t \001(\005\022E\n\021cluster_selectors\030\n \003(\0132*.go" - + "ogle.cloud.gaming.v1alpha.LabelSelector\022" - + "8\n\tschedules\030\013 \003(\0132%.google.cloud.gaming" - + ".v1alpha.Schedule\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\363\010\n\031AllocationP" - + "oliciesService\022\326\001\n\026ListAllocationPolicie" - + "s\022:.google.cloud.gaming.v1alpha.ListAllo" - + "cationPoliciesRequest\032;.google.cloud.gam" - + "ing.v1alpha.ListAllocationPoliciesRespon" - + "se\"C\202\323\344\223\002=\022;/v1alpha/{parent=projects/*/" - + "locations/*}/allocationPolicies\022\302\001\n\023GetA" - + "llocationPolicy\0227.google.cloud.gaming.v1" - + "alpha.GetAllocationPolicyRequest\032-.googl" - + "e.cloud.gaming.v1alpha.AllocationPolicy\"" - + "C\202\323\344\223\002=\022;/v1alpha/{name=projects/*/locat" - + "ions/*/allocationPolicies/*}\022\313\001\n\026CreateA" - + "llocationPolicy\022:.google.cloud.gaming.v1" - + "alpha.CreateAllocationPolicyRequest\032\035.go" - + "ogle.longrunning.Operation\"V\202\323\344\223\002P\";/v1a" - + "lpha/{parent=projects/*/locations/*}/all" - + "ocationPolicies:\021allocation_policy\022\270\001\n\026D" - + "eleteAllocationPolicy\022:.google.cloud.gam" - + "ing.v1alpha.DeleteAllocationPolicyReques" - + "t\032\035.google.longrunning.Operation\"C\202\323\344\223\002=" - + "*;/v1alpha/{name=projects/*/locations/*/" - + "allocationPolicies/*}\022\335\001\n\026UpdateAllocati" - + "onPolicy\022:.google.cloud.gaming.v1alpha.U" - + "pdateAllocationPolicyRequest\032\035.google.lo" - + "ngrunning.Operation\"h\202\323\344\223\002b2M/v1alpha/{a" - + "llocation_policy.name=projects/*/locatio" - + "ns/*/allocationPolicies/*}:\021allocation_p" - + "olicy\032O\312A\033gameservices.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformBf\n\037com.google.cloud.gaming.v1alph" - + "aP\001ZAgoogle.golang.org/genproto/googleap" - + "is/cloud/gaming/v1alpha;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.cloud.gaming.v1alpha.Common.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }, - assigner); - internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesResponse_descriptor, - new java.lang.String[] { - "AllocationPolicies", "NextPageToken", - }); - internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "AllocationPolicyId", "AllocationPolicy", - }); - internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_descriptor, - new java.lang.String[] { - "AllocationPolicy", "UpdateMask", - }); - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "Priority", - "Weight", - "ClusterSelectors", - "Schedules", - }); - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_LabelsEntry_descriptor = - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.Common.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicyName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicyName.java deleted file mode 100644 index 53dc2f07..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicyName.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gaming.v1alpha; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -@javax.annotation.Generated("by GAPIC protoc plugin") -public class AllocationPolicyName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/allocationPolicies/{allocation_policy}"); - - private volatile Map fieldValuesMap; - - private final String project; - private final String location; - private final String allocationPolicy; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getAllocationPolicy() { - return allocationPolicy; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private AllocationPolicyName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - allocationPolicy = Preconditions.checkNotNull(builder.getAllocationPolicy()); - } - - public static AllocationPolicyName of(String project, String location, String allocationPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAllocationPolicy(allocationPolicy) - .build(); - } - - public static String format(String project, String location, String allocationPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAllocationPolicy(allocationPolicy) - .build() - .toString(); - } - - public static AllocationPolicyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "AllocationPolicyName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("allocation_policy")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (AllocationPolicyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("location", location); - fieldMapBuilder.put("allocationPolicy", allocationPolicy); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate( - "project", project, "location", location, "allocation_policy", allocationPolicy); - } - - /** Builder for AllocationPolicyName. */ - public static class Builder { - - private String project; - private String location; - private String allocationPolicy; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getAllocationPolicy() { - return allocationPolicy; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setAllocationPolicy(String allocationPolicy) { - this.allocationPolicy = allocationPolicy; - return this; - } - - private Builder() {} - - private Builder(AllocationPolicyName allocationPolicyName) { - project = allocationPolicyName.project; - location = allocationPolicyName.location; - allocationPolicy = allocationPolicyName.allocationPolicy; - } - - public AllocationPolicyName build() { - return new AllocationPolicyName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof AllocationPolicyName) { - AllocationPolicyName that = (AllocationPolicyName) o; - return (this.project.equals(that.project)) - && (this.location.equals(that.location)) - && (this.allocationPolicy.equals(that.allocationPolicy)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= location.hashCode(); - h *= 1000003; - h ^= allocationPolicy.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicyOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicyOrBuilder.java deleted file mode 100644 index b602f3a2..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicyOrBuilder.java +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface AllocationPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.AllocationPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 getLabels(); - /** - * - * - *
-   * The labels associated with the allocation policy. Each label is a key-value
-   * pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * 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 getClusterSelectorsList(); - /** - * - * - *
-   * 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 - 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 getSchedulesList(); - /** - * - * - *
-   * 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 - 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/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ClusterPercentageSelector.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ClusterPercentageSelector.java deleted file mode 100644 index b4346d40..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ClusterPercentageSelector.java +++ /dev/null @@ -1,820 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ClusterPercentageSelector) - com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder { - 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); - } - - // Construct using com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (clusterSelectorBuilder_ == null) { - clusterSelector_ = null; - } else { - clusterSelector_ = null; - clusterSelectorBuilder_ = null; - } - percent_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_ClusterPercentageSelector_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector build() { - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector buildPartial() { - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector result = - new com.google.cloud.gaming.v1alpha.ClusterPercentageSelector(this); - if (clusterSelectorBuilder_ == null) { - result.clusterSelector_ = clusterSelector_; - } else { - result.clusterSelector_ = clusterSelectorBuilder_.build(); - } - result.percent_ = percent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ClusterPercentageSelector) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ClusterPercentageSelector) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ClusterPercentageSelector other) { - if (other == com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.getDefaultInstance()) - return this; - if (other.hasClusterSelector()) { - mergeClusterSelector(other.getClusterSelector()); - } - if (other.getPercent() != 0) { - setPercent(other.getPercent()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ClusterPercentageSelector) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.LabelSelector clusterSelector_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder> - clusterSelectorBuilder_; - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterPercentageSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterPercentageSelector(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ClusterPercentageSelectorOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ClusterPercentageSelectorOrBuilder.java deleted file mode 100644 index d69762c7..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ClusterPercentageSelectorOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ClusterPercentageSelectorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ClusterPercentageSelector) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java index 0fe7c783..792fe47b 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,6 +31,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_OperationMetadata_OperationStatusEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_OperationStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -39,10 +47,50 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_RealmSelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_RealmSelector_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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_FleetDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_DeployedState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_SpecSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_TargetDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_TargetState_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -53,45 +101,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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" + + "to\022\033google.cloud.gaming.v1alpha\032\037google/" + + "api/field_behavior.proto\032\036google/protobu" + + "f/duration.proto\032\037google/protobuf/timest" + + "amp.proto\032\034google/api/annotations.proto\"" + + "\344\003\n\021OperationMetadata\0224\n\013create_time\030\001 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010e" + + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(" + + "\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026r" + + "equested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_" + + "version\030\007 \001(\tB\003\340A\003\022\030\n\013unreachable\030\010 \003(\tB" + + "\003\340A\003\022b\n\020operation_status\030\t \003(\0132C.google." + + "cloud.gaming.v1alpha.OperationMetadata.O" + + "perationStatusEntryB\003\340A\003\032d\n\024OperationSta" + + "tusEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.g" + + "oogle.cloud.gaming.v1alpha.OperationStat" + + "us:\0028\001\"\363\001\n\017OperationStatus\022\021\n\004done\030\001 \001(\010" + + "B\003\340A\003\022J\n\nerror_code\030\002 \001(\01626.google.cloud" + + ".gaming.v1alpha.OperationStatus.ErrorCod" + + "e\022\025\n\rerror_message\030\003 \001(\t\"j\n\tErrorCode\022\032\n" + + "\026ERROR_CODE_UNSPECIFIED\020\000\022\022\n\016INTERNAL_ER" + + "ROR\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\026\n\022CLUSTER_" + + "CONNECTION\020\003\"\206\001\n\rLabelSelector\022F\n\006labels" + + "\030\001 \003(\01326.google.cloud.gaming.v1alpha.Lab" + + "elSelector.LabelsEntry\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\037\n\rRealmSe" + + "lector\022\016\n\006realms\030\001 \003(\t\"\261\001\n\010Schedule\022.\n\ns" + + "tart_time\030\001 \001(\0132\032.google.protobuf.Timest" + + "amp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf." + + "Timestamp\0224\n\021cron_job_duration\030\003 \001(\0132\031.g" + + "oogle.protobuf.Duration\022\021\n\tcron_spec\030\004 \001" + + "(\t\"\211\002\n\014FleetDetails\022 \n\030game_server_clust" + + "er_name\030\001 \001(\t\022\022\n\nfleet_name\030\002 \001(\t\022\037\n\027gam" + + "e_server_config_name\030\003 \001(\t\022W\n\022autoscaler" + + "_details\030\004 \001(\0132;.google.cloud.gaming.v1a" + + "lpha.FleetDetails.AutoscalerDetails\032I\n\021A" + + "utoscalerDetails\022\027\n\017autoscaler_name\030\001 \001(" + + "\t\022\033\n\023scaling_config_name\030\002 \001(\t\"N\n\rDeploy" + + "edState\0229\n\006fleets\030\001 \003(\0132).google.cloud.g" + + "aming.v1alpha.FleetDetails:\002\030\001\";\n\nSpecSo" + + "urce\022\037\n\027game_server_config_name\030\001 \001(\t\022\014\n" + + "\004name\030\002 \001(\t\"\306\004\n\rTargetDetails\022 \n\030game_se" + + "rver_cluster_name\030\001 \001(\t\022#\n\033game_server_d" + + "eployment_name\030\002 \001(\t\022T\n\rfleet_details\030\003 " + + "\003(\0132=.google.cloud.gaming.v1alpha.Target" + + "Details.TargetFleetDetails\032\227\003\n\022TargetFle" + + "etDetails\022X\n\005fleet\030\001 \001(\0132I.google.cloud." + + "gaming.v1alpha.TargetDetails.TargetFleet" + + "Details.TargetFleet\022g\n\nautoscaler\030\002 \001(\0132" + + "S.google.cloud.gaming.v1alpha.TargetDeta" + + "ils.TargetFleetDetails.TargetFleetAutosc" + + "aler\032Y\n\013TargetFleet\022\014\n\004name\030\001 \001(\t\022<\n\013spe" + + "c_source\030\002 \001(\0132\'.google.cloud.gaming.v1a" + + "lpha.SpecSource\032c\n\025TargetFleetAutoscaler" + + "\022\014\n\004name\030\001 \001(\t\022<\n\013spec_source\030\002 \001(\0132\'.go" + + "ogle.cloud.gaming.v1alpha.SpecSource\"J\n\013" + + "TargetState\022;\n\007details\030\001 \003(\0132*.google.cl" + + "oud.gaming.v1alpha.TargetDetailsBf\n\037com." + + "google.cloud.gaming.v1alphaP\001ZAgoogle.go" + + "lang.org/genproto/googleapis/cloud/gamin" + + "g/v1alpha;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); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_gaming_v1alpha_OperationMetadata_fieldAccessorTable = @@ -105,9 +185,29 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "StatusMessage", "RequestedCancellation", "ApiVersion", + "Unreachable", + "OperationStatus", }); - internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor = + internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_descriptor = + internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gaming_v1alpha_OperationStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor, + new java.lang.String[] { + "Done", "ErrorCode", "ErrorMessage", + }); + internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_gaming_v1alpha_LabelSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_LabelSelector_descriptor, @@ -124,18 +224,109 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gaming_v1alpha_RealmSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor, + new java.lang.String[] { + "Realms", + }); internal_static_google_cloud_gaming_v1alpha_Schedule_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(4); 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(); + internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gaming_v1alpha_FleetDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor, + new java.lang.String[] { + "GameServerClusterName", "FleetName", "GameServerConfigName", "AutoscalerDetails", + }); + internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor = + internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor, + new java.lang.String[] { + "AutoscalerName", "ScalingConfigName", + }); + internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gaming_v1alpha_DeployedState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor, + new java.lang.String[] { + "Fleets", + }); + internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gaming_v1alpha_SpecSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor, + new java.lang.String[] { + "GameServerConfigName", "Name", + }); + internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gaming_v1alpha_TargetDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor, + new java.lang.String[] { + "GameServerClusterName", "GameServerDeploymentName", "FleetDetails", + }); + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor = + internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor, + new java.lang.String[] { + "Fleet", "Autoscaler", + }); + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor = + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor, + new java.lang.String[] { + "Name", "SpecSource", + }); + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor = + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor, + new java.lang.String[] { + "Name", "SpecSource", + }); + internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gaming_v1alpha_TargetState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor, + new java.lang.String[] { + "Details", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequestOrBuilder.java deleted file mode 100644 index 9d436b19..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface CreateAllocationPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
-   * 
- * - * string parent = 1; - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
-   * 
- * - * string parent = 1; - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ID of the allocation policy resource to be created.
-   * 
- * - * string allocation_policy_id = 2; - */ - java.lang.String getAllocationPolicyId(); - /** - * - * - *
-   * Required. The ID of the allocation policy resource to be created.
-   * 
- * - * string allocation_policy_id = 2; - */ - com.google.protobuf.ByteString getAllocationPolicyIdBytes(); - - /** - * - * - *
-   * Required. The allocation policy resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; - */ - boolean hasAllocationPolicy(); - /** - * - * - *
-   * Required. The allocation policy resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; - */ - com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicy(); - /** - * - * - *
-   * Required. The allocation policy resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; - */ - com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequest.java index da50b2e3..885c624a 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,6 +43,12 @@ private CreateGameServerClusterRequest() { gameServerClusterId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateGameServerClusterRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private CreateGameServerClusterRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -139,10 +144,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm-id}`.
+   * `projects/{project}/locations/{location}/realms/{realm-id}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -160,10 +169,14 @@ public java.lang.String getParent() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm-id}`.
+   * `projects/{project}/locations/{location}/realms/{realm-id}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -186,7 +199,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The ID of the game server cluster resource to be created. * * - * string game_server_cluster_id = 2; + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gameServerClusterId. */ public java.lang.String getGameServerClusterId() { java.lang.Object ref = gameServerClusterId_; @@ -206,7 +221,9 @@ public java.lang.String getGameServerClusterId() { * Required. The ID of the game server cluster resource to be created. * * - * string game_server_cluster_id = 2; + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gameServerClusterId. */ public com.google.protobuf.ByteString getGameServerClusterIdBytes() { java.lang.Object ref = gameServerClusterId_; @@ -229,7 +246,11 @@ public com.google.protobuf.ByteString getGameServerClusterIdBytes() { * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. */ public boolean hasGameServerCluster() { return gameServerCluster_ != null; @@ -241,7 +262,11 @@ public boolean hasGameServerCluster() { * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. */ public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { return gameServerCluster_ == null @@ -255,7 +280,9 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder() { @@ -634,10 +661,14 @@ public Builder mergeFrom( * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}`.
+     * `projects/{project}/locations/{location}/realms/{realm-id}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -655,10 +686,14 @@ public java.lang.String getParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}`.
+     * `projects/{project}/locations/{location}/realms/{realm-id}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -676,10 +711,15 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}`.
+     * `projects/{project}/locations/{location}/realms/{realm-id}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -695,10 +735,14 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}`.
+     * `projects/{project}/locations/{location}/realms/{realm-id}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -711,10 +755,15 @@ public Builder clearParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}`.
+     * `projects/{project}/locations/{location}/realms/{realm-id}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -735,7 +784,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Required. The ID of the game server cluster resource to be created. * * - * string game_server_cluster_id = 2; + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gameServerClusterId. */ public java.lang.String getGameServerClusterId() { java.lang.Object ref = gameServerClusterId_; @@ -755,7 +806,9 @@ public java.lang.String getGameServerClusterId() { * Required. The ID of the game server cluster resource to be created. * * - * string game_server_cluster_id = 2; + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gameServerClusterId. */ public com.google.protobuf.ByteString getGameServerClusterIdBytes() { java.lang.Object ref = gameServerClusterId_; @@ -775,7 +828,10 @@ public com.google.protobuf.ByteString getGameServerClusterIdBytes() { * Required. The ID of the game server cluster resource to be created. * * - * string game_server_cluster_id = 2; + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gameServerClusterId to set. + * @return This builder for chaining. */ public Builder setGameServerClusterId(java.lang.String value) { if (value == null) { @@ -793,7 +849,9 @@ public Builder setGameServerClusterId(java.lang.String value) { * Required. The ID of the game server cluster resource to be created. * * - * string game_server_cluster_id = 2; + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearGameServerClusterId() { @@ -808,7 +866,10 @@ public Builder clearGameServerClusterId() { * Required. The ID of the game server cluster resource to be created. * * - * string game_server_cluster_id = 2; + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gameServerClusterId to set. + * @return This builder for chaining. */ public Builder setGameServerClusterIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -834,7 +895,11 @@ public Builder setGameServerClusterIdBytes(com.google.protobuf.ByteString value) * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. */ public boolean hasGameServerCluster() { return gameServerClusterBuilder_ != null || gameServerCluster_ != null; @@ -846,7 +911,11 @@ public boolean hasGameServerCluster() { * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. */ public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { if (gameServerClusterBuilder_ == null) { @@ -864,7 +933,9 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { if (gameServerClusterBuilder_ == null) { @@ -886,7 +957,9 @@ public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCl * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGameServerCluster( com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { @@ -906,7 +979,9 @@ public Builder setGameServerCluster( * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { if (gameServerClusterBuilder_ == null) { @@ -932,7 +1007,9 @@ public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServer * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGameServerCluster() { if (gameServerClusterBuilder_ == null) { @@ -952,7 +1029,9 @@ public Builder clearGameServerCluster() { * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerClusterBuilder() { @@ -966,7 +1045,9 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerCl * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder() { @@ -985,7 +1066,9 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerCl * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gaming.v1alpha.GameServerCluster, diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequestOrBuilder.java index 50271f34..9b3bd2c9 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface CreateGameServerClusterRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm-id}`.
+   * `projects/{project}/locations/{location}/realms/{realm-id}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -39,10 +43,14 @@ public interface CreateGameServerClusterRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm-id}`.
+   * `projects/{project}/locations/{location}/realms/{realm-id}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -53,7 +61,9 @@ public interface CreateGameServerClusterRequestOrBuilder * Required. The ID of the game server cluster resource to be created. * * - * string game_server_cluster_id = 2; + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gameServerClusterId. */ java.lang.String getGameServerClusterId(); /** @@ -63,7 +73,9 @@ public interface CreateGameServerClusterRequestOrBuilder * Required. The ID of the game server cluster resource to be created. * * - * string game_server_cluster_id = 2; + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gameServerClusterId. */ com.google.protobuf.ByteString getGameServerClusterIdBytes(); @@ -74,7 +86,11 @@ public interface CreateGameServerClusterRequestOrBuilder * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. */ boolean hasGameServerCluster(); /** @@ -84,7 +100,11 @@ public interface CreateGameServerClusterRequestOrBuilder * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. */ com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster(); /** @@ -94,7 +114,9 @@ public interface CreateGameServerClusterRequestOrBuilder * Required. The game server cluster resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequest.java similarity index 51% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequest.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequest.java index 6bdb1245..7857f703 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateAllocationPolicyRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_configs.proto package com.google.cloud.gaming.v1alpha; @@ -22,24 +22,31 @@ * * *
- * Request message for AllocationPoliciesService.CreateAllocationPolicy.
+ * Request message for
+ * GameServerConfigsService.CreateGameServerConfig.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.CreateGameServerConfigRequest} */ -public final class CreateAllocationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 +public final class CreateGameServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) - CreateAllocationPolicyRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) + CreateGameServerConfigRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use CreateAllocationPolicyRequest.newBuilder() to construct. - private CreateAllocationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CreateGameServerConfigRequest.newBuilder() to construct. + private CreateGameServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAllocationPolicyRequest() { + private CreateGameServerConfigRequest() { parent_ = ""; - allocationPolicyId_ = ""; + configId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateGameServerConfigRequest(); } @java.lang.Override @@ -47,7 +54,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateAllocationPolicyRequest( + private CreateGameServerConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -55,7 +62,6 @@ private CreateAllocationPolicyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -77,21 +83,21 @@ private CreateAllocationPolicyRequest( { java.lang.String s = input.readStringRequireUtf8(); - allocationPolicyId_ = s; + configId_ = s; break; } case 26: { - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder subBuilder = null; - if (allocationPolicy_ != null) { - subBuilder = allocationPolicy_.toBuilder(); + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder subBuilder = null; + if (gameServerConfig_ != null) { + subBuilder = gameServerConfig_.toBuilder(); } - allocationPolicy_ = + gameServerConfig_ = input.readMessage( - com.google.cloud.gaming.v1alpha.AllocationPolicy.parser(), extensionRegistry); + com.google.cloud.gaming.v1alpha.GameServerConfig.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(allocationPolicy_); - allocationPolicy_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(gameServerConfig_); + gameServerConfig_ = subBuilder.buildPartial(); } break; @@ -116,18 +122,18 @@ private CreateAllocationPolicyRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_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 + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest.class, - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.class, + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; @@ -137,10 +143,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -158,10 +168,14 @@ public java.lang.String getParent() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -175,25 +189,27 @@ public com.google.protobuf.ByteString getParentBytes() { } } - public static final int ALLOCATION_POLICY_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object allocationPolicyId_; + public static final int CONFIG_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object configId_; /** * * *
-   * Required. The ID of the allocation policy resource to be created.
+   * Required. The ID of the game server config resource to be created.
    * 
* - * string allocation_policy_id = 2; + * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The configId. */ - public java.lang.String getAllocationPolicyId() { - java.lang.Object ref = allocationPolicyId_; + public java.lang.String getConfigId() { + java.lang.Object ref = configId_; 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; + configId_ = s; return s; } } @@ -201,62 +217,74 @@ public java.lang.String getAllocationPolicyId() { * * *
-   * Required. The ID of the allocation policy resource to be created.
+   * Required. The ID of the game server config resource to be created.
    * 
* - * string allocation_policy_id = 2; + * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for configId. */ - public com.google.protobuf.ByteString getAllocationPolicyIdBytes() { - java.lang.Object ref = allocationPolicyId_; + public com.google.protobuf.ByteString getConfigIdBytes() { + java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - allocationPolicyId_ = b; + configId_ = 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_; + public static final int GAME_SERVER_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.gaming.v1alpha.GameServerConfig gameServerConfig_; /** * * *
-   * Required. The allocation policy resource to be created.
+   * Required. The game server config resource to be created.
    * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerConfig field is set. */ - public boolean hasAllocationPolicy() { - return allocationPolicy_ != null; + public boolean hasGameServerConfig() { + return gameServerConfig_ != null; } /** * * *
-   * Required. The allocation policy resource to be created.
+   * Required. The game server config resource to be created.
    * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerConfig. */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicy() { - return allocationPolicy_ == null - ? com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfig() { + return gameServerConfig_ == null + ? com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance() + : gameServerConfig_; } /** * * *
-   * Required. The allocation policy resource to be created.
+   * Required. The game server config resource to be created.
    * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() { - return getAllocationPolicy(); + public com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigOrBuilder() { + return getGameServerConfig(); } private byte memoizedIsInitialized = -1; @@ -276,11 +304,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getAllocationPolicyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allocationPolicyId_); + if (!getConfigIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, configId_); } - if (allocationPolicy_ != null) { - output.writeMessage(3, getAllocationPolicy()); + if (gameServerConfig_ != null) { + output.writeMessage(3, getGameServerConfig()); } unknownFields.writeTo(output); } @@ -294,11 +322,11 @@ public int getSerializedSize() { if (!getParentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getAllocationPolicyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, allocationPolicyId_); + if (!getConfigIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configId_); } - if (allocationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAllocationPolicy()); + if (gameServerConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGameServerConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -310,17 +338,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest)) { + if (!(obj instanceof com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest other = - (com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) obj; + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest other = + (com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) 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 (!getConfigId().equals(other.getConfigId())) return false; + if (hasGameServerConfig() != other.hasGameServerConfig()) return false; + if (hasGameServerConfig()) { + if (!getGameServerConfig().equals(other.getGameServerConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -335,82 +363,82 @@ public int hashCode() { 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 = (37 * hash) + CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigId().hashCode(); + if (hasGameServerConfig()) { + hash = (37 * hash) + GAME_SERVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGameServerConfig().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest 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( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest 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) + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest 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( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest 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( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest 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( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest 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( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest 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( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest 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( + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -428,7 +456,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest prototype) { + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -446,31 +474,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for AllocationPoliciesService.CreateAllocationPolicy.
+   * Request message for
+   * GameServerConfigsService.CreateGameServerConfig.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.CreateGameServerConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_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 + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest.class, - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.class, + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.Builder.class); } - // Construct using com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest.newBuilder() + // Construct using com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -489,32 +518,32 @@ public Builder clear() { super.clear(); parent_ = ""; - allocationPolicyId_ = ""; + configId_ = ""; - if (allocationPolicyBuilder_ == null) { - allocationPolicy_ = null; + if (gameServerConfigBuilder_ == null) { + gameServerConfig_ = null; } else { - allocationPolicy_ = null; - allocationPolicyBuilder_ = null; + gameServerConfig_ = null; + gameServerConfigBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_CreateAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest + public com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest.getDefaultInstance(); + return com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest build() { - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest result = buildPartial(); + public com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest build() { + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -522,15 +551,15 @@ public com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest buildPartial() { - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest result = - new com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest(this); + public com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest buildPartial() { + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest result = + new com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest(this); result.parent_ = parent_; - result.allocationPolicyId_ = allocationPolicyId_; - if (allocationPolicyBuilder_ == null) { - result.allocationPolicy_ = allocationPolicy_; + result.configId_ = configId_; + if (gameServerConfigBuilder_ == null) { + result.gameServerConfig_ = gameServerConfig_; } else { - result.allocationPolicy_ = allocationPolicyBuilder_.build(); + result.gameServerConfig_ = gameServerConfigBuilder_.build(); } onBuilt(); return result; @@ -571,28 +600,28 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) other); + if (other instanceof com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) { + return mergeFrom((com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest other) { + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest other) { if (other - == com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest.getDefaultInstance()) + == com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } - if (!other.getAllocationPolicyId().isEmpty()) { - allocationPolicyId_ = other.allocationPolicyId_; + if (!other.getConfigId().isEmpty()) { + configId_ = other.configId_; onChanged(); } - if (other.hasAllocationPolicy()) { - mergeAllocationPolicy(other.getAllocationPolicy()); + if (other.hasGameServerConfig()) { + mergeGameServerConfig(other.getGameServerConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -609,12 +638,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest parsedMessage = null; + com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) + (com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -631,10 +660,14 @@ public Builder mergeFrom( * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -652,10 +685,14 @@ public java.lang.String getParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -673,10 +710,15 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -692,10 +734,14 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -708,10 +754,15 @@ public Builder clearParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -724,22 +775,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object allocationPolicyId_ = ""; + private java.lang.Object configId_ = ""; /** * * *
-     * Required. The ID of the allocation policy resource to be created.
+     * Required. The ID of the game server config resource to be created.
      * 
* - * string allocation_policy_id = 2; + * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The configId. */ - public java.lang.String getAllocationPolicyId() { - java.lang.Object ref = allocationPolicyId_; + public java.lang.String getConfigId() { + java.lang.Object ref = configId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - allocationPolicyId_ = s; + configId_ = s; return s; } else { return (java.lang.String) ref; @@ -749,17 +802,19 @@ public java.lang.String getAllocationPolicyId() { * * *
-     * Required. The ID of the allocation policy resource to be created.
+     * Required. The ID of the game server config resource to be created.
      * 
* - * string allocation_policy_id = 2; + * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for configId. */ - public com.google.protobuf.ByteString getAllocationPolicyIdBytes() { - java.lang.Object ref = allocationPolicyId_; + public com.google.protobuf.ByteString getConfigIdBytes() { + java.lang.Object ref = configId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - allocationPolicyId_ = b; + configId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -769,17 +824,20 @@ public com.google.protobuf.ByteString getAllocationPolicyIdBytes() { * * *
-     * Required. The ID of the allocation policy resource to be created.
+     * Required. The ID of the game server config resource to be created.
      * 
* - * string allocation_policy_id = 2; + * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The configId to set. + * @return This builder for chaining. */ - public Builder setAllocationPolicyId(java.lang.String value) { + public Builder setConfigId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - allocationPolicyId_ = value; + configId_ = value; onChanged(); return this; } @@ -787,14 +845,16 @@ public Builder setAllocationPolicyId(java.lang.String value) { * * *
-     * Required. The ID of the allocation policy resource to be created.
+     * Required. The ID of the game server config resource to be created.
      * 
* - * string allocation_policy_id = 2; + * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ - public Builder clearAllocationPolicyId() { + public Builder clearConfigId() { - allocationPolicyId_ = getDefaultInstance().getAllocationPolicyId(); + configId_ = getDefaultInstance().getConfigId(); onChanged(); return this; } @@ -802,76 +862,89 @@ public Builder clearAllocationPolicyId() { * * *
-     * Required. The ID of the allocation policy resource to be created.
+     * Required. The ID of the game server config resource to be created.
      * 
* - * string allocation_policy_id = 2; + * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for configId to set. + * @return This builder for chaining. */ - public Builder setAllocationPolicyIdBytes(com.google.protobuf.ByteString value) { + public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - allocationPolicyId_ = value; + configId_ = value; onChanged(); return this; } - private com.google.cloud.gaming.v1alpha.AllocationPolicy allocationPolicy_; + private com.google.cloud.gaming.v1alpha.GameServerConfig gameServerConfig_; 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_; + com.google.cloud.gaming.v1alpha.GameServerConfig, + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, + com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder> + gameServerConfigBuilder_; /** * * *
-     * Required. The allocation policy resource to be created.
+     * Required. The game server config resource to be created.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerConfig field is set. */ - public boolean hasAllocationPolicy() { - return allocationPolicyBuilder_ != null || allocationPolicy_ != null; + public boolean hasGameServerConfig() { + return gameServerConfigBuilder_ != null || gameServerConfig_ != null; } /** * * *
-     * Required. The allocation policy resource to be created.
+     * Required. The game server config resource to be created.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerConfig. */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicy() { - if (allocationPolicyBuilder_ == null) { - return allocationPolicy_ == null - ? com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfig() { + if (gameServerConfigBuilder_ == null) { + return gameServerConfig_ == null + ? com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance() + : gameServerConfig_; } else { - return allocationPolicyBuilder_.getMessage(); + return gameServerConfigBuilder_.getMessage(); } } /** * * *
-     * Required. The allocation policy resource to be created.
+     * Required. The game server config resource to be created.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAllocationPolicy(com.google.cloud.gaming.v1alpha.AllocationPolicy value) { - if (allocationPolicyBuilder_ == null) { + public Builder setGameServerConfig(com.google.cloud.gaming.v1alpha.GameServerConfig value) { + if (gameServerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - allocationPolicy_ = value; + gameServerConfig_ = value; onChanged(); } else { - allocationPolicyBuilder_.setMessage(value); + gameServerConfigBuilder_.setMessage(value); } return this; @@ -880,18 +953,20 @@ public Builder setAllocationPolicy(com.google.cloud.gaming.v1alpha.AllocationPol * * *
-     * Required. The allocation policy resource to be created.
+     * Required. The game server config resource to be created.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAllocationPolicy( - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder builderForValue) { - if (allocationPolicyBuilder_ == null) { - allocationPolicy_ = builderForValue.build(); + public Builder setGameServerConfig( + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder builderForValue) { + if (gameServerConfigBuilder_ == null) { + gameServerConfig_ = builderForValue.build(); onChanged(); } else { - allocationPolicyBuilder_.setMessage(builderForValue.build()); + gameServerConfigBuilder_.setMessage(builderForValue.build()); } return this; @@ -900,24 +975,26 @@ public Builder setAllocationPolicy( * * *
-     * Required. The allocation policy resource to be created.
+     * Required. The game server config resource to be created.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - 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_) + public Builder mergeGameServerConfig(com.google.cloud.gaming.v1alpha.GameServerConfig value) { + if (gameServerConfigBuilder_ == null) { + if (gameServerConfig_ != null) { + gameServerConfig_ = + com.google.cloud.gaming.v1alpha.GameServerConfig.newBuilder(gameServerConfig_) .mergeFrom(value) .buildPartial(); } else { - allocationPolicy_ = value; + gameServerConfig_ = value; } onChanged(); } else { - allocationPolicyBuilder_.mergeFrom(value); + gameServerConfigBuilder_.mergeFrom(value); } return this; @@ -926,18 +1003,20 @@ public Builder mergeAllocationPolicy(com.google.cloud.gaming.v1alpha.AllocationP * * *
-     * Required. The allocation policy resource to be created.
+     * Required. The game server config resource to be created.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder clearAllocationPolicy() { - if (allocationPolicyBuilder_ == null) { - allocationPolicy_ = null; + public Builder clearGameServerConfig() { + if (gameServerConfigBuilder_ == null) { + gameServerConfig_ = null; onChanged(); } else { - allocationPolicy_ = null; - allocationPolicyBuilder_ = null; + gameServerConfig_ = null; + gameServerConfigBuilder_ = null; } return this; @@ -946,59 +1025,65 @@ public Builder clearAllocationPolicy() { * * *
-     * Required. The allocation policy resource to be created.
+     * Required. The game server config resource to be created.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder getAllocationPolicyBuilder() { + public com.google.cloud.gaming.v1alpha.GameServerConfig.Builder getGameServerConfigBuilder() { onChanged(); - return getAllocationPolicyFieldBuilder().getBuilder(); + return getGameServerConfigFieldBuilder().getBuilder(); } /** * * *
-     * Required. The allocation policy resource to be created.
+     * Required. The game server config resource to be created.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder - getAllocationPolicyOrBuilder() { - if (allocationPolicyBuilder_ != null) { - return allocationPolicyBuilder_.getMessageOrBuilder(); + public com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder + getGameServerConfigOrBuilder() { + if (gameServerConfigBuilder_ != null) { + return gameServerConfigBuilder_.getMessageOrBuilder(); } else { - return allocationPolicy_ == null - ? com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + return gameServerConfig_ == null + ? com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance() + : gameServerConfig_; } } /** * * *
-     * Required. The allocation policy resource to be created.
+     * Required. The game server config resource to be created.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 3; + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_ = + com.google.cloud.gaming.v1alpha.GameServerConfig, + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, + com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder> + getGameServerConfigFieldBuilder() { + if (gameServerConfigBuilder_ == null) { + gameServerConfigBuilder_ = 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; + com.google.cloud.gaming.v1alpha.GameServerConfig, + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, + com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder>( + getGameServerConfig(), getParentForChildren(), isClean()); + gameServerConfig_ = null; } - return allocationPolicyBuilder_; + return gameServerConfigBuilder_; } @java.lang.Override @@ -1012,43 +1097,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest) - private static final com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) + private static final com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest(); + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest(); } - public static com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public CreateAllocationPolicyRequest parsePartialFrom( + public CreateGameServerConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAllocationPolicyRequest(input, extensionRegistry); + return new CreateGameServerConfigRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateAllocationPolicyRequest getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.CreateGameServerConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequestOrBuilder.java new file mode 100644 index 00000000..ac449b46 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_configs.proto + +package com.google.cloud.gaming.v1alpha; + +public interface CreateGameServerConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.CreateGameServerConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource name, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the game server config resource to be created.
+   * 
+ * + * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The configId. + */ + java.lang.String getConfigId(); + /** + * + * + *
+   * Required. The ID of the game server config resource to be created.
+   * 
+ * + * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for configId. + */ + com.google.protobuf.ByteString getConfigIdBytes(); + + /** + * + * + *
+   * Required. The game server config resource to be created.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerConfig field is set. + */ + boolean hasGameServerConfig(); + /** + * + * + *
+   * Required. The game server config resource to be created.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerConfig. + */ + com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfig(); + /** + * + * + *
+   * Required. The game server config resource to be created.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerConfig game_server_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequest.java index 7959ee0f..9019d583 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,6 +43,12 @@ private CreateGameServerDeploymentRequest() { deploymentId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateGameServerDeploymentRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private CreateGameServerDeploymentRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -139,10 +144,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -160,10 +169,14 @@ public java.lang.String getParent() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -186,7 +199,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The ID of the game server deployment resource to be created. * * - * string deployment_id = 2; + * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentId. */ public java.lang.String getDeploymentId() { java.lang.Object ref = deploymentId_; @@ -206,7 +221,9 @@ public java.lang.String getDeploymentId() { * Required. The ID of the game server deployment resource to be created. * * - * string deployment_id = 2; + * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentId. */ public com.google.protobuf.ByteString getDeploymentIdBytes() { java.lang.Object ref = deploymentId_; @@ -229,7 +246,11 @@ public com.google.protobuf.ByteString getDeploymentIdBytes() { * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerDeployment field is set. */ public boolean hasGameServerDeployment() { return gameServerDeployment_ != null; @@ -241,7 +262,11 @@ public boolean hasGameServerDeployment() { * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerDeployment. */ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment() { return gameServerDeployment_ == null @@ -255,7 +280,9 @@ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeploym * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeploymentOrBuilder() { @@ -638,10 +665,14 @@ public Builder mergeFrom( * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -659,10 +690,14 @@ public java.lang.String getParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -680,10 +715,15 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -699,10 +739,14 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -715,10 +759,15 @@ public Builder clearParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -739,7 +788,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Required. The ID of the game server deployment resource to be created. * * - * string deployment_id = 2; + * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentId. */ public java.lang.String getDeploymentId() { java.lang.Object ref = deploymentId_; @@ -759,7 +810,9 @@ public java.lang.String getDeploymentId() { * Required. The ID of the game server deployment resource to be created. * * - * string deployment_id = 2; + * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentId. */ public com.google.protobuf.ByteString getDeploymentIdBytes() { java.lang.Object ref = deploymentId_; @@ -779,7 +832,10 @@ public com.google.protobuf.ByteString getDeploymentIdBytes() { * Required. The ID of the game server deployment resource to be created. * * - * string deployment_id = 2; + * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The deploymentId to set. + * @return This builder for chaining. */ public Builder setDeploymentId(java.lang.String value) { if (value == null) { @@ -797,7 +853,9 @@ public Builder setDeploymentId(java.lang.String value) { * Required. The ID of the game server deployment resource to be created. * * - * string deployment_id = 2; + * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearDeploymentId() { @@ -812,7 +870,10 @@ public Builder clearDeploymentId() { * Required. The ID of the game server deployment resource to be created. * * - * string deployment_id = 2; + * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for deploymentId to set. + * @return This builder for chaining. */ public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -838,7 +899,11 @@ public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerDeployment field is set. */ public boolean hasGameServerDeployment() { return gameServerDeploymentBuilder_ != null || gameServerDeployment_ != null; @@ -850,7 +915,11 @@ public boolean hasGameServerDeployment() { * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerDeployment. */ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment() { if (gameServerDeploymentBuilder_ == null) { @@ -868,7 +937,9 @@ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeploym * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGameServerDeployment( com.google.cloud.gaming.v1alpha.GameServerDeployment value) { @@ -891,7 +962,9 @@ public Builder setGameServerDeployment( * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGameServerDeployment( com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder builderForValue) { @@ -911,7 +984,9 @@ public Builder setGameServerDeployment( * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGameServerDeployment( com.google.cloud.gaming.v1alpha.GameServerDeployment value) { @@ -938,7 +1013,9 @@ public Builder mergeGameServerDeployment( * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGameServerDeployment() { if (gameServerDeploymentBuilder_ == null) { @@ -958,7 +1035,9 @@ public Builder clearGameServerDeployment() { * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder getGameServerDeploymentBuilder() { @@ -973,7 +1052,9 @@ public Builder clearGameServerDeployment() { * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeploymentOrBuilder() { @@ -992,7 +1073,9 @@ public Builder clearGameServerDeployment() { * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gaming.v1alpha.GameServerDeployment, diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequestOrBuilder.java index 6cb88804..f9dafd80 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface CreateGameServerDeploymentRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -39,10 +43,14 @@ public interface CreateGameServerDeploymentRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -53,7 +61,9 @@ public interface CreateGameServerDeploymentRequestOrBuilder * Required. The ID of the game server deployment resource to be created. * * - * string deployment_id = 2; + * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentId. */ java.lang.String getDeploymentId(); /** @@ -63,7 +73,9 @@ public interface CreateGameServerDeploymentRequestOrBuilder * Required. The ID of the game server deployment resource to be created. * * - * string deployment_id = 2; + * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentId. */ com.google.protobuf.ByteString getDeploymentIdBytes(); @@ -74,7 +86,11 @@ public interface CreateGameServerDeploymentRequestOrBuilder * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerDeployment field is set. */ boolean hasGameServerDeployment(); /** @@ -84,7 +100,11 @@ public interface CreateGameServerDeploymentRequestOrBuilder * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerDeployment. */ com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment(); /** @@ -94,7 +114,9 @@ public interface CreateGameServerDeploymentRequestOrBuilder * Required. The game server deployment resource to be created. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeploymentOrBuilder(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequest.java index 0b54f721..fc8d5ff2 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,6 +42,12 @@ private CreateRealmRequest() { realmId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRealmRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private CreateRealmRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -137,10 +142,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -158,10 +167,14 @@ public java.lang.String getParent() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -184,7 +197,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The ID of the realm resource to be created. * * - * string realm_id = 2; + * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The realmId. */ public java.lang.String getRealmId() { java.lang.Object ref = realmId_; @@ -204,7 +219,9 @@ public java.lang.String getRealmId() { * Required. The ID of the realm resource to be created. * * - * string realm_id = 2; + * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for realmId. */ public com.google.protobuf.ByteString getRealmIdBytes() { java.lang.Object ref = realmId_; @@ -227,7 +244,10 @@ public com.google.protobuf.ByteString getRealmIdBytes() { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the realm field is set. */ public boolean hasRealm() { return realm_ != null; @@ -239,7 +259,10 @@ public boolean hasRealm() { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The realm. */ public com.google.cloud.gaming.v1alpha.Realm getRealm() { return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; @@ -251,7 +274,8 @@ public com.google.cloud.gaming.v1alpha.Realm getRealm() { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { return getRealm(); @@ -625,10 +649,14 @@ public Builder mergeFrom( * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -646,10 +674,14 @@ public java.lang.String getParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -667,10 +699,15 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -686,10 +723,14 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -702,10 +743,15 @@ public Builder clearParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -726,7 +772,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Required. The ID of the realm resource to be created. * * - * string realm_id = 2; + * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The realmId. */ public java.lang.String getRealmId() { java.lang.Object ref = realmId_; @@ -746,7 +794,9 @@ public java.lang.String getRealmId() { * Required. The ID of the realm resource to be created. * * - * string realm_id = 2; + * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for realmId. */ public com.google.protobuf.ByteString getRealmIdBytes() { java.lang.Object ref = realmId_; @@ -766,7 +816,10 @@ public com.google.protobuf.ByteString getRealmIdBytes() { * Required. The ID of the realm resource to be created. * * - * string realm_id = 2; + * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The realmId to set. + * @return This builder for chaining. */ public Builder setRealmId(java.lang.String value) { if (value == null) { @@ -784,7 +837,9 @@ public Builder setRealmId(java.lang.String value) { * Required. The ID of the realm resource to be created. * * - * string realm_id = 2; + * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearRealmId() { @@ -799,7 +854,10 @@ public Builder clearRealmId() { * Required. The ID of the realm resource to be created. * * - * string realm_id = 2; + * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for realmId to set. + * @return This builder for chaining. */ public Builder setRealmIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -825,7 +883,10 @@ public Builder setRealmIdBytes(com.google.protobuf.ByteString value) { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the realm field is set. */ public boolean hasRealm() { return realmBuilder_ != null || realm_ != null; @@ -837,7 +898,10 @@ public boolean hasRealm() { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The realm. */ public com.google.cloud.gaming.v1alpha.Realm getRealm() { if (realmBuilder_ == null) { @@ -853,7 +917,8 @@ public com.google.cloud.gaming.v1alpha.Realm getRealm() { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm value) { if (realmBuilder_ == null) { @@ -875,7 +940,8 @@ public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm value) { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm.Builder builderForValue) { if (realmBuilder_ == null) { @@ -894,7 +960,8 @@ public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm.Builder builderFor * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRealm(com.google.cloud.gaming.v1alpha.Realm value) { if (realmBuilder_ == null) { @@ -920,7 +987,8 @@ public Builder mergeRealm(com.google.cloud.gaming.v1alpha.Realm value) { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRealm() { if (realmBuilder_ == null) { @@ -940,7 +1008,8 @@ public Builder clearRealm() { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.Realm.Builder getRealmBuilder() { @@ -954,7 +1023,8 @@ public com.google.cloud.gaming.v1alpha.Realm.Builder getRealmBuilder() { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { if (realmBuilder_ != null) { @@ -970,7 +1040,8 @@ public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gaming.v1alpha.Realm, diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequestOrBuilder.java index c458b5a3..2b42a7c3 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface CreateRealmRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -39,10 +43,14 @@ public interface CreateRealmRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -53,7 +61,9 @@ public interface CreateRealmRequestOrBuilder * Required. The ID of the realm resource to be created. * * - * string realm_id = 2; + * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The realmId. */ java.lang.String getRealmId(); /** @@ -63,7 +73,9 @@ public interface CreateRealmRequestOrBuilder * Required. The ID of the realm resource to be created. * * - * string realm_id = 2; + * string realm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for realmId. */ com.google.protobuf.ByteString getRealmIdBytes(); @@ -74,7 +86,10 @@ public interface CreateRealmRequestOrBuilder * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the realm field is set. */ boolean hasRealm(); /** @@ -84,7 +99,10 @@ public interface CreateRealmRequestOrBuilder * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The realm. */ com.google.cloud.gaming.v1alpha.Realm getRealm(); /** @@ -94,7 +112,8 @@ public interface CreateRealmRequestOrBuilder * Required. The realm resource to be created. * * - * .google.cloud.gaming.v1alpha.Realm realm = 3; + * .google.cloud.gaming.v1alpha.Realm realm = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateScalingPolicyRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateScalingPolicyRequest.java deleted file mode 100644 index baa29538..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateScalingPolicyRequest.java +++ /dev/null @@ -1,1049 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for ScalingPoliciesService.CreateScalingPolicy.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateScalingPolicyRequest} - */ -public final class CreateScalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CreateScalingPolicyRequest) - CreateScalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateScalingPolicyRequest.newBuilder() to construct. - private CreateScalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateScalingPolicyRequest() { - parent_ = ""; - scalingPolicyId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateScalingPolicyRequest( - 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(); - - scalingPolicyId_ = s; - break; - } - case 26: - { - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder subBuilder = null; - if (scalingPolicy_ != null) { - subBuilder = scalingPolicy_.toBuilder(); - } - scalingPolicy_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.ScalingPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scalingPolicy_); - scalingPolicy_ = 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.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest.class, - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest.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 SCALING_POLICY_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object scalingPolicyId_; - /** - * - * - *
-   * Required. The ID of the scaling policy resource to be created.
-   * 
- * - * string scaling_policy_id = 2; - */ - public java.lang.String getScalingPolicyId() { - java.lang.Object ref = scalingPolicyId_; - 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(); - scalingPolicyId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the scaling policy resource to be created.
-   * 
- * - * string scaling_policy_id = 2; - */ - public com.google.protobuf.ByteString getScalingPolicyIdBytes() { - java.lang.Object ref = scalingPolicyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scalingPolicyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCALING_POLICY_FIELD_NUMBER = 3; - private com.google.cloud.gaming.v1alpha.ScalingPolicy scalingPolicy_; - /** - * - * - *
-   * Required. The scaling policy resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public boolean hasScalingPolicy() { - return scalingPolicy_ != null; - } - /** - * - * - *
-   * Required. The scaling policy resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicy() { - return scalingPolicy_ == null - ? com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance() - : scalingPolicy_; - } - /** - * - * - *
-   * Required. The scaling policy resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder getScalingPolicyOrBuilder() { - return getScalingPolicy(); - } - - 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 (!getScalingPolicyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scalingPolicyId_); - } - if (scalingPolicy_ != null) { - output.writeMessage(3, getScalingPolicy()); - } - 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 (!getScalingPolicyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scalingPolicyId_); - } - if (scalingPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScalingPolicy()); - } - 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.CreateScalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest other = - (com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getScalingPolicyId().equals(other.getScalingPolicyId())) return false; - if (hasScalingPolicy() != other.hasScalingPolicy()) return false; - if (hasScalingPolicy()) { - if (!getScalingPolicy().equals(other.getScalingPolicy())) 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) + SCALING_POLICY_ID_FIELD_NUMBER; - hash = (53 * hash) + getScalingPolicyId().hashCode(); - if (hasScalingPolicy()) { - hash = (37 * hash) + SCALING_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getScalingPolicy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest 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.CreateScalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest 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.CreateScalingPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest 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.CreateScalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest 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.CreateScalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest 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.CreateScalingPolicyRequest 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.CreateScalingPolicyRequest 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.CreateScalingPolicyRequest 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 ScalingPoliciesService.CreateScalingPolicy.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.CreateScalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.CreateScalingPolicyRequest) - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest.class, - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - scalingPolicyId_ = ""; - - if (scalingPolicyBuilder_ == null) { - scalingPolicy_ = null; - } else { - scalingPolicy_ = null; - scalingPolicyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest build() { - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest buildPartial() { - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest result = - new com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest(this); - result.parent_ = parent_; - result.scalingPolicyId_ = scalingPolicyId_; - if (scalingPolicyBuilder_ == null) { - result.scalingPolicy_ = scalingPolicy_; - } else { - result.scalingPolicy_ = scalingPolicyBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest other) { - if (other == com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getScalingPolicyId().isEmpty()) { - scalingPolicyId_ = other.scalingPolicyId_; - onChanged(); - } - if (other.hasScalingPolicy()) { - mergeScalingPolicy(other.getScalingPolicy()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private 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)) { - 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 scalingPolicyId_ = ""; - /** - * - * - *
-     * Required. The ID of the scaling policy resource to be created.
-     * 
- * - * string scaling_policy_id = 2; - */ - public java.lang.String getScalingPolicyId() { - java.lang.Object ref = scalingPolicyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scalingPolicyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the scaling policy resource to be created.
-     * 
- * - * string scaling_policy_id = 2; - */ - public com.google.protobuf.ByteString getScalingPolicyIdBytes() { - java.lang.Object ref = scalingPolicyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scalingPolicyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the scaling policy resource to be created.
-     * 
- * - * string scaling_policy_id = 2; - */ - public Builder setScalingPolicyId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - scalingPolicyId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the scaling policy resource to be created.
-     * 
- * - * string scaling_policy_id = 2; - */ - public Builder clearScalingPolicyId() { - - scalingPolicyId_ = getDefaultInstance().getScalingPolicyId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the scaling policy resource to be created.
-     * 
- * - * string scaling_policy_id = 2; - */ - public Builder setScalingPolicyIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - scalingPolicyId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.gaming.v1alpha.ScalingPolicy scalingPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingPolicy, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder, - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder> - scalingPolicyBuilder_; - /** - * - * - *
-     * Required. The scaling policy resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public boolean hasScalingPolicy() { - return scalingPolicyBuilder_ != null || scalingPolicy_ != null; - } - /** - * - * - *
-     * Required. The scaling policy resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicy() { - if (scalingPolicyBuilder_ == null) { - return scalingPolicy_ == null - ? com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance() - : scalingPolicy_; - } else { - return scalingPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The scaling policy resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public Builder setScalingPolicy(com.google.cloud.gaming.v1alpha.ScalingPolicy value) { - if (scalingPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scalingPolicy_ = value; - onChanged(); - } else { - scalingPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The scaling policy resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public Builder setScalingPolicy( - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder builderForValue) { - if (scalingPolicyBuilder_ == null) { - scalingPolicy_ = builderForValue.build(); - onChanged(); - } else { - scalingPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The scaling policy resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public Builder mergeScalingPolicy(com.google.cloud.gaming.v1alpha.ScalingPolicy value) { - if (scalingPolicyBuilder_ == null) { - if (scalingPolicy_ != null) { - scalingPolicy_ = - com.google.cloud.gaming.v1alpha.ScalingPolicy.newBuilder(scalingPolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - scalingPolicy_ = value; - } - onChanged(); - } else { - scalingPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The scaling policy resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public Builder clearScalingPolicy() { - if (scalingPolicyBuilder_ == null) { - scalingPolicy_ = null; - onChanged(); - } else { - scalingPolicy_ = null; - scalingPolicyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The scaling policy resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder getScalingPolicyBuilder() { - - onChanged(); - return getScalingPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The scaling policy resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder getScalingPolicyOrBuilder() { - if (scalingPolicyBuilder_ != null) { - return scalingPolicyBuilder_.getMessageOrBuilder(); - } else { - return scalingPolicy_ == null - ? com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance() - : scalingPolicy_; - } - } - /** - * - * - *
-     * Required. The scaling policy resource to be created.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingPolicy, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder, - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder> - getScalingPolicyFieldBuilder() { - if (scalingPolicyBuilder_ == null) { - scalingPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingPolicy, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder, - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder>( - getScalingPolicy(), getParentForChildren(), isClean()); - scalingPolicy_ = null; - } - return scalingPolicyBuilder_; - } - - @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.CreateScalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CreateScalingPolicyRequest) - private static final com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest(); - } - - public static com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScalingPolicyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.CreateScalingPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateScalingPolicyRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateScalingPolicyRequestOrBuilder.java deleted file mode 100644 index 0dfa9c57..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateScalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface CreateScalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.CreateScalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
-   * 
- * - * string parent = 1; - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
-   * 
- * - * string parent = 1; - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ID of the scaling policy resource to be created.
-   * 
- * - * string scaling_policy_id = 2; - */ - java.lang.String getScalingPolicyId(); - /** - * - * - *
-   * Required. The ID of the scaling policy resource to be created.
-   * 
- * - * string scaling_policy_id = 2; - */ - com.google.protobuf.ByteString getScalingPolicyIdBytes(); - - /** - * - * - *
-   * Required. The scaling policy resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - boolean hasScalingPolicy(); - /** - * - * - *
-   * Required. The scaling policy resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicy(); - /** - * - * - *
-   * Required. The scaling policy resource to be created.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 3; - */ - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder getScalingPolicyOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequest.java index b7e17322..46806496 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,6 +42,12 @@ private DeleteGameServerClusterRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteGameServerClusterRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private DeleteGameServerClusterRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -114,10 +119,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}`
+   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -135,10 +144,14 @@ public java.lang.String getName() { * *
    * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}`
+   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -480,10 +493,14 @@ public Builder mergeFrom( * *
      * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -501,10 +518,14 @@ public java.lang.String getName() { * *
      * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -522,10 +543,15 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -541,10 +567,14 @@ public Builder setName(java.lang.String value) { * *
      * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -557,10 +587,15 @@ public Builder clearName() { * *
      * Required. The name of the game server cluster to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequestOrBuilder.java index d056698e..fec2efc6 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface DeleteGameServerClusterRequestOrBuilder * *
    * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}`
+   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** @@ -39,10 +43,14 @@ public interface DeleteGameServerClusterRequestOrBuilder * *
    * Required. The name of the game server cluster to delete, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}`
+   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteAllocationPolicyRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequest.java similarity index 64% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteAllocationPolicyRequest.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequest.java index b6403446..1ed3e230 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteAllocationPolicyRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_configs.proto package com.google.cloud.gaming.v1alpha; @@ -22,31 +22,38 @@ * * *
- * Request message for AllocationPoliciesService.DeleteAllocationPolicy.
+ * Request message for
+ * GameServerConfigsService.DeleteGameServerConfig.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest} */ -public final class DeleteAllocationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 +public final class DeleteGameServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) - DeleteAllocationPolicyRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) + DeleteGameServerConfigRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use DeleteAllocationPolicyRequest.newBuilder() to construct. - private DeleteAllocationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DeleteGameServerConfigRequest.newBuilder() to construct. + private DeleteGameServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAllocationPolicyRequest() { + private DeleteGameServerConfigRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteGameServerConfigRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteAllocationPolicyRequest( + private DeleteGameServerConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -54,7 +61,6 @@ private DeleteAllocationPolicyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -92,18 +98,18 @@ private DeleteAllocationPolicyRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest.class, - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.class, + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -112,11 +118,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The name of the allocation policy to delete, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+   * Required. The name of the game server config to delete, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -133,11 +143,15 @@ public java.lang.String getName() { * * *
-   * Required. The name of the allocation policy to delete, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+   * Required. The name of the game server config to delete, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -190,11 +204,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest)) { + if (!(obj instanceof com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest other = - (com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) obj; + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest other = + (com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) obj; if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -215,71 +229,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest 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.DeleteAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest 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.DeleteAllocationPolicyRequest parseFrom(byte[] data) + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest 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.DeleteAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest 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.DeleteAllocationPolicyRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest 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.DeleteAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest 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.DeleteAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -297,7 +311,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest prototype) { + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -315,31 +329,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for AllocationPoliciesService.DeleteAllocationPolicy.
+   * Request message for
+   * GameServerConfigsService.DeleteGameServerConfig.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest.class, - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.class, + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.Builder.class); } - // Construct using com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest.newBuilder() + // Construct using com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -363,19 +378,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest + public com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest.getDefaultInstance(); + return com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest build() { - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest result = buildPartial(); + public com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest build() { + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -383,9 +398,9 @@ public com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest buildPartial() { - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest result = - new com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest(this); + public com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest buildPartial() { + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest result = + new com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -426,17 +441,17 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) other); + if (other instanceof com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) { + return mergeFrom((com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest other) { + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest other) { if (other - == com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest.getDefaultInstance()) + == com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; @@ -457,12 +472,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest parsedMessage = null; + com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) + (com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -478,11 +493,15 @@ public Builder mergeFrom( * * *
-     * Required. The name of the allocation policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -499,11 +518,15 @@ public java.lang.String getName() { * * *
-     * Required. The name of the allocation policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -520,11 +543,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the allocation policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -539,11 +567,15 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the allocation policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -555,11 +587,16 @@ public Builder clearName() { * * *
-     * Required. The name of the allocation policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -583,43 +620,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) - private static final com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) + private static final com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest(); + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest(); } - public static com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public DeleteAllocationPolicyRequest parsePartialFrom( + public DeleteGameServerConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAllocationPolicyRequest(input, extensionRegistry); + return new DeleteGameServerConfigRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteAllocationPolicyRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteAllocationPolicyRequestOrBuilder.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequestOrBuilder.java index 74fdcb9f..96a53a83 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteAllocationPolicyRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,35 +14,43 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_configs.proto package com.google.cloud.gaming.v1alpha; -public interface DeleteAllocationPolicyRequestOrBuilder +public interface DeleteGameServerConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeleteAllocationPolicyRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeleteGameServerConfigRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. The name of the allocation policy to delete, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+   * Required. The name of the game server config to delete, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * Required. The name of the allocation policy to delete, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+   * Required. The name of the game server config to delete, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequest.java index b24223fb..aa90308b 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,6 +42,12 @@ private DeleteGameServerDeploymentRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteGameServerDeploymentRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private DeleteGameServerDeploymentRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -114,10 +119,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The name of the game server deployment to delete, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -135,10 +144,14 @@ public java.lang.String getName() { * *
    * Required. The name of the game server deployment to delete, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -483,10 +496,14 @@ public Builder mergeFrom( * *
      * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -504,10 +521,14 @@ public java.lang.String getName() { * *
      * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -525,10 +546,15 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -544,10 +570,14 @@ public Builder setName(java.lang.String value) { * *
      * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -560,10 +590,15 @@ public Builder clearName() { * *
      * Required. The name of the game server deployment to delete, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequestOrBuilder.java index 7e334c51..81439114 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface DeleteGameServerDeploymentRequestOrBuilder * *
    * Required. The name of the game server deployment to delete, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** @@ -39,10 +43,14 @@ public interface DeleteGameServerDeploymentRequestOrBuilder * *
    * Required. The name of the game server deployment to delete, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequest.java index cf7fe4f6..8939c119 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,12 @@ private DeleteRealmRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteRealmRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private DeleteRealmRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -113,10 +118,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The name of the realm to delete, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+   * `projects/{project}/locations/{location}/realms/{realm}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,10 +143,14 @@ public java.lang.String getName() { * *
    * Required. The name of the realm to delete, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+   * `projects/{project}/locations/{location}/realms/{realm}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -475,10 +488,14 @@ public Builder mergeFrom( * *
      * Required. The name of the realm to delete, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -496,10 +513,14 @@ public java.lang.String getName() { * *
      * Required. The name of the realm to delete, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -517,10 +538,15 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The name of the realm to delete, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -536,10 +562,14 @@ public Builder setName(java.lang.String value) { * *
      * Required. The name of the realm to delete, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -552,10 +582,15 @@ public Builder clearName() { * *
      * Required. The name of the realm to delete, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequestOrBuilder.java index 5a03bea4..97f33ace 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface DeleteRealmRequestOrBuilder * *
    * Required. The name of the realm to delete, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+   * `projects/{project}/locations/{location}/realms/{realm}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** @@ -39,10 +43,14 @@ public interface DeleteRealmRequestOrBuilder * *
    * Required. The name of the realm to delete, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+   * `projects/{project}/locations/{location}/realms/{realm}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteScalingPolicyRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteScalingPolicyRequest.java deleted file mode 100644 index 3b6d8e82..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteScalingPolicyRequest.java +++ /dev/null @@ -1,621 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for ScalingPoliciesService.DeleteScalingPolicy.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest} - */ -public final class DeleteScalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest) - DeleteScalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteScalingPolicyRequest.newBuilder() to construct. - private DeleteScalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteScalingPolicyRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteScalingPolicyRequest( - 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.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest.class, - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the scaling policy to delete, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_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 scaling policy to delete, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_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.DeleteScalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest other = - (com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest) 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.DeleteScalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest 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.DeleteScalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest 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.DeleteScalingPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest 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.DeleteScalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest 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.DeleteScalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest 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.DeleteScalingPolicyRequest 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.DeleteScalingPolicyRequest 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.DeleteScalingPolicyRequest 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 ScalingPoliciesService.DeleteScalingPolicy.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest) - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest.class, - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest build() { - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest buildPartial() { - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest result = - new com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest other) { - if (other == com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the scaling policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_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 scaling policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_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 scaling policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_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 scaling policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the scaling policy to delete, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_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.DeleteScalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest) - private static final com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest(); - } - - public static com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScalingPolicyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteScalingPolicyRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteScalingPolicyRequestOrBuilder.java deleted file mode 100644 index 33df6a98..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteScalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface DeleteScalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeleteScalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the scaling policy to delete, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the scaling policy to delete, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedState.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedState.java new file mode 100644 index 00000000..eebb62d4 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedState.java @@ -0,0 +1,943 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Encapsulates the expected deployed state.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.DeployedState} + */ +@java.lang.Deprecated +public final class DeployedState extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeployedState) + DeployedStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployedState.newBuilder() to construct. + private DeployedState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployedState() { + fleets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployedState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployedState( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fleets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fleets_.add( + input.readMessage( + com.google.cloud.gaming.v1alpha.FleetDetails.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + fleets_ = java.util.Collections.unmodifiableList(fleets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_DeployedState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.DeployedState.class, + com.google.cloud.gaming.v1alpha.DeployedState.Builder.class); + } + + public static final int FLEETS_FIELD_NUMBER = 1; + private java.util.List fleets_; + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public java.util.List getFleetsList() { + return fleets_; + } + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public java.util.List + getFleetsOrBuilderList() { + return fleets_; + } + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public int getFleetsCount() { + return fleets_.size(); + } + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public com.google.cloud.gaming.v1alpha.FleetDetails getFleets(int index) { + return fleets_.get(index); + } + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder getFleetsOrBuilder(int index) { + return fleets_.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 { + for (int i = 0; i < fleets_.size(); i++) { + output.writeMessage(1, fleets_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fleets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fleets_.get(i)); + } + 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.DeployedState)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.DeployedState other = + (com.google.cloud.gaming.v1alpha.DeployedState) obj; + + if (!getFleetsList().equals(other.getFleetsList())) 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 (getFleetsCount() > 0) { + hash = (37 * hash) + FLEETS_FIELD_NUMBER; + hash = (53 * hash) + getFleetsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.DeployedState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.DeployedState 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.DeployedState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.DeployedState 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.DeployedState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.DeployedState 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.DeployedState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.DeployedState 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.DeployedState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.DeployedState 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.DeployedState 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.DeployedState 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.DeployedState 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; + } + /** + * + * + *
+   * Encapsulates the expected deployed state.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.DeployedState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeployedState) + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_DeployedState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.DeployedState.class, + com.google.cloud.gaming.v1alpha.DeployedState.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.DeployedState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFleetsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (fleetsBuilder_ == null) { + fleets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + fleetsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_DeployedState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.DeployedState getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.DeployedState build() { + com.google.cloud.gaming.v1alpha.DeployedState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.DeployedState buildPartial() { + com.google.cloud.gaming.v1alpha.DeployedState result = + new com.google.cloud.gaming.v1alpha.DeployedState(this); + int from_bitField0_ = bitField0_; + if (fleetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fleets_ = java.util.Collections.unmodifiableList(fleets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fleets_ = fleets_; + } else { + result.fleets_ = fleetsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.DeployedState) { + return mergeFrom((com.google.cloud.gaming.v1alpha.DeployedState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.DeployedState other) { + if (other == com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance()) return this; + if (fleetsBuilder_ == null) { + if (!other.fleets_.isEmpty()) { + if (fleets_.isEmpty()) { + fleets_ = other.fleets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFleetsIsMutable(); + fleets_.addAll(other.fleets_); + } + onChanged(); + } + } else { + if (!other.fleets_.isEmpty()) { + if (fleetsBuilder_.isEmpty()) { + fleetsBuilder_.dispose(); + fleetsBuilder_ = null; + fleets_ = other.fleets_; + bitField0_ = (bitField0_ & ~0x00000001); + fleetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFleetsFieldBuilder() + : null; + } else { + fleetsBuilder_.addAllMessages(other.fleets_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.DeployedState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gaming.v1alpha.DeployedState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List fleets_ = + java.util.Collections.emptyList(); + + private void ensureFleetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fleets_ = new java.util.ArrayList(fleets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FleetDetails, + com.google.cloud.gaming.v1alpha.FleetDetails.Builder, + com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder> + fleetsBuilder_; + + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public java.util.List getFleetsList() { + if (fleetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fleets_); + } else { + return fleetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public int getFleetsCount() { + if (fleetsBuilder_ == null) { + return fleets_.size(); + } else { + return fleetsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public com.google.cloud.gaming.v1alpha.FleetDetails getFleets(int index) { + if (fleetsBuilder_ == null) { + return fleets_.get(index); + } else { + return fleetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public Builder setFleets(int index, com.google.cloud.gaming.v1alpha.FleetDetails value) { + if (fleetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetsIsMutable(); + fleets_.set(index, value); + onChanged(); + } else { + fleetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public Builder setFleets( + int index, com.google.cloud.gaming.v1alpha.FleetDetails.Builder builderForValue) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.set(index, builderForValue.build()); + onChanged(); + } else { + fleetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public Builder addFleets(com.google.cloud.gaming.v1alpha.FleetDetails value) { + if (fleetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetsIsMutable(); + fleets_.add(value); + onChanged(); + } else { + fleetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public Builder addFleets(int index, com.google.cloud.gaming.v1alpha.FleetDetails value) { + if (fleetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetsIsMutable(); + fleets_.add(index, value); + onChanged(); + } else { + fleetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public Builder addFleets(com.google.cloud.gaming.v1alpha.FleetDetails.Builder builderForValue) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.add(builderForValue.build()); + onChanged(); + } else { + fleetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public Builder addFleets( + int index, com.google.cloud.gaming.v1alpha.FleetDetails.Builder builderForValue) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.add(index, builderForValue.build()); + onChanged(); + } else { + fleetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public Builder addAllFleets( + java.lang.Iterable values) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fleets_); + onChanged(); + } else { + fleetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public Builder clearFleets() { + if (fleetsBuilder_ == null) { + fleets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fleetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public Builder removeFleets(int index) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.remove(index); + onChanged(); + } else { + fleetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public com.google.cloud.gaming.v1alpha.FleetDetails.Builder getFleetsBuilder(int index) { + return getFleetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder getFleetsOrBuilder(int index) { + if (fleetsBuilder_ == null) { + return fleets_.get(index); + } else { + return fleetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public java.util.List + getFleetsOrBuilderList() { + if (fleetsBuilder_ != null) { + return fleetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fleets_); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public com.google.cloud.gaming.v1alpha.FleetDetails.Builder addFleetsBuilder() { + return getFleetsFieldBuilder() + .addBuilder(com.google.cloud.gaming.v1alpha.FleetDetails.getDefaultInstance()); + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public com.google.cloud.gaming.v1alpha.FleetDetails.Builder addFleetsBuilder(int index) { + return getFleetsFieldBuilder() + .addBuilder(index, com.google.cloud.gaming.v1alpha.FleetDetails.getDefaultInstance()); + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + public java.util.List + getFleetsBuilderList() { + return getFleetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FleetDetails, + com.google.cloud.gaming.v1alpha.FleetDetails.Builder, + com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder> + getFleetsFieldBuilder() { + if (fleetsBuilder_ == null) { + fleetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FleetDetails, + com.google.cloud.gaming.v1alpha.FleetDetails.Builder, + com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder>( + fleets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + fleets_ = null; + } + return fleetsBuilder_; + } + + @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.DeployedState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeployedState) + private static final com.google.cloud.gaming.v1alpha.DeployedState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeployedState(); + } + + public static com.google.cloud.gaming.v1alpha.DeployedState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployedState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployedState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.DeployedState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedStateOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedStateOrBuilder.java new file mode 100644 index 00000000..88ed1bdf --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedStateOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +@java.lang.Deprecated +public interface DeployedStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeployedState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + java.util.List getFleetsList(); + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + com.google.cloud.gaming.v1alpha.FleetDetails getFleets(int index); + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + int getFleetsCount(); + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + java.util.List + getFleetsOrBuilderList(); + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetDetails fleets = 1; + */ + com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder getFleetsOrBuilder(int index); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeploymentTarget.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeploymentTarget.java deleted file mode 100644 index 78e7a8ed..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeploymentTarget.java +++ /dev/null @@ -1,1890 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// 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 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.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeploymentTarget} - */ -public final class DeploymentTarget extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeploymentTarget) - DeploymentTargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeploymentTarget.newBuilder() to construct. - private DeploymentTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeploymentTarget() { - clusters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeploymentTarget( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clusters_ = - new java.util.ArrayList< - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget>(); - mutable_bitField0_ |= 0x00000001; - } - clusters_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - .parser(), - extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - } - 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_DeploymentTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeploymentTarget.class, - com.google.cloud.gaming.v1alpha.DeploymentTarget.Builder.class); - } - - public interface ClusterRolloutTargetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The realm name.
-     * 
- * - * string realm = 1; - */ - java.lang.String getRealm(); - /** - * - * - *
-     * The realm name.
-     * 
- * - * string realm = 1; - */ - com.google.protobuf.ByteString getRealmBytes(); - - /** - * - * - *
-     * The cluster name.
-     * 
- * - * string cluster = 2; - */ - java.lang.String getCluster(); - /** - * - * - *
-     * The cluster name.
-     * 
- * - * string cluster = 2; - */ - com.google.protobuf.ByteString getClusterBytes(); - - /** - * - * - *
-     * The desired percentage of game servers that run
-     * stable_game_server_template.
-     * 
- * - * int32 stable_percent = 3; - */ - int getStablePercent(); - - /** - * - * - *
-     * The desired percentage of game servers that run new_game_server_template.
-     * 
- * - * int32 new_percent = 4; - */ - int getNewPercent(); - } - /** - * - * - *
-   * The rollout target of a cluster, i.e. the percentage of game servers
-   * running stable_game_server_template and new_game_server_template.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget} - */ - public static final class ClusterRolloutTarget extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget) - ClusterRolloutTargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterRolloutTarget.newBuilder() to construct. - private ClusterRolloutTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterRolloutTarget() { - realm_ = ""; - cluster_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterRolloutTarget( - 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(); - - realm_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - cluster_ = s; - break; - } - case 24: - { - stablePercent_ = input.readInt32(); - break; - } - case 32: - { - newPercent_ = 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_DeploymentTarget_ClusterRolloutTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_ClusterRolloutTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.class, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder.class); - } - - public static final int REALM_FIELD_NUMBER = 1; - private volatile java.lang.Object realm_; - /** - * - * - *
-     * The realm name.
-     * 
- * - * string realm = 1; - */ - public java.lang.String getRealm() { - java.lang.Object ref = realm_; - 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(); - realm_ = s; - return s; - } - } - /** - * - * - *
-     * The realm name.
-     * 
- * - * string realm = 1; - */ - public com.google.protobuf.ByteString getRealmBytes() { - java.lang.Object ref = realm_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - realm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_FIELD_NUMBER = 2; - private volatile java.lang.Object cluster_; - /** - * - * - *
-     * The cluster name.
-     * 
- * - * string cluster = 2; - */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - 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(); - cluster_ = s; - return s; - } - } - /** - * - * - *
-     * The cluster name.
-     * 
- * - * string cluster = 2; - */ - public com.google.protobuf.ByteString getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STABLE_PERCENT_FIELD_NUMBER = 3; - private int stablePercent_; - /** - * - * - *
-     * The desired percentage of game servers that run
-     * stable_game_server_template.
-     * 
- * - * int32 stable_percent = 3; - */ - public int getStablePercent() { - return stablePercent_; - } - - public static final int NEW_PERCENT_FIELD_NUMBER = 4; - private int newPercent_; - /** - * - * - *
-     * The desired percentage of game servers that run new_game_server_template.
-     * 
- * - * int32 new_percent = 4; - */ - public int getNewPercent() { - return newPercent_; - } - - 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 (!getRealmBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, realm_); - } - if (!getClusterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cluster_); - } - if (stablePercent_ != 0) { - output.writeInt32(3, stablePercent_); - } - if (newPercent_ != 0) { - output.writeInt32(4, newPercent_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRealmBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, realm_); - } - if (!getClusterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cluster_); - } - if (stablePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, stablePercent_); - } - if (newPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, newPercent_); - } - 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.DeploymentTarget.ClusterRolloutTarget)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget other = - (com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget) obj; - - if (!getRealm().equals(other.getRealm())) return false; - if (!getCluster().equals(other.getCluster())) return false; - if (getStablePercent() != other.getStablePercent()) return false; - if (getNewPercent() != other.getNewPercent()) 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) + REALM_FIELD_NUMBER; - hash = (53 * hash) + getRealm().hashCode(); - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - hash = (37 * hash) + STABLE_PERCENT_FIELD_NUMBER; - hash = (53 * hash) + getStablePercent(); - hash = (37 * hash) + NEW_PERCENT_FIELD_NUMBER; - hash = (53 * hash) + getNewPercent(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget 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.DeploymentTarget.ClusterRolloutTarget parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget 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.DeploymentTarget.ClusterRolloutTarget parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget 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.DeploymentTarget.ClusterRolloutTarget parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget 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.DeploymentTarget.ClusterRolloutTarget - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - 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.DeploymentTarget.ClusterRolloutTarget 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.DeploymentTarget.ClusterRolloutTarget 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.DeploymentTarget.ClusterRolloutTarget 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 rollout target of a cluster, i.e. the percentage of game servers
-     * running stable_game_server_template and new_game_server_template.
-     * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget) - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_ClusterRolloutTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_ClusterRolloutTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.class, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder - .class); - } - - // Construct using - // com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - realm_ = ""; - - cluster_ = ""; - - stablePercent_ = 0; - - newPercent_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_ClusterRolloutTarget_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget build() { - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget buildPartial() { - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget result = - new com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget(this); - result.realm_ = realm_; - result.cluster_ = cluster_; - result.stablePercent_ = stablePercent_; - result.newPercent_ = newPercent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget) { - return mergeFrom( - (com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget other) { - if (other - == com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - .getDefaultInstance()) return this; - if (!other.getRealm().isEmpty()) { - realm_ = other.realm_; - onChanged(); - } - if (!other.getCluster().isEmpty()) { - cluster_ = other.cluster_; - onChanged(); - } - if (other.getStablePercent() != 0) { - setStablePercent(other.getStablePercent()); - } - if (other.getNewPercent() != 0) { - setNewPercent(other.getNewPercent()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object realm_ = ""; - /** - * - * - *
-       * The realm name.
-       * 
- * - * string realm = 1; - */ - public java.lang.String getRealm() { - java.lang.Object ref = realm_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - realm_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The realm name.
-       * 
- * - * string realm = 1; - */ - public com.google.protobuf.ByteString getRealmBytes() { - java.lang.Object ref = realm_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - realm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The realm name.
-       * 
- * - * string realm = 1; - */ - public Builder setRealm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - realm_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The realm name.
-       * 
- * - * string realm = 1; - */ - public Builder clearRealm() { - - realm_ = getDefaultInstance().getRealm(); - onChanged(); - return this; - } - /** - * - * - *
-       * The realm name.
-       * 
- * - * string realm = 1; - */ - public Builder setRealmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - realm_ = value; - onChanged(); - return this; - } - - private java.lang.Object cluster_ = ""; - /** - * - * - *
-       * The cluster name.
-       * 
- * - * string cluster = 2; - */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The cluster name.
-       * 
- * - * string cluster = 2; - */ - public com.google.protobuf.ByteString getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The cluster name.
-       * 
- * - * string cluster = 2; - */ - public Builder setCluster(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cluster_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The cluster name.
-       * 
- * - * string cluster = 2; - */ - public Builder clearCluster() { - - cluster_ = getDefaultInstance().getCluster(); - onChanged(); - return this; - } - /** - * - * - *
-       * The cluster name.
-       * 
- * - * string cluster = 2; - */ - public Builder setClusterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cluster_ = value; - onChanged(); - return this; - } - - private int stablePercent_; - /** - * - * - *
-       * The desired percentage of game servers that run
-       * stable_game_server_template.
-       * 
- * - * int32 stable_percent = 3; - */ - public int getStablePercent() { - return stablePercent_; - } - /** - * - * - *
-       * The desired percentage of game servers that run
-       * stable_game_server_template.
-       * 
- * - * int32 stable_percent = 3; - */ - public Builder setStablePercent(int value) { - - stablePercent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The desired percentage of game servers that run
-       * stable_game_server_template.
-       * 
- * - * int32 stable_percent = 3; - */ - public Builder clearStablePercent() { - - stablePercent_ = 0; - onChanged(); - return this; - } - - private int newPercent_; - /** - * - * - *
-       * The desired percentage of game servers that run new_game_server_template.
-       * 
- * - * int32 new_percent = 4; - */ - public int getNewPercent() { - return newPercent_; - } - /** - * - * - *
-       * The desired percentage of game servers that run new_game_server_template.
-       * 
- * - * int32 new_percent = 4; - */ - public Builder setNewPercent(int value) { - - newPercent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The desired percentage of game servers that run new_game_server_template.
-       * 
- * - * int32 new_percent = 4; - */ - public Builder clearNewPercent() { - - newPercent_ = 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.DeploymentTarget.ClusterRolloutTarget) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget) - private static final com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget(); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterRolloutTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterRolloutTarget(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int CLUSTERS_FIELD_NUMBER = 1; - private java.util.List - clusters_; - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public java.util.List - getClustersList() { - return clusters_; - } - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public java.util.List< - ? extends com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder> - getClustersOrBuilderList() { - return clusters_; - } - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public int getClustersCount() { - return clusters_.size(); - } - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget getClusters( - int index) { - return clusters_.get(index); - } - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder - getClustersOrBuilder(int index) { - return clusters_.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 { - for (int i = 0; i < clusters_.size(); i++) { - output.writeMessage(1, clusters_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < clusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clusters_.get(i)); - } - 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.DeploymentTarget)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.DeploymentTarget other = - (com.google.cloud.gaming.v1alpha.DeploymentTarget) obj; - - if (!getClustersList().equals(other.getClustersList())) 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 (getClustersCount() > 0) { - hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; - hash = (53 * hash) + getClustersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget 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.DeploymentTarget parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget 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.DeploymentTarget parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget 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.DeploymentTarget parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget 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.DeploymentTarget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget 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.DeploymentTarget 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.DeploymentTarget 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.DeploymentTarget 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 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.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.DeploymentTarget} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.DeploymentTarget) - com.google.cloud.gaming.v1alpha.DeploymentTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.DeploymentTarget.class, - com.google.cloud.gaming.v1alpha.DeploymentTarget.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.DeploymentTarget.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getClustersFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - clustersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeploymentTarget getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.DeploymentTarget.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeploymentTarget build() { - com.google.cloud.gaming.v1alpha.DeploymentTarget result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeploymentTarget buildPartial() { - com.google.cloud.gaming.v1alpha.DeploymentTarget result = - new com.google.cloud.gaming.v1alpha.DeploymentTarget(this); - int from_bitField0_ = bitField0_; - if (clustersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusters_ = clusters_; - } else { - result.clusters_ = clustersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.DeploymentTarget) { - return mergeFrom((com.google.cloud.gaming.v1alpha.DeploymentTarget) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.DeploymentTarget other) { - if (other == com.google.cloud.gaming.v1alpha.DeploymentTarget.getDefaultInstance()) - return this; - if (clustersBuilder_ == null) { - if (!other.clusters_.isEmpty()) { - if (clusters_.isEmpty()) { - clusters_ = other.clusters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClustersIsMutable(); - clusters_.addAll(other.clusters_); - } - onChanged(); - } - } else { - if (!other.clusters_.isEmpty()) { - if (clustersBuilder_.isEmpty()) { - clustersBuilder_.dispose(); - clustersBuilder_ = null; - clusters_ = other.clusters_; - bitField0_ = (bitField0_ & ~0x00000001); - clustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClustersFieldBuilder() - : null; - } else { - clustersBuilder_.addAllMessages(other.clusters_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.DeploymentTarget parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.DeploymentTarget) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List - clusters_ = java.util.Collections.emptyList(); - - private void ensureClustersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clusters_ = - new java.util.ArrayList< - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget>(clusters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder> - clustersBuilder_; - - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public java.util.List - getClustersList() { - if (clustersBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusters_); - } else { - return clustersBuilder_.getMessageList(); - } - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public int getClustersCount() { - if (clustersBuilder_ == null) { - return clusters_.size(); - } else { - return clustersBuilder_.getCount(); - } - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget getClusters( - int index) { - if (clustersBuilder_ == null) { - return clusters_.get(index); - } else { - return clustersBuilder_.getMessage(index); - } - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public Builder setClusters( - int index, com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.set(index, value); - onChanged(); - } else { - clustersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public Builder setClusters( - int index, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder - builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.set(index, builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public Builder addClusters( - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.add(value); - onChanged(); - } else { - clustersBuilder_.addMessage(value); - } - return this; - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public Builder addClusters( - int index, com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.add(index, value); - onChanged(); - } else { - clustersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public Builder addClusters( - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder - builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public Builder addClusters( - int index, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder - builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(index, builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public Builder addAllClusters( - java.lang.Iterable< - ? extends com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget> - values) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusters_); - onChanged(); - } else { - clustersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public Builder clearClusters() { - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - clustersBuilder_.clear(); - } - return this; - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public Builder removeClusters(int index) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.remove(index); - onChanged(); - } else { - clustersBuilder_.remove(index); - } - return this; - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder - getClustersBuilder(int index) { - return getClustersFieldBuilder().getBuilder(index); - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder - getClustersOrBuilder(int index) { - if (clustersBuilder_ == null) { - return clusters_.get(index); - } else { - return clustersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder> - getClustersOrBuilderList() { - if (clustersBuilder_ != null) { - return clustersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusters_); - } - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder - addClustersBuilder() { - return getClustersFieldBuilder() - .addBuilder( - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - .getDefaultInstance()); - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder - addClustersBuilder(int index) { - return getClustersFieldBuilder() - .addBuilder( - index, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget - .getDefaultInstance()); - } - /** - * - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - public java.util.List< - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder> - getClustersBuilderList() { - return getClustersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder> - getClustersFieldBuilder() { - if (clustersBuilder_ == null) { - clustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget.Builder, - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder>( - clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - clusters_ = null; - } - return clustersBuilder_; - } - - @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.DeploymentTarget) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.DeploymentTarget) - private static final com.google.cloud.gaming.v1alpha.DeploymentTarget DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.DeploymentTarget(); - } - - public static com.google.cloud.gaming.v1alpha.DeploymentTarget getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeploymentTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeploymentTarget(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.DeploymentTarget getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeploymentTargetOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeploymentTargetOrBuilder.java deleted file mode 100644 index 3e81cb59..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeploymentTargetOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface DeploymentTargetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.DeploymentTarget) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - java.util.List - getClustersList(); - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget getClusters(int index); - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - int getClustersCount(); - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - java.util.List< - ? extends com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder> - getClustersOrBuilderList(); - /** - * repeated .google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTarget clusters = 1; - * - */ - com.google.cloud.gaming.v1alpha.DeploymentTarget.ClusterRolloutTargetOrBuilder - getClustersOrBuilder(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetDeploymentTargetRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequest.java similarity index 67% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetDeploymentTargetRequest.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequest.java index 9dd65233..1b9ad260 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetDeploymentTargetRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,31 +22,37 @@ * * *
- * Request message for GameServerDeploymentsService.GetDeploymentTarget.
+ * Request message for GameServerDeploymentsService.FetchDeploymentState.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.GetDeploymentTargetRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.FetchDeploymentStateRequest} */ -public final class GetDeploymentTargetRequest extends com.google.protobuf.GeneratedMessageV3 +public final class FetchDeploymentStateRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) - GetDeploymentTargetRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) + FetchDeploymentStateRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GetDeploymentTargetRequest.newBuilder() to construct. - private GetDeploymentTargetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use FetchDeploymentStateRequest.newBuilder() to construct. + private FetchDeploymentStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDeploymentTargetRequest() { + private FetchDeploymentStateRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchDeploymentStateRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetDeploymentTargetRequest( + private FetchDeploymentStateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -54,7 +60,6 @@ private GetDeploymentTargetRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -93,17 +98,17 @@ private GetDeploymentTargetRequest( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_descriptor; + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_fieldAccessorTable + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest.class, - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest.Builder.class); + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -112,12 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The name of the game server deployment, using the
-   * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * Required. The name of the game server deployment, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,12 +140,13 @@ public java.lang.String getName() { * * *
-   * Required. The name of the game server deployment, using the
-   * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * Required. The name of the game server deployment, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -192,11 +199,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest)) { + if (!(obj instanceof com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest other = - (com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) obj; + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest other = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) obj; if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -217,71 +224,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest 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.GetDeploymentTargetRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest 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.GetDeploymentTargetRequest parseFrom(byte[] data) + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest 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.GetDeploymentTargetRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest 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.GetDeploymentTargetRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest 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.GetDeploymentTargetRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest 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.GetDeploymentTargetRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -299,7 +306,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest prototype) { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -317,31 +324,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for GameServerDeploymentsService.GetDeploymentTarget.
+   * Request message for GameServerDeploymentsService.FetchDeploymentState.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.GetDeploymentTargetRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.FetchDeploymentStateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_descriptor; + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_fieldAccessorTable + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest.class, - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest.Builder.class); + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.Builder.class); } - // Construct using com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest.newBuilder() + // Construct using com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -366,17 +373,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_descriptor; + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest.getDefaultInstance(); + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest build() { - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest result = buildPartial(); + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest build() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -384,9 +391,9 @@ public com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest buildPartial() { - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest result = - new com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest(this); + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest buildPartial() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest result = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest(this); result.name_ = name_; onBuilt(); return result; @@ -427,16 +434,16 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) other); + if (other instanceof com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) { + return mergeFrom((com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest other) { - if (other == com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest other) { + if (other == com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; @@ -457,12 +464,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest parsedMessage = null; + com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) e.getUnfinishedMessage(); + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -477,12 +484,13 @@ public Builder mergeFrom( * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * Required. The name of the game server deployment, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -499,12 +507,13 @@ public java.lang.String getName() { * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * Required. The name of the game server deployment, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -521,12 +530,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * Required. The name of the game server deployment, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -541,12 +552,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * Required. The name of the game server deployment, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -558,12 +570,14 @@ public Builder clearName() { * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * Required. The name of the game server deployment, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -587,42 +601,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) - private static final com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) + private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest(); + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest(); } - public static com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public GetDeploymentTargetRequest parsePartialFrom( + public FetchDeploymentStateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDeploymentTargetRequest(input, extensionRegistry); + return new FetchDeploymentStateRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetDeploymentTargetRequest getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetDeploymentTargetRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetDeploymentTargetRequestOrBuilder.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequestOrBuilder.java index 43e20ae1..d878d2ab 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetDeploymentTargetRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,33 +18,35 @@ package com.google.cloud.gaming.v1alpha; -public interface GetDeploymentTargetRequestOrBuilder +public interface FetchDeploymentStateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetDeploymentTargetRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. The name of the game server deployment, using the
-   * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * Required. The name of the game server deployment, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * Required. The name of the game server deployment, using the
-   * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * Required. The name of the game server deployment, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponse.java new file mode 100644 index 00000000..e41620f3 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponse.java @@ -0,0 +1,6676 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Response message for GameServerDeploymentsService.FetchDeploymentState.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.FetchDeploymentStateResponse} + */ +public final class FetchDeploymentStateResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) + FetchDeploymentStateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchDeploymentStateResponse.newBuilder() to construct. + private FetchDeploymentStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchDeploymentStateResponse() { + details_ = java.util.Collections.emptyList(); + unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchDeploymentStateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FetchDeploymentStateResponse( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = + new java.util.ArrayList< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails>(); + mutable_bitField0_ |= 0x00000001; + } + details_.add( + input.readMessage( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unavailable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unavailable_.add(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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unavailable_ = unavailable_.getUnmodifiableView(); + } + 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_FetchDeploymentStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.Builder.class); + } + + public interface DeployedFleetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Information about the agones fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + * + * @return Whether the fleet field is set. + */ + boolean hasFleet(); + /** + * + * + *
+     * Information about the agones fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + * + * @return The fleet. + */ + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + getFleet(); + /** + * + * + *
+     * Information about the agones fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + */ + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetOrBuilder + getFleetOrBuilder(); + + /** + * + * + *
+     * Information about the agones autoscaler for that fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + * + * @return Whether the autoscaler field is set. + */ + boolean hasAutoscaler(); + /** + * + * + *
+     * Information about the agones autoscaler for that fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + * + * @return The autoscaler. + */ + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + getAutoscaler(); + /** + * + * + *
+     * Information about the agones autoscaler for that fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + */ + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscalerOrBuilder + getAutoscalerOrBuilder(); + } + /** + * + * + *
+   * Details of the deployed fleet.
+   * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails} + */ + public static final class DeployedFleetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) + DeployedFleetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployedFleetDetails.newBuilder() to construct. + private DeployedFleetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployedFleetDetails() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployedFleetDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployedFleetDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.Builder + subBuilder = null; + if (fleet_ != null) { + subBuilder = fleet_.toBuilder(); + } + fleet_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fleet_); + fleet_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.Builder + subBuilder = null; + if (autoscaler_ != null) { + subBuilder = autoscaler_.toBuilder(); + } + autoscaler_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaler_); + autoscaler_ = 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.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Builder.class); + } + + public interface FleetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The name of the Agones game server fleet.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+       * The name of the Agones game server fleet.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+       * The Agones fleet spec.
+       * This is sent because it is possible that we may no longer have the
+       * corresponding game server config in our systems.
+       * 
+ * + * string agones_spec = 2; + * + * @return The agonesSpec. + */ + java.lang.String getAgonesSpec(); + /** + * + * + *
+       * The Agones fleet spec.
+       * This is sent because it is possible that we may no longer have the
+       * corresponding game server config in our systems.
+       * 
+ * + * string agones_spec = 2; + * + * @return The bytes for agonesSpec. + */ + com.google.protobuf.ByteString getAgonesSpecBytes(); + + /** + * + * + *
+       * The cluster name.
+       * 
+ * + * string cluster = 3; + * + * @return The cluster. + */ + java.lang.String getCluster(); + /** + * + * + *
+       * The cluster name.
+       * 
+ * + * string cluster = 3; + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
+       * The source spec that is used to create the fleet.
+       * The game server config and fleet config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return Whether the specSource field is set. + */ + boolean hasSpecSource(); + /** + * + * + *
+       * The source spec that is used to create the fleet.
+       * The game server config and fleet config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return The specSource. + */ + com.google.cloud.gaming.v1alpha.SpecSource getSpecSource(); + /** + * + * + *
+       * The source spec that is used to create the fleet.
+       * The game server config and fleet config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder(); + + /** + * + * + *
+       * The current status of the fleet.
+       * Includes count of game servers in various states.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * + * + *
+       * The current status of the fleet.
+       * Includes count of game servers in various states.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + * + * @return The status. + */ + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus + getStatus(); + /** + * + * + *
+       * The current status of the fleet.
+       * Includes count of game servers in various states.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + */ + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatusOrBuilder + getStatusOrBuilder(); + } + /** + * + * + *
+     * Fleet specification and details.
+     * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet} + */ + public static final class Fleet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) + FleetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Fleet.newBuilder() to construct. + private Fleet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Fleet() { + name_ = ""; + agonesSpec_ = ""; + cluster_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Fleet(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Fleet( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + agonesSpec_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + cluster_ = s; + break; + } + case 34: + { + com.google.cloud.gaming.v1alpha.SpecSource.Builder subBuilder = null; + if (specSource_ != null) { + subBuilder = specSource_.toBuilder(); + } + specSource_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.SpecSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(specSource_); + specSource_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.Builder + subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = 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.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.Builder.class); + } + + public interface FleetStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * The number of available servers.
+         * The are no players connected to this servers.
+         * 
+ * + * int64 available_count = 1; + * + * @return The availableCount. + */ + long getAvailableCount(); + + /** + * + * + *
+         * The number of allocated servers.
+         * These are servers allocated to game sessions.
+         * 
+ * + * int64 allocated_count = 2; + * + * @return The allocatedCount. + */ + long getAllocatedCount(); + + /** + * + * + *
+         * The number of reserved servers.
+         * Reserved instances won't be deleted on scale down, but won't cause
+         * an autoscaler to scale up.
+         * 
+ * + * int64 reserved_count = 3; + * + * @return The reservedCount. + */ + long getReservedCount(); + + /** + * + * + *
+         * The total number of current GameServer replicas.
+         * 
+ * + * int64 replica_count = 4; + * + * @return The replicaCount. + */ + long getReplicaCount(); + } + /** + * + * + *
+       * FleetStatus has details about the fleets like how many are running,
+       * how many allocated and so on.
+       * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus} + */ + public static final class FleetStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) + FleetStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use FleetStatus.newBuilder() to construct. + private FleetStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FleetStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FleetStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FleetStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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 8: + { + availableCount_ = input.readInt64(); + break; + } + case 16: + { + allocatedCount_ = input.readInt64(); + break; + } + case 24: + { + reservedCount_ = input.readInt64(); + break; + } + case 32: + { + replicaCount_ = input.readInt64(); + 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_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.Builder.class); + } + + public static final int AVAILABLE_COUNT_FIELD_NUMBER = 1; + private long availableCount_; + /** + * + * + *
+         * The number of available servers.
+         * The are no players connected to this servers.
+         * 
+ * + * int64 available_count = 1; + * + * @return The availableCount. + */ + public long getAvailableCount() { + return availableCount_; + } + + public static final int ALLOCATED_COUNT_FIELD_NUMBER = 2; + private long allocatedCount_; + /** + * + * + *
+         * The number of allocated servers.
+         * These are servers allocated to game sessions.
+         * 
+ * + * int64 allocated_count = 2; + * + * @return The allocatedCount. + */ + public long getAllocatedCount() { + return allocatedCount_; + } + + public static final int RESERVED_COUNT_FIELD_NUMBER = 3; + private long reservedCount_; + /** + * + * + *
+         * The number of reserved servers.
+         * Reserved instances won't be deleted on scale down, but won't cause
+         * an autoscaler to scale up.
+         * 
+ * + * int64 reserved_count = 3; + * + * @return The reservedCount. + */ + public long getReservedCount() { + return reservedCount_; + } + + public static final int REPLICA_COUNT_FIELD_NUMBER = 4; + private long replicaCount_; + /** + * + * + *
+         * The total number of current GameServer replicas.
+         * 
+ * + * int64 replica_count = 4; + * + * @return The replicaCount. + */ + public long getReplicaCount() { + return replicaCount_; + } + + 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 (availableCount_ != 0L) { + output.writeInt64(1, availableCount_); + } + if (allocatedCount_ != 0L) { + output.writeInt64(2, allocatedCount_); + } + if (reservedCount_ != 0L) { + output.writeInt64(3, reservedCount_); + } + if (replicaCount_ != 0L) { + output.writeInt64(4, replicaCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (availableCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, availableCount_); + } + if (allocatedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, allocatedCount_); + } + if (reservedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, reservedCount_); + } + if (replicaCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, replicaCount_); + } + 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.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus + other = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus) + obj; + + if (getAvailableCount() != other.getAvailableCount()) return false; + if (getAllocatedCount() != other.getAllocatedCount()) return false; + if (getReservedCount() != other.getReservedCount()) return false; + if (getReplicaCount() != other.getReplicaCount()) 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) + AVAILABLE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAvailableCount()); + hash = (37 * hash) + ALLOCATED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAllocatedCount()); + hash = (37 * hash) + RESERVED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedCount()); + hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReplicaCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + 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.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus + 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; + } + /** + * + * + *
+         * FleetStatus has details about the fleets like how many are running,
+         * how many allocated and so on.
+         * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + availableCount_ = 0L; + + allocatedCount_ = 0L; + + reservedCount_ = 0L; + + replicaCount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus + build() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus + buildPartial() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus + result = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus(this); + result.availableCount_ = availableCount_; + result.allocatedCount_ = allocatedCount_; + result.reservedCount_ = reservedCount_; + result.replicaCount_ = replicaCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus + other) { + if (other + == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.getDefaultInstance()) return this; + if (other.getAvailableCount() != 0L) { + setAvailableCount(other.getAvailableCount()); + } + if (other.getAllocatedCount() != 0L) { + setAllocatedCount(other.getAllocatedCount()); + } + if (other.getReservedCount() != 0L) { + setReservedCount(other.getReservedCount()); + } + if (other.getReplicaCount() != 0L) { + setReplicaCount(other.getReplicaCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long availableCount_; + /** + * + * + *
+           * The number of available servers.
+           * The are no players connected to this servers.
+           * 
+ * + * int64 available_count = 1; + * + * @return The availableCount. + */ + public long getAvailableCount() { + return availableCount_; + } + /** + * + * + *
+           * The number of available servers.
+           * The are no players connected to this servers.
+           * 
+ * + * int64 available_count = 1; + * + * @param value The availableCount to set. + * @return This builder for chaining. + */ + public Builder setAvailableCount(long value) { + + availableCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * The number of available servers.
+           * The are no players connected to this servers.
+           * 
+ * + * int64 available_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearAvailableCount() { + + availableCount_ = 0L; + onChanged(); + return this; + } + + private long allocatedCount_; + /** + * + * + *
+           * The number of allocated servers.
+           * These are servers allocated to game sessions.
+           * 
+ * + * int64 allocated_count = 2; + * + * @return The allocatedCount. + */ + public long getAllocatedCount() { + return allocatedCount_; + } + /** + * + * + *
+           * The number of allocated servers.
+           * These are servers allocated to game sessions.
+           * 
+ * + * int64 allocated_count = 2; + * + * @param value The allocatedCount to set. + * @return This builder for chaining. + */ + public Builder setAllocatedCount(long value) { + + allocatedCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * The number of allocated servers.
+           * These are servers allocated to game sessions.
+           * 
+ * + * int64 allocated_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearAllocatedCount() { + + allocatedCount_ = 0L; + onChanged(); + return this; + } + + private long reservedCount_; + /** + * + * + *
+           * The number of reserved servers.
+           * Reserved instances won't be deleted on scale down, but won't cause
+           * an autoscaler to scale up.
+           * 
+ * + * int64 reserved_count = 3; + * + * @return The reservedCount. + */ + public long getReservedCount() { + return reservedCount_; + } + /** + * + * + *
+           * The number of reserved servers.
+           * Reserved instances won't be deleted on scale down, but won't cause
+           * an autoscaler to scale up.
+           * 
+ * + * int64 reserved_count = 3; + * + * @param value The reservedCount to set. + * @return This builder for chaining. + */ + public Builder setReservedCount(long value) { + + reservedCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * The number of reserved servers.
+           * Reserved instances won't be deleted on scale down, but won't cause
+           * an autoscaler to scale up.
+           * 
+ * + * int64 reserved_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearReservedCount() { + + reservedCount_ = 0L; + onChanged(); + return this; + } + + private long replicaCount_; + /** + * + * + *
+           * The total number of current GameServer replicas.
+           * 
+ * + * int64 replica_count = 4; + * + * @return The replicaCount. + */ + public long getReplicaCount() { + return replicaCount_; + } + /** + * + * + *
+           * The total number of current GameServer replicas.
+           * 
+ * + * int64 replica_count = 4; + * + * @param value The replicaCount to set. + * @return This builder for chaining. + */ + public Builder setReplicaCount(long value) { + + replicaCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * The total number of current GameServer replicas.
+           * 
+ * + * int64 replica_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearReplicaCount() { + + replicaCount_ = 0L; + 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.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus) + private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus(); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FleetStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FleetStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+       * The name of the Agones game server fleet.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 name of the Agones game server fleet.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 AGONES_SPEC_FIELD_NUMBER = 2; + private volatile java.lang.Object agonesSpec_; + /** + * + * + *
+       * The Agones fleet spec.
+       * This is sent because it is possible that we may no longer have the
+       * corresponding game server config in our systems.
+       * 
+ * + * string agones_spec = 2; + * + * @return The agonesSpec. + */ + public java.lang.String getAgonesSpec() { + java.lang.Object ref = agonesSpec_; + 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(); + agonesSpec_ = s; + return s; + } + } + /** + * + * + *
+       * The Agones fleet spec.
+       * This is sent because it is possible that we may no longer have the
+       * corresponding game server config in our systems.
+       * 
+ * + * string agones_spec = 2; + * + * @return The bytes for agonesSpec. + */ + public com.google.protobuf.ByteString getAgonesSpecBytes() { + java.lang.Object ref = agonesSpec_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agonesSpec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 3; + private volatile java.lang.Object cluster_; + /** + * + * + *
+       * The cluster name.
+       * 
+ * + * string cluster = 3; + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + 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(); + cluster_ = s; + return s; + } + } + /** + * + * + *
+       * The cluster name.
+       * 
+ * + * string cluster = 3; + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_SOURCE_FIELD_NUMBER = 4; + private com.google.cloud.gaming.v1alpha.SpecSource specSource_; + /** + * + * + *
+       * The source spec that is used to create the fleet.
+       * The game server config and fleet config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return Whether the specSource field is set. + */ + public boolean hasSpecSource() { + return specSource_ != null; + } + /** + * + * + *
+       * The source spec that is used to create the fleet.
+       * The game server config and fleet config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return The specSource. + */ + public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } + /** + * + * + *
+       * The source spec that is used to create the fleet.
+       * The game server config and fleet config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { + return getSpecSource(); + } + + public static final int STATUS_FIELD_NUMBER = 5; + private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus + status_; + /** + * + * + *
+       * The current status of the fleet.
+       * Includes count of game servers in various states.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return status_ != null; + } + /** + * + * + *
+       * The current status of the fleet.
+       * Includes count of game servers in various states.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + * + * @return The status. + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus + getStatus() { + return status_ == null + ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.getDefaultInstance() + : status_; + } + /** + * + * + *
+       * The current status of the fleet.
+       * Includes count of game servers in various states.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatusOrBuilder + getStatusOrBuilder() { + return getStatus(); + } + + 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 (!getAgonesSpecBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, agonesSpec_); + } + if (!getClusterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cluster_); + } + if (specSource_ != null) { + output.writeMessage(4, getSpecSource()); + } + if (status_ != null) { + output.writeMessage(5, getStatus()); + } + 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 (!getAgonesSpecBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, agonesSpec_); + } + if (!getClusterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cluster_); + } + if (specSource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpecSource()); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStatus()); + } + 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.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + other = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet) + obj; + + if (!getName().equals(other.getName())) return false; + if (!getAgonesSpec().equals(other.getAgonesSpec())) return false; + if (!getCluster().equals(other.getCluster())) return false; + if (hasSpecSource() != other.hasSpecSource()) return false; + if (hasSpecSource()) { + if (!getSpecSource().equals(other.getSpecSource())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus().equals(other.getStatus())) 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 = (37 * hash) + AGONES_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getAgonesSpec().hashCode(); + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + if (hasSpecSource()) { + hash = (37 * hash) + SPEC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSpecSource().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + 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.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + 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; + } + /** + * + * + *
+       * Fleet specification and details.
+       * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + agonesSpec_ = ""; + + cluster_ = ""; + + if (specSourceBuilder_ == null) { + specSource_ = null; + } else { + specSource_ = null; + specSourceBuilder_ = null; + } + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet + build() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet + buildPartial() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + result = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet(this); + result.name_ = name_; + result.agonesSpec_ = agonesSpec_; + result.cluster_ = cluster_; + if (specSourceBuilder_ == null) { + result.specSource_ = specSource_; + } else { + result.specSource_ = specSourceBuilder_.build(); + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + other) { + if (other + == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getAgonesSpec().isEmpty()) { + agonesSpec_ = other.agonesSpec_; + onChanged(); + } + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + onChanged(); + } + if (other.hasSpecSource()) { + mergeSpecSource(other.getSpecSource()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+         * The name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object agonesSpec_ = ""; + /** + * + * + *
+         * The Agones fleet spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string agones_spec = 2; + * + * @return The agonesSpec. + */ + public java.lang.String getAgonesSpec() { + java.lang.Object ref = agonesSpec_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agonesSpec_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The Agones fleet spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string agones_spec = 2; + * + * @return The bytes for agonesSpec. + */ + public com.google.protobuf.ByteString getAgonesSpecBytes() { + java.lang.Object ref = agonesSpec_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agonesSpec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The Agones fleet spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string agones_spec = 2; + * + * @param value The agonesSpec to set. + * @return This builder for chaining. + */ + public Builder setAgonesSpec(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + agonesSpec_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The Agones fleet spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string agones_spec = 2; + * + * @return This builder for chaining. + */ + public Builder clearAgonesSpec() { + + agonesSpec_ = getDefaultInstance().getAgonesSpec(); + onChanged(); + return this; + } + /** + * + * + *
+         * The Agones fleet spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string agones_spec = 2; + * + * @param value The bytes for agonesSpec to set. + * @return This builder for chaining. + */ + public Builder setAgonesSpecBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + agonesSpec_ = value; + onChanged(); + return this; + } + + private java.lang.Object cluster_ = ""; + /** + * + * + *
+         * The cluster name.
+         * 
+ * + * string cluster = 3; + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The cluster name.
+         * 
+ * + * string cluster = 3; + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The cluster name.
+         * 
+ * + * string cluster = 3; + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cluster_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The cluster name.
+         * 
+ * + * string cluster = 3; + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + + cluster_ = getDefaultInstance().getCluster(); + onChanged(); + return this; + } + /** + * + * + *
+         * The cluster name.
+         * 
+ * + * string cluster = 3; + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cluster_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.SpecSource specSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> + specSourceBuilder_; + /** + * + * + *
+         * The source spec that is used to create the fleet.
+         * The game server config and fleet config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return Whether the specSource field is set. + */ + public boolean hasSpecSource() { + return specSourceBuilder_ != null || specSource_ != null; + } + /** + * + * + *
+         * The source spec that is used to create the fleet.
+         * The game server config and fleet config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return The specSource. + */ + public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { + if (specSourceBuilder_ == null) { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } else { + return specSourceBuilder_.getMessage(); + } + } + /** + * + * + *
+         * The source spec that is used to create the fleet.
+         * The game server config and fleet config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public Builder setSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { + if (specSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + specSource_ = value; + onChanged(); + } else { + specSourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+         * The source spec that is used to create the fleet.
+         * The game server config and fleet config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public Builder setSpecSource( + com.google.cloud.gaming.v1alpha.SpecSource.Builder builderForValue) { + if (specSourceBuilder_ == null) { + specSource_ = builderForValue.build(); + onChanged(); + } else { + specSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+         * The source spec that is used to create the fleet.
+         * The game server config and fleet config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public Builder mergeSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { + if (specSourceBuilder_ == null) { + if (specSource_ != null) { + specSource_ = + com.google.cloud.gaming.v1alpha.SpecSource.newBuilder(specSource_) + .mergeFrom(value) + .buildPartial(); + } else { + specSource_ = value; + } + onChanged(); + } else { + specSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+         * The source spec that is used to create the fleet.
+         * The game server config and fleet config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public Builder clearSpecSource() { + if (specSourceBuilder_ == null) { + specSource_ = null; + onChanged(); + } else { + specSource_ = null; + specSourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+         * The source spec that is used to create the fleet.
+         * The game server config and fleet config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public com.google.cloud.gaming.v1alpha.SpecSource.Builder getSpecSourceBuilder() { + + onChanged(); + return getSpecSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * The source spec that is used to create the fleet.
+         * The game server config and fleet config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { + if (specSourceBuilder_ != null) { + return specSourceBuilder_.getMessageOrBuilder(); + } else { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } + } + /** + * + * + *
+         * The source spec that is used to create the fleet.
+         * The game server config and fleet config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> + getSpecSourceFieldBuilder() { + if (specSourceBuilder_ == null) { + specSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder>( + getSpecSource(), getParentForChildren(), isClean()); + specSource_ = null; + } + return specSourceBuilder_; + } + + private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus + status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatusOrBuilder> + statusBuilder_; + /** + * + * + *
+         * The current status of the fleet.
+         * Includes count of game servers in various states.
+         * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + * + * + *
+         * The current status of the fleet.
+         * Includes count of game servers in various states.
+         * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + * + * @return The status. + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus + getStatus() { + if (statusBuilder_ == null) { + return status_ == null + ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.getDefaultInstance() + : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * + * + *
+         * The current status of the fleet.
+         * Includes count of game servers in various states.
+         * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + */ + public Builder setStatus( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus + value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+         * The current status of the fleet.
+         * Includes count of game servers in various states.
+         * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + */ + public Builder setStatus( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus.Builder + builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+         * The current status of the fleet.
+         * Includes count of game servers in various states.
+         * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + */ + public Builder mergeStatus( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .FleetStatus + value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.newBuilder(status_) + .mergeFrom(value) + .buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+         * The current status of the fleet.
+         * Includes count of game servers in various states.
+         * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+         * The current status of the fleet.
+         * Includes count of game servers in various states.
+         * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.Builder + getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * The current status of the fleet.
+         * Includes count of game servers in various states.
+         * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatusOrBuilder + getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null + ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.getDefaultInstance() + : status_; + } + } + /** + * + * + *
+         * The current status of the fleet.
+         * Includes count of game servers in various states.
+         * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet.FleetStatus status = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatus.Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.FleetStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatus.Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet.FleetStatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } + + @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.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet) + private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet(); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.Fleet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fleet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Fleet(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FleetAutoscalerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string autoscaler_name = 1; + * + * @return The autoscalerName. + */ + java.lang.String getAutoscalerName(); + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string autoscaler_name = 1; + * + * @return The bytes for autoscalerName. + */ + com.google.protobuf.ByteString getAutoscalerNameBytes(); + + /** + * + * + *
+       * The source spec that is used to create the autoscaler.
+       * The game server config and scaling config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return Whether the specSource field is set. + */ + boolean hasSpecSource(); + /** + * + * + *
+       * The source spec that is used to create the autoscaler.
+       * The game server config and scaling config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return The specSource. + */ + com.google.cloud.gaming.v1alpha.SpecSource getSpecSource(); + /** + * + * + *
+       * The source spec that is used to create the autoscaler.
+       * The game server config and scaling config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder(); + + /** + * + * + *
+       * The autoscaler spec.
+       * This is sent because it is possible that we may no longer have the
+       * corresponding game server config in our systems.
+       * 
+ * + * string fleet_autoscaler_spec = 3; + * + * @return The fleetAutoscalerSpec. + */ + java.lang.String getFleetAutoscalerSpec(); + /** + * + * + *
+       * The autoscaler spec.
+       * This is sent because it is possible that we may no longer have the
+       * corresponding game server config in our systems.
+       * 
+ * + * string fleet_autoscaler_spec = 3; + * + * @return The bytes for fleetAutoscalerSpec. + */ + com.google.protobuf.ByteString getFleetAutoscalerSpecBytes(); + } + /** + * + * + *
+     * Details about the autoscaler.
+     * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler} + */ + public static final class FleetAutoscaler extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) + FleetAutoscalerOrBuilder { + private static final long serialVersionUID = 0L; + // Use FleetAutoscaler.newBuilder() to construct. + private FleetAutoscaler(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FleetAutoscaler() { + autoscalerName_ = ""; + fleetAutoscalerSpec_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FleetAutoscaler(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FleetAutoscaler( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + autoscalerName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + fleetAutoscalerSpec_ = s; + break; + } + case 34: + { + com.google.cloud.gaming.v1alpha.SpecSource.Builder subBuilder = null; + if (specSource_ != null) { + subBuilder = specSource_.toBuilder(); + } + specSource_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.SpecSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(specSource_); + specSource_ = 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.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.Builder.class); + } + + public static final int AUTOSCALER_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object autoscalerName_; + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string autoscaler_name = 1; + * + * @return The autoscalerName. + */ + public java.lang.String getAutoscalerName() { + java.lang.Object ref = autoscalerName_; + 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(); + autoscalerName_ = s; + return s; + } + } + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string autoscaler_name = 1; + * + * @return The bytes for autoscalerName. + */ + public com.google.protobuf.ByteString getAutoscalerNameBytes() { + java.lang.Object ref = autoscalerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoscalerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_SOURCE_FIELD_NUMBER = 4; + private com.google.cloud.gaming.v1alpha.SpecSource specSource_; + /** + * + * + *
+       * The source spec that is used to create the autoscaler.
+       * The game server config and scaling config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return Whether the specSource field is set. + */ + public boolean hasSpecSource() { + return specSource_ != null; + } + /** + * + * + *
+       * The source spec that is used to create the autoscaler.
+       * The game server config and scaling config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return The specSource. + */ + public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } + /** + * + * + *
+       * The source spec that is used to create the autoscaler.
+       * The game server config and scaling config may no longer
+       * exist in the system.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { + return getSpecSource(); + } + + public static final int FLEET_AUTOSCALER_SPEC_FIELD_NUMBER = 3; + private volatile java.lang.Object fleetAutoscalerSpec_; + /** + * + * + *
+       * The autoscaler spec.
+       * This is sent because it is possible that we may no longer have the
+       * corresponding game server config in our systems.
+       * 
+ * + * string fleet_autoscaler_spec = 3; + * + * @return The fleetAutoscalerSpec. + */ + public java.lang.String getFleetAutoscalerSpec() { + java.lang.Object ref = fleetAutoscalerSpec_; + 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(); + fleetAutoscalerSpec_ = s; + return s; + } + } + /** + * + * + *
+       * The autoscaler spec.
+       * This is sent because it is possible that we may no longer have the
+       * corresponding game server config in our systems.
+       * 
+ * + * string fleet_autoscaler_spec = 3; + * + * @return The bytes for fleetAutoscalerSpec. + */ + public com.google.protobuf.ByteString getFleetAutoscalerSpecBytes() { + java.lang.Object ref = fleetAutoscalerSpec_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetAutoscalerSpec_ = 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 (!getAutoscalerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoscalerName_); + } + if (!getFleetAutoscalerSpecBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fleetAutoscalerSpec_); + } + if (specSource_ != null) { + output.writeMessage(4, getSpecSource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAutoscalerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoscalerName_); + } + if (!getFleetAutoscalerSpecBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fleetAutoscalerSpec_); + } + if (specSource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpecSource()); + } + 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.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + other = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler) + obj; + + if (!getAutoscalerName().equals(other.getAutoscalerName())) return false; + if (hasSpecSource() != other.hasSpecSource()) return false; + if (hasSpecSource()) { + if (!getSpecSource().equals(other.getSpecSource())) return false; + } + if (!getFleetAutoscalerSpec().equals(other.getFleetAutoscalerSpec())) 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) + AUTOSCALER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAutoscalerName().hashCode(); + if (hasSpecSource()) { + hash = (37 * hash) + SPEC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSpecSource().hashCode(); + } + hash = (37 * hash) + FLEET_AUTOSCALER_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getFleetAutoscalerSpec().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + 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.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + 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.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + 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; + } + /** + * + * + *
+       * Details about the autoscaler.
+       * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscalerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + autoscalerName_ = ""; + + if (specSourceBuilder_ == null) { + specSource_ = null; + } else { + specSource_ = null; + specSourceBuilder_ = null; + } + fleetAutoscalerSpec_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + build() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + buildPartial() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + result = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler(this); + result.autoscalerName_ = autoscalerName_; + if (specSourceBuilder_ == null) { + result.specSource_ = specSource_; + } else { + result.specSource_ = specSourceBuilder_.build(); + } + result.fleetAutoscalerSpec_ = fleetAutoscalerSpec_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + other) { + if (other + == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.getDefaultInstance()) return this; + if (!other.getAutoscalerName().isEmpty()) { + autoscalerName_ = other.autoscalerName_; + onChanged(); + } + if (other.hasSpecSource()) { + mergeSpecSource(other.getSpecSource()); + } + if (!other.getFleetAutoscalerSpec().isEmpty()) { + fleetAutoscalerSpec_ = other.fleetAutoscalerSpec_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object autoscalerName_ = ""; + /** + * + * + *
+         * The name of the Agones autoscaler.
+         * 
+ * + * string autoscaler_name = 1; + * + * @return The autoscalerName. + */ + public java.lang.String getAutoscalerName() { + java.lang.Object ref = autoscalerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoscalerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The name of the Agones autoscaler.
+         * 
+ * + * string autoscaler_name = 1; + * + * @return The bytes for autoscalerName. + */ + public com.google.protobuf.ByteString getAutoscalerNameBytes() { + java.lang.Object ref = autoscalerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoscalerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The name of the Agones autoscaler.
+         * 
+ * + * string autoscaler_name = 1; + * + * @param value The autoscalerName to set. + * @return This builder for chaining. + */ + public Builder setAutoscalerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + autoscalerName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The name of the Agones autoscaler.
+         * 
+ * + * string autoscaler_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearAutoscalerName() { + + autoscalerName_ = getDefaultInstance().getAutoscalerName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The name of the Agones autoscaler.
+         * 
+ * + * string autoscaler_name = 1; + * + * @param value The bytes for autoscalerName to set. + * @return This builder for chaining. + */ + public Builder setAutoscalerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + autoscalerName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.SpecSource specSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> + specSourceBuilder_; + /** + * + * + *
+         * The source spec that is used to create the autoscaler.
+         * The game server config and scaling config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return Whether the specSource field is set. + */ + public boolean hasSpecSource() { + return specSourceBuilder_ != null || specSource_ != null; + } + /** + * + * + *
+         * The source spec that is used to create the autoscaler.
+         * The game server config and scaling config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + * + * @return The specSource. + */ + public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { + if (specSourceBuilder_ == null) { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } else { + return specSourceBuilder_.getMessage(); + } + } + /** + * + * + *
+         * The source spec that is used to create the autoscaler.
+         * The game server config and scaling config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public Builder setSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { + if (specSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + specSource_ = value; + onChanged(); + } else { + specSourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+         * The source spec that is used to create the autoscaler.
+         * The game server config and scaling config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public Builder setSpecSource( + com.google.cloud.gaming.v1alpha.SpecSource.Builder builderForValue) { + if (specSourceBuilder_ == null) { + specSource_ = builderForValue.build(); + onChanged(); + } else { + specSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+         * The source spec that is used to create the autoscaler.
+         * The game server config and scaling config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public Builder mergeSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { + if (specSourceBuilder_ == null) { + if (specSource_ != null) { + specSource_ = + com.google.cloud.gaming.v1alpha.SpecSource.newBuilder(specSource_) + .mergeFrom(value) + .buildPartial(); + } else { + specSource_ = value; + } + onChanged(); + } else { + specSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+         * The source spec that is used to create the autoscaler.
+         * The game server config and scaling config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public Builder clearSpecSource() { + if (specSourceBuilder_ == null) { + specSource_ = null; + onChanged(); + } else { + specSource_ = null; + specSourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+         * The source spec that is used to create the autoscaler.
+         * The game server config and scaling config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public com.google.cloud.gaming.v1alpha.SpecSource.Builder getSpecSourceBuilder() { + + onChanged(); + return getSpecSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * The source spec that is used to create the autoscaler.
+         * The game server config and scaling config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { + if (specSourceBuilder_ != null) { + return specSourceBuilder_.getMessageOrBuilder(); + } else { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } + } + /** + * + * + *
+         * The source spec that is used to create the autoscaler.
+         * The game server config and scaling config may no longer
+         * exist in the system.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> + getSpecSourceFieldBuilder() { + if (specSourceBuilder_ == null) { + specSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder>( + getSpecSource(), getParentForChildren(), isClean()); + specSource_ = null; + } + return specSourceBuilder_; + } + + private java.lang.Object fleetAutoscalerSpec_ = ""; + /** + * + * + *
+         * The autoscaler spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string fleet_autoscaler_spec = 3; + * + * @return The fleetAutoscalerSpec. + */ + public java.lang.String getFleetAutoscalerSpec() { + java.lang.Object ref = fleetAutoscalerSpec_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fleetAutoscalerSpec_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The autoscaler spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string fleet_autoscaler_spec = 3; + * + * @return The bytes for fleetAutoscalerSpec. + */ + public com.google.protobuf.ByteString getFleetAutoscalerSpecBytes() { + java.lang.Object ref = fleetAutoscalerSpec_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetAutoscalerSpec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The autoscaler spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string fleet_autoscaler_spec = 3; + * + * @param value The fleetAutoscalerSpec to set. + * @return This builder for chaining. + */ + public Builder setFleetAutoscalerSpec(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fleetAutoscalerSpec_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The autoscaler spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string fleet_autoscaler_spec = 3; + * + * @return This builder for chaining. + */ + public Builder clearFleetAutoscalerSpec() { + + fleetAutoscalerSpec_ = getDefaultInstance().getFleetAutoscalerSpec(); + onChanged(); + return this; + } + /** + * + * + *
+         * The autoscaler spec.
+         * This is sent because it is possible that we may no longer have the
+         * corresponding game server config in our systems.
+         * 
+ * + * string fleet_autoscaler_spec = 3; + * + * @param value The bytes for fleetAutoscalerSpec to set. + * @return This builder for chaining. + */ + public Builder setFleetAutoscalerSpecBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fleetAutoscalerSpec_ = 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.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler) + private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler(); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails.FleetAutoscaler + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FleetAutoscaler parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FleetAutoscaler(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FLEET_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + fleet_; + /** + * + * + *
+     * Information about the agones fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + * + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return fleet_ != null; + } + /** + * + * + *
+     * Information about the agones fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + * + * @return The fleet. + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + getFleet() { + return fleet_ == null + ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .getDefaultInstance() + : fleet_; + } + /** + * + * + *
+     * Information about the agones fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetOrBuilder + getFleetOrBuilder() { + return getFleet(); + } + + public static final int AUTOSCALER_FIELD_NUMBER = 2; + private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + autoscaler_; + /** + * + * + *
+     * Information about the agones autoscaler for that fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + * + * @return Whether the autoscaler field is set. + */ + public boolean hasAutoscaler() { + return autoscaler_ != null; + } + /** + * + * + *
+     * Information about the agones autoscaler for that fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + * + * @return The autoscaler. + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + getAutoscaler() { + return autoscaler_ == null + ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.getDefaultInstance() + : autoscaler_; + } + /** + * + * + *
+     * Information about the agones autoscaler for that fleet.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscalerOrBuilder + getAutoscalerOrBuilder() { + return getAutoscaler(); + } + + 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 (fleet_ != null) { + output.writeMessage(1, getFleet()); + } + if (autoscaler_ != null) { + output.writeMessage(2, getAutoscaler()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fleet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFleet()); + } + if (autoscaler_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAutoscaler()); + } + 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.FetchDeploymentStateResponse.DeployedFleetDetails)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails other = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) obj; + + if (hasFleet() != other.hasFleet()) return false; + if (hasFleet()) { + if (!getFleet().equals(other.getFleet())) return false; + } + if (hasAutoscaler() != other.hasAutoscaler()) return false; + if (hasAutoscaler()) { + if (!getAutoscaler().equals(other.getAutoscaler())) 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 (hasFleet()) { + hash = (37 * hash) + FLEET_FIELD_NUMBER; + hash = (53 * hash) + getFleet().hashCode(); + } + if (hasAutoscaler()) { + hash = (37 * hash) + AUTOSCALER_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaler().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + 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.FetchDeploymentStateResponse.DeployedFleetDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + 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.FetchDeploymentStateResponse.DeployedFleetDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + 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.FetchDeploymentStateResponse.DeployedFleetDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + 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.FetchDeploymentStateResponse.DeployedFleetDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + 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.FetchDeploymentStateResponse.DeployedFleetDetails + 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.FetchDeploymentStateResponse.DeployedFleetDetails + 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.FetchDeploymentStateResponse.DeployedFleetDetails + 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; + } + /** + * + * + *
+     * Details of the deployed fleet.
+     * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (fleetBuilder_ == null) { + fleet_ = null; + } else { + fleet_ = null; + fleetBuilder_ = null; + } + if (autoscalerBuilder_ == null) { + autoscaler_ = null; + } else { + autoscaler_ = null; + autoscalerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + build() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + buildPartial() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails result = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails( + this); + if (fleetBuilder_ == null) { + result.fleet_ = fleet_; + } else { + result.fleet_ = fleetBuilder_.build(); + } + if (autoscalerBuilder_ == null) { + result.autoscaler_ = autoscaler_; + } else { + result.autoscaler_ = autoscalerBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails other) { + if (other + == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .getDefaultInstance()) return this; + if (other.hasFleet()) { + mergeFleet(other.getFleet()); + } + if (other.hasAutoscaler()) { + mergeAutoscaler(other.getAutoscaler()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet + fleet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetOrBuilder> + fleetBuilder_; + /** + * + * + *
+       * Information about the agones fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + * + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return fleetBuilder_ != null || fleet_ != null; + } + /** + * + * + *
+       * Information about the agones fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + * + * @return The fleet. + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + getFleet() { + if (fleetBuilder_ == null) { + return fleet_ == null + ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.getDefaultInstance() + : fleet_; + } else { + return fleetBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Information about the agones fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + */ + public Builder setFleet( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + value) { + if (fleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fleet_ = value; + onChanged(); + } else { + fleetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Information about the agones fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + */ + public Builder setFleet( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .Builder + builderForValue) { + if (fleetBuilder_ == null) { + fleet_ = builderForValue.build(); + onChanged(); + } else { + fleetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Information about the agones fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + */ + public Builder mergeFleet( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + value) { + if (fleetBuilder_ == null) { + if (fleet_ != null) { + fleet_ = + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.newBuilder(fleet_) + .mergeFrom(value) + .buildPartial(); + } else { + fleet_ = value; + } + onChanged(); + } else { + fleetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Information about the agones fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + */ + public Builder clearFleet() { + if (fleetBuilder_ == null) { + fleet_ = null; + onChanged(); + } else { + fleet_ = null; + fleetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Information about the agones fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet + .Builder + getFleetBuilder() { + + onChanged(); + return getFleetFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Information about the agones fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetOrBuilder + getFleetOrBuilder() { + if (fleetBuilder_ != null) { + return fleetBuilder_.getMessageOrBuilder(); + } else { + return fleet_ == null + ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.getDefaultInstance() + : fleet_; + } + } + /** + * + * + *
+       * Information about the agones fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Fleet fleet = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetOrBuilder> + getFleetFieldBuilder() { + if (fleetBuilder_ == null) { + fleetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Fleet.Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetOrBuilder>(getFleet(), getParentForChildren(), isClean()); + fleet_ = null; + } + return fleetBuilder_; + } + + private com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + autoscaler_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscalerOrBuilder> + autoscalerBuilder_; + /** + * + * + *
+       * Information about the agones autoscaler for that fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + * + * @return Whether the autoscaler field is set. + */ + public boolean hasAutoscaler() { + return autoscalerBuilder_ != null || autoscaler_ != null; + } + /** + * + * + *
+       * Information about the agones autoscaler for that fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + * + * @return The autoscaler. + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + getAutoscaler() { + if (autoscalerBuilder_ == null) { + return autoscaler_ == null + ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.getDefaultInstance() + : autoscaler_; + } else { + return autoscalerBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Information about the agones autoscaler for that fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + */ + public Builder setAutoscaler( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + value) { + if (autoscalerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaler_ = value; + onChanged(); + } else { + autoscalerBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Information about the agones autoscaler for that fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + */ + public Builder setAutoscaler( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.Builder + builderForValue) { + if (autoscalerBuilder_ == null) { + autoscaler_ = builderForValue.build(); + onChanged(); + } else { + autoscalerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Information about the agones autoscaler for that fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + */ + public Builder mergeAutoscaler( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler + value) { + if (autoscalerBuilder_ == null) { + if (autoscaler_ != null) { + autoscaler_ = + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.newBuilder(autoscaler_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaler_ = value; + } + onChanged(); + } else { + autoscalerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Information about the agones autoscaler for that fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + */ + public Builder clearAutoscaler() { + if (autoscalerBuilder_ == null) { + autoscaler_ = null; + onChanged(); + } else { + autoscaler_ = null; + autoscalerBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Information about the agones autoscaler for that fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.Builder + getAutoscalerBuilder() { + + onChanged(); + return getAutoscalerFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Information about the agones autoscaler for that fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscalerOrBuilder + getAutoscalerOrBuilder() { + if (autoscalerBuilder_ != null) { + return autoscalerBuilder_.getMessageOrBuilder(); + } else { + return autoscaler_ == null + ? com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.getDefaultInstance() + : autoscaler_; + } + } + /** + * + * + *
+       * Information about the agones autoscaler for that fleet.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.FleetAutoscaler autoscaler = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscalerOrBuilder> + getAutoscalerFieldBuilder() { + if (autoscalerBuilder_ == null) { + autoscalerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscaler.Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .FleetAutoscalerOrBuilder>( + getAutoscaler(), getParentForChildren(), isClean()); + autoscaler_ = null; + } + return autoscalerBuilder_; + } + + @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.FetchDeploymentStateResponse.DeployedFleetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails) + private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails(); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployedFleetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployedFleetDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DETAILS_FIELD_NUMBER = 1; + private java.util.List< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails> + details_; + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public java.util.List< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails> + getDetailsList() { + return details_; + } + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetailsOrBuilder> + getDetailsOrBuilderList() { + return details_; + } + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public int getDetailsCount() { + return details_.size(); + } + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + getDetails(int index) { + return details_.get(index); + } + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetailsOrBuilder + getDetailsOrBuilder(int index) { + return details_.get(index); + } + + public static final int UNAVAILABLE_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList unavailable_; + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unavailable = 2; + * + * @return A list containing the unavailable. + */ + public com.google.protobuf.ProtocolStringList getUnavailableList() { + return unavailable_; + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unavailable = 2; + * + * @return The count of unavailable. + */ + public int getUnavailableCount() { + return unavailable_.size(); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the element to return. + * @return The unavailable at the given index. + */ + public java.lang.String getUnavailable(int index) { + return unavailable_.get(index); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the value to return. + * @return The bytes of the unavailable at the given index. + */ + public com.google.protobuf.ByteString getUnavailableBytes(int index) { + return unavailable_.getByteString(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 { + for (int i = 0; i < details_.size(); i++) { + output.writeMessage(1, details_.get(i)); + } + for (int i = 0; i < unavailable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unavailable_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < details_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, details_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < unavailable_.size(); i++) { + dataSize += computeStringSizeNoTag(unavailable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnavailableList().size(); + } + 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.FetchDeploymentStateResponse)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse other = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) obj; + + if (!getDetailsList().equals(other.getDetailsList())) return false; + if (!getUnavailableList().equals(other.getUnavailableList())) 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 (getDetailsCount() > 0) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetailsList().hashCode(); + } + if (getUnavailableCount() > 0) { + hash = (37 * hash) + UNAVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnavailableList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse 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.FetchDeploymentStateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse 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.FetchDeploymentStateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse 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.FetchDeploymentStateResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse 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.FetchDeploymentStateResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse 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.FetchDeploymentStateResponse 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.FetchDeploymentStateResponse 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.FetchDeploymentStateResponse 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; + } + /** + * + * + *
+   * Response message for GameServerDeploymentsService.FetchDeploymentState.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.FetchDeploymentStateResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.class, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + detailsBuilder_.clear(); + } + unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse build() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse buildPartial() { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse result = + new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse(this); + int from_bitField0_ = bitField0_; + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.details_ = details_; + } else { + result.details_ = detailsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + unavailable_ = unavailable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unavailable_ = unavailable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) { + return mergeFrom((com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse other) { + if (other + == com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.getDefaultInstance()) + return this; + if (detailsBuilder_ == null) { + if (!other.details_.isEmpty()) { + if (details_.isEmpty()) { + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDetailsIsMutable(); + details_.addAll(other.details_); + } + onChanged(); + } + } else { + if (!other.details_.isEmpty()) { + if (detailsBuilder_.isEmpty()) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + detailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetailsFieldBuilder() + : null; + } else { + detailsBuilder_.addAllMessages(other.details_); + } + } + } + if (!other.unavailable_.isEmpty()) { + if (unavailable_.isEmpty()) { + unavailable_ = other.unavailable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnavailableIsMutable(); + unavailable_.addAll(other.unavailable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails> + details_ = java.util.Collections.emptyList(); + + private void ensureDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + details_ = + new java.util.ArrayList< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails>( + details_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetailsOrBuilder> + detailsBuilder_; + + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public java.util.List< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails> + getDetailsList() { + if (detailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(details_); + } else { + return detailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public int getDetailsCount() { + if (detailsBuilder_ == null) { + return details_.size(); + } else { + return detailsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + getDetails(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public Builder setDetails( + int index, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.set(index, value); + onChanged(); + } else { + detailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public Builder setDetails( + int index, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder + builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.set(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public Builder addDetails( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(value); + onChanged(); + } else { + detailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public Builder addDetails( + int index, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(index, value); + onChanged(); + } else { + detailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public Builder addDetails( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder + builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public Builder addDetails( + int index, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder + builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public Builder addAllDetails( + java.lang.Iterable< + ? extends + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetails> + values) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, details_); + onChanged(); + } else { + detailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public Builder clearDetails() { + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + detailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public Builder removeDetails(int index) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.remove(index); + onChanged(); + } else { + detailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder + getDetailsBuilder(int index) { + return getDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetailsOrBuilder + getDetailsOrBuilder(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetailsOrBuilder> + getDetailsOrBuilderList() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(details_); + } + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder + addDetailsBuilder() { + return getDetailsFieldBuilder() + .addBuilder( + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .getDefaultInstance()); + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails.Builder + addDetailsBuilder(int index) { + return getDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .getDefaultInstance()); + } + /** + * + * + *
+     * The details of a deployment in a given location.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + public java.util.List< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Builder> + getDetailsBuilderList() { + return getDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetailsOrBuilder> + getDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails + .Builder, + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetailsOrBuilder>( + details_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + details_ = null; + } + return detailsBuilder_; + } + + private com.google.protobuf.LazyStringList unavailable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnavailableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unavailable_ = new com.google.protobuf.LazyStringArrayList(unavailable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unavailable = 2; + * + * @return A list containing the unavailable. + */ + public com.google.protobuf.ProtocolStringList getUnavailableList() { + return unavailable_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unavailable = 2; + * + * @return The count of unavailable. + */ + public int getUnavailableCount() { + return unavailable_.size(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the element to return. + * @return The unavailable at the given index. + */ + public java.lang.String getUnavailable(int index) { + return unavailable_.get(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the value to return. + * @return The bytes of the unavailable at the given index. + */ + public com.google.protobuf.ByteString getUnavailableBytes(int index) { + return unavailable_.getByteString(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param index The index to set the value at. + * @param value The unavailable to set. + * @return This builder for chaining. + */ + public Builder setUnavailable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnavailableIsMutable(); + unavailable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param value The unavailable to add. + * @return This builder for chaining. + */ + public Builder addUnavailable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnavailableIsMutable(); + unavailable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param values The unavailable to add. + * @return This builder for chaining. + */ + public Builder addAllUnavailable(java.lang.Iterable values) { + ensureUnavailableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unavailable_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unavailable = 2; + * + * @return This builder for chaining. + */ + public Builder clearUnavailable() { + unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param value The bytes of the unavailable to add. + * @return This builder for chaining. + */ + public Builder addUnavailableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnavailableIsMutable(); + unavailable_.add(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.FetchDeploymentStateResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) + private static final com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse(); + } + + public static com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchDeploymentStateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchDeploymentStateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponseOrBuilder.java new file mode 100644 index 00000000..bbf0f84d --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponseOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto + +package com.google.cloud.gaming.v1alpha; + +public interface FetchDeploymentStateResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FetchDeploymentStateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + java.util.List + getDetailsList(); + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails getDetails( + int index); + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + int getDetailsCount(); + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse + .DeployedFleetDetailsOrBuilder> + getDetailsOrBuilderList(); + /** + * + * + *
+   * The details of a deployment in a given location.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetails details = 1; + * + */ + com.google.cloud.gaming.v1alpha.FetchDeploymentStateResponse.DeployedFleetDetailsOrBuilder + getDetailsOrBuilder(int index); + + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unavailable = 2; + * + * @return A list containing the unavailable. + */ + java.util.List getUnavailableList(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unavailable = 2; + * + * @return The count of unavailable. + */ + int getUnavailableCount(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the element to return. + * @return The unavailable at the given index. + */ + java.lang.String getUnavailable(int index); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the value to return. + * @return The bytes of the unavailable at the given index. + */ + com.google.protobuf.ByteString getUnavailableBytes(int index); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetAutoscalerSettings.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetAutoscalerSettings.java deleted file mode 100644 index 34a8ca7e..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetAutoscalerSettings.java +++ /dev/null @@ -1,890 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Fleet autoscaling parameters.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FleetAutoscalerSettings} - */ -public final class FleetAutoscalerSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FleetAutoscalerSettings) - FleetAutoscalerSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use FleetAutoscalerSettings.newBuilder() to construct. - private FleetAutoscalerSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FleetAutoscalerSettings() {} - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private FleetAutoscalerSettings( - 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 8: - { - bufferSizeCase_ = 1; - bufferSize_ = input.readInt64(); - break; - } - case 16: - { - bufferSizeCase_ = 2; - bufferSize_ = input.readInt32(); - break; - } - case 24: - { - minReplicas_ = input.readInt64(); - break; - } - case 32: - { - maxReplicas_ = input.readInt64(); - 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.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.class, - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.Builder.class); - } - - private int bufferSizeCase_ = 0; - private java.lang.Object bufferSize_; - - public enum BufferSizeCase implements com.google.protobuf.Internal.EnumLite { - BUFFER_SIZE_ABSOLUTE(1), - BUFFER_SIZE_PERCENTAGE(2), - BUFFERSIZE_NOT_SET(0); - private final int value; - - private BufferSizeCase(int value) { - this.value = value; - } - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static BufferSizeCase valueOf(int value) { - return forNumber(value); - } - - public static BufferSizeCase forNumber(int value) { - switch (value) { - case 1: - return BUFFER_SIZE_ABSOLUTE; - case 2: - return BUFFER_SIZE_PERCENTAGE; - case 0: - return BUFFERSIZE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public BufferSizeCase getBufferSizeCase() { - return BufferSizeCase.forNumber(bufferSizeCase_); - } - - public static final int BUFFER_SIZE_ABSOLUTE_FIELD_NUMBER = 1; - /** - * - * - *
-   * The size of a buffer of ready game server instances in absolute number.
-   * As game server instances get allocated or terminated, the fleet will be
-   * scaled up and down so that this buffer is maintained.
-   * 
- * - * int64 buffer_size_absolute = 1; - */ - public long getBufferSizeAbsolute() { - if (bufferSizeCase_ == 1) { - return (java.lang.Long) bufferSize_; - } - return 0L; - } - - public static final int BUFFER_SIZE_PERCENTAGE_FIELD_NUMBER = 2; - /** - * - * - *
-   * The size of a buffer of ready game server instances in percentage. Value
-   * must be in range [1, 99]. As game server instances get allocated or
-   * terminated, the fleet will be scaled up and down so that this buffer is
-   * maintained.
-   * 
- * - * int32 buffer_size_percentage = 2; - */ - public int getBufferSizePercentage() { - if (bufferSizeCase_ == 2) { - return (java.lang.Integer) bufferSize_; - } - return 0; - } - - public static final int MIN_REPLICAS_FIELD_NUMBER = 3; - private long minReplicas_; - /** - * - * - *
-   * The minimum fleet size.
-   * 
- * - * int64 min_replicas = 3; - */ - public long getMinReplicas() { - return minReplicas_; - } - - public static final int MAX_REPLICAS_FIELD_NUMBER = 4; - private long maxReplicas_; - /** - * - * - *
-   * The maximum fleet size.
-   * 
- * - * int64 max_replicas = 4; - */ - public long getMaxReplicas() { - return maxReplicas_; - } - - 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 (bufferSizeCase_ == 1) { - output.writeInt64(1, (long) ((java.lang.Long) bufferSize_)); - } - if (bufferSizeCase_ == 2) { - output.writeInt32(2, (int) ((java.lang.Integer) bufferSize_)); - } - if (minReplicas_ != 0L) { - output.writeInt64(3, minReplicas_); - } - if (maxReplicas_ != 0L) { - output.writeInt64(4, maxReplicas_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bufferSizeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size( - 1, (long) ((java.lang.Long) bufferSize_)); - } - if (bufferSizeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, (int) ((java.lang.Integer) bufferSize_)); - } - if (minReplicas_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, minReplicas_); - } - if (maxReplicas_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, maxReplicas_); - } - 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.FleetAutoscalerSettings)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings other = - (com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings) obj; - - if (getMinReplicas() != other.getMinReplicas()) return false; - if (getMaxReplicas() != other.getMaxReplicas()) return false; - if (!getBufferSizeCase().equals(other.getBufferSizeCase())) return false; - switch (bufferSizeCase_) { - case 1: - if (getBufferSizeAbsolute() != other.getBufferSizeAbsolute()) return false; - break; - case 2: - if (getBufferSizePercentage() != other.getBufferSizePercentage()) return false; - break; - case 0: - default: - } - 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) + MIN_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinReplicas()); - hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxReplicas()); - switch (bufferSizeCase_) { - case 1: - hash = (37 * hash) + BUFFER_SIZE_ABSOLUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBufferSizeAbsolute()); - break; - case 2: - hash = (37 * hash) + BUFFER_SIZE_PERCENTAGE_FIELD_NUMBER; - hash = (53 * hash) + getBufferSizePercentage(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings 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.FleetAutoscalerSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings 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.FleetAutoscalerSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings 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.FleetAutoscalerSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings 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.FleetAutoscalerSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings 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.FleetAutoscalerSettings 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.FleetAutoscalerSettings 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.FleetAutoscalerSettings 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; - } - /** - * - * - *
-   * Fleet autoscaling parameters.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.FleetAutoscalerSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FleetAutoscalerSettings) - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.class, - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - minReplicas_ = 0L; - - maxReplicas_ = 0L; - - bufferSizeCase_ = 0; - bufferSize_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings build() { - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings buildPartial() { - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings result = - new com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings(this); - if (bufferSizeCase_ == 1) { - result.bufferSize_ = bufferSize_; - } - if (bufferSizeCase_ == 2) { - result.bufferSize_ = bufferSize_; - } - result.minReplicas_ = minReplicas_; - result.maxReplicas_ = maxReplicas_; - result.bufferSizeCase_ = bufferSizeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings) { - return mergeFrom((com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings other) { - if (other == com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.getDefaultInstance()) - return this; - if (other.getMinReplicas() != 0L) { - setMinReplicas(other.getMinReplicas()); - } - if (other.getMaxReplicas() != 0L) { - setMaxReplicas(other.getMaxReplicas()); - } - switch (other.getBufferSizeCase()) { - case BUFFER_SIZE_ABSOLUTE: - { - setBufferSizeAbsolute(other.getBufferSizeAbsolute()); - break; - } - case BUFFER_SIZE_PERCENTAGE: - { - setBufferSizePercentage(other.getBufferSizePercentage()); - break; - } - case BUFFERSIZE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bufferSizeCase_ = 0; - private java.lang.Object bufferSize_; - - public BufferSizeCase getBufferSizeCase() { - return BufferSizeCase.forNumber(bufferSizeCase_); - } - - public Builder clearBufferSize() { - bufferSizeCase_ = 0; - bufferSize_ = null; - onChanged(); - return this; - } - - /** - * - * - *
-     * The size of a buffer of ready game server instances in absolute number.
-     * As game server instances get allocated or terminated, the fleet will be
-     * scaled up and down so that this buffer is maintained.
-     * 
- * - * int64 buffer_size_absolute = 1; - */ - public long getBufferSizeAbsolute() { - if (bufferSizeCase_ == 1) { - return (java.lang.Long) bufferSize_; - } - return 0L; - } - /** - * - * - *
-     * The size of a buffer of ready game server instances in absolute number.
-     * As game server instances get allocated or terminated, the fleet will be
-     * scaled up and down so that this buffer is maintained.
-     * 
- * - * int64 buffer_size_absolute = 1; - */ - public Builder setBufferSizeAbsolute(long value) { - bufferSizeCase_ = 1; - bufferSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The size of a buffer of ready game server instances in absolute number.
-     * As game server instances get allocated or terminated, the fleet will be
-     * scaled up and down so that this buffer is maintained.
-     * 
- * - * int64 buffer_size_absolute = 1; - */ - public Builder clearBufferSizeAbsolute() { - if (bufferSizeCase_ == 1) { - bufferSizeCase_ = 0; - bufferSize_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The size of a buffer of ready game server instances in percentage. Value
-     * must be in range [1, 99]. As game server instances get allocated or
-     * terminated, the fleet will be scaled up and down so that this buffer is
-     * maintained.
-     * 
- * - * int32 buffer_size_percentage = 2; - */ - public int getBufferSizePercentage() { - if (bufferSizeCase_ == 2) { - return (java.lang.Integer) bufferSize_; - } - return 0; - } - /** - * - * - *
-     * The size of a buffer of ready game server instances in percentage. Value
-     * must be in range [1, 99]. As game server instances get allocated or
-     * terminated, the fleet will be scaled up and down so that this buffer is
-     * maintained.
-     * 
- * - * int32 buffer_size_percentage = 2; - */ - public Builder setBufferSizePercentage(int value) { - bufferSizeCase_ = 2; - bufferSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The size of a buffer of ready game server instances in percentage. Value
-     * must be in range [1, 99]. As game server instances get allocated or
-     * terminated, the fleet will be scaled up and down so that this buffer is
-     * maintained.
-     * 
- * - * int32 buffer_size_percentage = 2; - */ - public Builder clearBufferSizePercentage() { - if (bufferSizeCase_ == 2) { - bufferSizeCase_ = 0; - bufferSize_ = null; - onChanged(); - } - return this; - } - - private long minReplicas_; - /** - * - * - *
-     * The minimum fleet size.
-     * 
- * - * int64 min_replicas = 3; - */ - public long getMinReplicas() { - return minReplicas_; - } - /** - * - * - *
-     * The minimum fleet size.
-     * 
- * - * int64 min_replicas = 3; - */ - public Builder setMinReplicas(long value) { - - minReplicas_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The minimum fleet size.
-     * 
- * - * int64 min_replicas = 3; - */ - public Builder clearMinReplicas() { - - minReplicas_ = 0L; - onChanged(); - return this; - } - - private long maxReplicas_; - /** - * - * - *
-     * The maximum fleet size.
-     * 
- * - * int64 max_replicas = 4; - */ - public long getMaxReplicas() { - return maxReplicas_; - } - /** - * - * - *
-     * The maximum fleet size.
-     * 
- * - * int64 max_replicas = 4; - */ - public Builder setMaxReplicas(long value) { - - maxReplicas_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum fleet size.
-     * 
- * - * int64 max_replicas = 4; - */ - public Builder clearMaxReplicas() { - - maxReplicas_ = 0L; - 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.FleetAutoscalerSettings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FleetAutoscalerSettings) - private static final com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings(); - } - - public static com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FleetAutoscalerSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FleetAutoscalerSettings(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetAutoscalerSettingsOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetAutoscalerSettingsOrBuilder.java deleted file mode 100644 index 1f4e51f3..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetAutoscalerSettingsOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface FleetAutoscalerSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FleetAutoscalerSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The size of a buffer of ready game server instances in absolute number.
-   * As game server instances get allocated or terminated, the fleet will be
-   * scaled up and down so that this buffer is maintained.
-   * 
- * - * int64 buffer_size_absolute = 1; - */ - long getBufferSizeAbsolute(); - - /** - * - * - *
-   * The size of a buffer of ready game server instances in percentage. Value
-   * must be in range [1, 99]. As game server instances get allocated or
-   * terminated, the fleet will be scaled up and down so that this buffer is
-   * maintained.
-   * 
- * - * int32 buffer_size_percentage = 2; - */ - int getBufferSizePercentage(); - - /** - * - * - *
-   * The minimum fleet size.
-   * 
- * - * int64 min_replicas = 3; - */ - long getMinReplicas(); - - /** - * - * - *
-   * The maximum fleet size.
-   * 
- * - * int64 max_replicas = 4; - */ - long getMaxReplicas(); - - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.BufferSizeCase getBufferSizeCase(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CommitRolloutRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfig.java similarity index 55% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CommitRolloutRequest.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfig.java index a4053fbd..74f9e0ec 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CommitRolloutRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto +// source: google/cloud/gaming/v1alpha/game_server_configs.proto package com.google.cloud.gaming.v1alpha; @@ -22,31 +22,38 @@ * * *
- * Request message for GameServerDeploymentsService.CommitRollout.
+ * Fleet configs for Agones.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.CommitRolloutRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.FleetConfig} */ -public final class CommitRolloutRequest extends com.google.protobuf.GeneratedMessageV3 +public final class FleetConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.CommitRolloutRequest) - CommitRolloutRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FleetConfig) + FleetConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use CommitRolloutRequest.newBuilder() to construct. - private CommitRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use FleetConfig.newBuilder() to construct. + private FleetConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommitRolloutRequest() { + private FleetConfig() { + fleetSpec_ = ""; name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FleetConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CommitRolloutRequest( + private FleetConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -54,7 +61,6 @@ private CommitRolloutRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -66,6 +72,13 @@ private CommitRolloutRequest( done = true; break; case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + fleetSpec_ = s; + break; + } + case 18: { java.lang.String s = input.readStringRequireUtf8(); @@ -92,32 +105,83 @@ private CommitRolloutRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_FleetConfig_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 + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_FleetConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CommitRolloutRequest.class, - com.google.cloud.gaming.v1alpha.CommitRolloutRequest.Builder.class); + com.google.cloud.gaming.v1alpha.FleetConfig.class, + com.google.cloud.gaming.v1alpha.FleetConfig.Builder.class); } - public static final int NAME_FIELD_NUMBER = 1; + public static final int FLEET_SPEC_FIELD_NUMBER = 1; + private volatile java.lang.Object fleetSpec_; + /** + * + * + *
+   * The fleet spec, which is sent to Agones to configure fleet.
+   * Example spec can be found :
+   * `https://agones.dev/site/docs/reference/fleet/`.
+   * 
+ * + * string fleet_spec = 1; + * + * @return The fleetSpec. + */ + public java.lang.String getFleetSpec() { + java.lang.Object ref = fleetSpec_; + 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(); + fleetSpec_ = s; + return s; + } + } + /** + * + * + *
+   * The fleet spec, which is sent to Agones to configure fleet.
+   * Example spec can be found :
+   * `https://agones.dev/site/docs/reference/fleet/`.
+   * 
+ * + * string fleet_spec = 1; + * + * @return The bytes for fleetSpec. + */ + public com.google.protobuf.ByteString getFleetSpecBytes() { + java.lang.Object ref = fleetSpec_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetSpec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; 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}`
+   * The name of the FleetConfig.
    * 
* - * string name = 1; + * string name = 2; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,12 +198,12 @@ public java.lang.String getName() { * * *
-   * Required. The name of the game server deployment, using the
-   * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * The name of the FleetConfig.
    * 
* - * string name = 1; + * string name = 2; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -167,8 +231,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getFleetSpecBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fleetSpec_); + } if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } unknownFields.writeTo(output); } @@ -179,8 +246,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (!getFleetSpecBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fleetSpec_); + } if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -192,12 +262,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.CommitRolloutRequest)) { + if (!(obj instanceof com.google.cloud.gaming.v1alpha.FleetConfig)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.CommitRolloutRequest other = - (com.google.cloud.gaming.v1alpha.CommitRolloutRequest) obj; + com.google.cloud.gaming.v1alpha.FleetConfig other = + (com.google.cloud.gaming.v1alpha.FleetConfig) obj; + if (!getFleetSpec().equals(other.getFleetSpec())) return false; if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -210,6 +281,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FLEET_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getFleetSpec().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -217,71 +290,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FleetConfig 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( + public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FleetConfig 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) + public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.FleetConfig 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 { + public static com.google.cloud.gaming.v1alpha.FleetConfig 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( + public static com.google.cloud.gaming.v1alpha.FleetConfig 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( + public static com.google.cloud.gaming.v1alpha.FleetConfig 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( + public static com.google.cloud.gaming.v1alpha.FleetConfig 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( + public static com.google.cloud.gaming.v1alpha.FleetConfig 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( + public static com.google.cloud.gaming.v1alpha.FleetConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -298,7 +371,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.CommitRolloutRequest prototype) { + public static Builder newBuilder(com.google.cloud.gaming.v1alpha.FleetConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -316,31 +389,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for GameServerDeploymentsService.CommitRollout.
+   * Fleet configs for Agones.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.CommitRolloutRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.FleetConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.CommitRolloutRequest) - com.google.cloud.gaming.v1alpha.CommitRolloutRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FleetConfig) + com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_FleetConfig_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 + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_FleetConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.CommitRolloutRequest.class, - com.google.cloud.gaming.v1alpha.CommitRolloutRequest.Builder.class); + com.google.cloud.gaming.v1alpha.FleetConfig.class, + com.google.cloud.gaming.v1alpha.FleetConfig.Builder.class); } - // Construct using com.google.cloud.gaming.v1alpha.CommitRolloutRequest.newBuilder() + // Construct using com.google.cloud.gaming.v1alpha.FleetConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -357,6 +430,8 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + fleetSpec_ = ""; + name_ = ""; return this; @@ -364,18 +439,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.CommitRolloutRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.CommitRolloutRequest.getDefaultInstance(); + public com.google.cloud.gaming.v1alpha.FleetConfig getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.FleetConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.CommitRolloutRequest build() { - com.google.cloud.gaming.v1alpha.CommitRolloutRequest result = buildPartial(); + public com.google.cloud.gaming.v1alpha.FleetConfig build() { + com.google.cloud.gaming.v1alpha.FleetConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -383,9 +458,10 @@ public com.google.cloud.gaming.v1alpha.CommitRolloutRequest build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.CommitRolloutRequest buildPartial() { - com.google.cloud.gaming.v1alpha.CommitRolloutRequest result = - new com.google.cloud.gaming.v1alpha.CommitRolloutRequest(this); + public com.google.cloud.gaming.v1alpha.FleetConfig buildPartial() { + com.google.cloud.gaming.v1alpha.FleetConfig result = + new com.google.cloud.gaming.v1alpha.FleetConfig(this); + result.fleetSpec_ = fleetSpec_; result.name_ = name_; onBuilt(); return result; @@ -426,17 +502,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.CommitRolloutRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.CommitRolloutRequest) other); + if (other instanceof com.google.cloud.gaming.v1alpha.FleetConfig) { + return mergeFrom((com.google.cloud.gaming.v1alpha.FleetConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.CommitRolloutRequest other) { - if (other == com.google.cloud.gaming.v1alpha.CommitRolloutRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.FleetConfig other) { + if (other == com.google.cloud.gaming.v1alpha.FleetConfig.getDefaultInstance()) return this; + if (!other.getFleetSpec().isEmpty()) { + fleetSpec_ = other.fleetSpec_; + onChanged(); + } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -456,12 +535,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.CommitRolloutRequest parsedMessage = null; + com.google.cloud.gaming.v1alpha.FleetConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.CommitRolloutRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gaming.v1alpha.FleetConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -471,17 +549,133 @@ public Builder mergeFrom( return this; } + private java.lang.Object fleetSpec_ = ""; + /** + * + * + *
+     * The fleet spec, which is sent to Agones to configure fleet.
+     * Example spec can be found :
+     * `https://agones.dev/site/docs/reference/fleet/`.
+     * 
+ * + * string fleet_spec = 1; + * + * @return The fleetSpec. + */ + public java.lang.String getFleetSpec() { + java.lang.Object ref = fleetSpec_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fleetSpec_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The fleet spec, which is sent to Agones to configure fleet.
+     * Example spec can be found :
+     * `https://agones.dev/site/docs/reference/fleet/`.
+     * 
+ * + * string fleet_spec = 1; + * + * @return The bytes for fleetSpec. + */ + public com.google.protobuf.ByteString getFleetSpecBytes() { + java.lang.Object ref = fleetSpec_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetSpec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The fleet spec, which is sent to Agones to configure fleet.
+     * Example spec can be found :
+     * `https://agones.dev/site/docs/reference/fleet/`.
+     * 
+ * + * string fleet_spec = 1; + * + * @param value The fleetSpec to set. + * @return This builder for chaining. + */ + public Builder setFleetSpec(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fleetSpec_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The fleet spec, which is sent to Agones to configure fleet.
+     * Example spec can be found :
+     * `https://agones.dev/site/docs/reference/fleet/`.
+     * 
+ * + * string fleet_spec = 1; + * + * @return This builder for chaining. + */ + public Builder clearFleetSpec() { + + fleetSpec_ = getDefaultInstance().getFleetSpec(); + onChanged(); + return this; + } + /** + * + * + *
+     * The fleet spec, which is sent to Agones to configure fleet.
+     * Example spec can be found :
+     * `https://agones.dev/site/docs/reference/fleet/`.
+     * 
+ * + * string fleet_spec = 1; + * + * @param value The bytes for fleetSpec to set. + * @return This builder for chaining. + */ + public Builder setFleetSpecBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fleetSpec_ = value; + onChanged(); + return this; + } + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * The name of the FleetConfig.
      * 
* - * string name = 1; + * string name = 2; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -498,12 +692,12 @@ public java.lang.String getName() { * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * The name of the FleetConfig.
      * 
* - * string name = 1; + * string name = 2; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -520,12 +714,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * The name of the FleetConfig.
      * 
* - * string name = 1; + * string name = 2; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -540,12 +735,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * The name of the FleetConfig.
      * 
* - * string name = 1; + * string name = 2; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -557,12 +752,13 @@ public Builder clearName() { * * *
-     * Required. The name of the game server deployment, using the
-     * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * The name of the FleetConfig.
      * 
* - * string name = 1; + * string name = 2; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -586,42 +782,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.CommitRolloutRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.FleetConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.CommitRolloutRequest) - private static final com.google.cloud.gaming.v1alpha.CommitRolloutRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FleetConfig) + private static final com.google.cloud.gaming.v1alpha.FleetConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.CommitRolloutRequest(); + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FleetConfig(); } - public static com.google.cloud.gaming.v1alpha.CommitRolloutRequest getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.FleetConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public CommitRolloutRequest parsePartialFrom( + public FleetConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CommitRolloutRequest(input, extensionRegistry); + return new FleetConfig(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.CommitRolloutRequest getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.FleetConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfigOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfigOrBuilder.java new file mode 100644 index 00000000..d8f16612 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfigOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_configs.proto + +package com.google.cloud.gaming.v1alpha; + +public interface FleetConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FleetConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The fleet spec, which is sent to Agones to configure fleet.
+   * Example spec can be found :
+   * `https://agones.dev/site/docs/reference/fleet/`.
+   * 
+ * + * string fleet_spec = 1; + * + * @return The fleetSpec. + */ + java.lang.String getFleetSpec(); + /** + * + * + *
+   * The fleet spec, which is sent to Agones to configure fleet.
+   * Example spec can be found :
+   * `https://agones.dev/site/docs/reference/fleet/`.
+   * 
+ * + * string fleet_spec = 1; + * + * @return The bytes for fleetSpec. + */ + com.google.protobuf.ByteString getFleetSpecBytes(); + + /** + * + * + *
+   * The name of the FleetConfig.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the FleetConfig.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetails.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetails.java new file mode 100644 index 00000000..02ed6f0d --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetails.java @@ -0,0 +1,2159 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Details about the Agones fleet.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.FleetDetails} + */ +public final class FleetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FleetDetails) + FleetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use FleetDetails.newBuilder() to construct. + private FleetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FleetDetails() { + gameServerClusterName_ = ""; + fleetName_ = ""; + gameServerConfigName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FleetDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FleetDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + gameServerClusterName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + fleetName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + gameServerConfigName_ = s; + break; + } + case 34: + { + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder subBuilder = + null; + if (autoscalerDetails_ != null) { + subBuilder = autoscalerDetails_.toBuilder(); + } + autoscalerDetails_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscalerDetails_); + autoscalerDetails_ = 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.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FleetDetails.class, + com.google.cloud.gaming.v1alpha.FleetDetails.Builder.class); + } + + public interface AutoscalerDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the Agones autoscaler.
+     * 
+ * + * string autoscaler_name = 1; + * + * @return The autoscalerName. + */ + java.lang.String getAutoscalerName(); + /** + * + * + *
+     * The name of the Agones autoscaler.
+     * 
+ * + * string autoscaler_name = 1; + * + * @return The bytes for autoscalerName. + */ + com.google.protobuf.ByteString getAutoscalerNameBytes(); + + /** + * + * + *
+     * The name of the scaling config (within the game server config) that is
+     * used to create the autoscalar.
+     * 
+ * + * string scaling_config_name = 2; + * + * @return The scalingConfigName. + */ + java.lang.String getScalingConfigName(); + /** + * + * + *
+     * The name of the scaling config (within the game server config) that is
+     * used to create the autoscalar.
+     * 
+ * + * string scaling_config_name = 2; + * + * @return The bytes for scalingConfigName. + */ + com.google.protobuf.ByteString getScalingConfigNameBytes(); + } + /** + * + * + *
+   * Details about the Agones autoscaler.
+   * The autoscaler details.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails} + */ + public static final class AutoscalerDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) + AutoscalerDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoscalerDetails.newBuilder() to construct. + private AutoscalerDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoscalerDetails() { + autoscalerName_ = ""; + scalingConfigName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoscalerDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AutoscalerDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + autoscalerName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + scalingConfigName_ = 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.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.class, + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder.class); + } + + public static final int AUTOSCALER_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object autoscalerName_; + /** + * + * + *
+     * The name of the Agones autoscaler.
+     * 
+ * + * string autoscaler_name = 1; + * + * @return The autoscalerName. + */ + public java.lang.String getAutoscalerName() { + java.lang.Object ref = autoscalerName_; + 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(); + autoscalerName_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the Agones autoscaler.
+     * 
+ * + * string autoscaler_name = 1; + * + * @return The bytes for autoscalerName. + */ + public com.google.protobuf.ByteString getAutoscalerNameBytes() { + java.lang.Object ref = autoscalerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoscalerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCALING_CONFIG_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object scalingConfigName_; + /** + * + * + *
+     * The name of the scaling config (within the game server config) that is
+     * used to create the autoscalar.
+     * 
+ * + * string scaling_config_name = 2; + * + * @return The scalingConfigName. + */ + public java.lang.String getScalingConfigName() { + java.lang.Object ref = scalingConfigName_; + 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(); + scalingConfigName_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the scaling config (within the game server config) that is
+     * used to create the autoscalar.
+     * 
+ * + * string scaling_config_name = 2; + * + * @return The bytes for scalingConfigName. + */ + public com.google.protobuf.ByteString getScalingConfigNameBytes() { + java.lang.Object ref = scalingConfigName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scalingConfigName_ = 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 (!getAutoscalerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoscalerName_); + } + if (!getScalingConfigNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scalingConfigName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAutoscalerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoscalerName_); + } + if (!getScalingConfigNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scalingConfigName_); + } + 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.FleetDetails.AutoscalerDetails)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails other = + (com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) obj; + + if (!getAutoscalerName().equals(other.getAutoscalerName())) return false; + if (!getScalingConfigName().equals(other.getScalingConfigName())) 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) + AUTOSCALER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAutoscalerName().hashCode(); + hash = (37 * hash) + SCALING_CONFIG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getScalingConfigName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails 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.FleetDetails.AutoscalerDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails 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.FleetDetails.AutoscalerDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails 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.FleetDetails.AutoscalerDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails 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.FleetDetails.AutoscalerDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails 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.FleetDetails.AutoscalerDetails 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.FleetDetails.AutoscalerDetails 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.FleetDetails.AutoscalerDetails 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; + } + /** + * + * + *
+     * Details about the Agones autoscaler.
+     * The autoscaler details.
+     * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.class, + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + autoscalerName_ = ""; + + scalingConfigName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_AutoscalerDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails build() { + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails buildPartial() { + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails result = + new com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails(this); + result.autoscalerName_ = autoscalerName_; + result.scalingConfigName_ = scalingConfigName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) { + return mergeFrom((com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails other) { + if (other + == com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance()) + return this; + if (!other.getAutoscalerName().isEmpty()) { + autoscalerName_ = other.autoscalerName_; + onChanged(); + } + if (!other.getScalingConfigName().isEmpty()) { + scalingConfigName_ = other.scalingConfigName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object autoscalerName_ = ""; + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string autoscaler_name = 1; + * + * @return The autoscalerName. + */ + public java.lang.String getAutoscalerName() { + java.lang.Object ref = autoscalerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoscalerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string autoscaler_name = 1; + * + * @return The bytes for autoscalerName. + */ + public com.google.protobuf.ByteString getAutoscalerNameBytes() { + java.lang.Object ref = autoscalerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoscalerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string autoscaler_name = 1; + * + * @param value The autoscalerName to set. + * @return This builder for chaining. + */ + public Builder setAutoscalerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + autoscalerName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string autoscaler_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearAutoscalerName() { + + autoscalerName_ = getDefaultInstance().getAutoscalerName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string autoscaler_name = 1; + * + * @param value The bytes for autoscalerName to set. + * @return This builder for chaining. + */ + public Builder setAutoscalerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + autoscalerName_ = value; + onChanged(); + return this; + } + + private java.lang.Object scalingConfigName_ = ""; + /** + * + * + *
+       * The name of the scaling config (within the game server config) that is
+       * used to create the autoscalar.
+       * 
+ * + * string scaling_config_name = 2; + * + * @return The scalingConfigName. + */ + public java.lang.String getScalingConfigName() { + java.lang.Object ref = scalingConfigName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scalingConfigName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the scaling config (within the game server config) that is
+       * used to create the autoscalar.
+       * 
+ * + * string scaling_config_name = 2; + * + * @return The bytes for scalingConfigName. + */ + public com.google.protobuf.ByteString getScalingConfigNameBytes() { + java.lang.Object ref = scalingConfigName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scalingConfigName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the scaling config (within the game server config) that is
+       * used to create the autoscalar.
+       * 
+ * + * string scaling_config_name = 2; + * + * @param value The scalingConfigName to set. + * @return This builder for chaining. + */ + public Builder setScalingConfigName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingConfigName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the scaling config (within the game server config) that is
+       * used to create the autoscalar.
+       * 
+ * + * string scaling_config_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearScalingConfigName() { + + scalingConfigName_ = getDefaultInstance().getScalingConfigName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the scaling config (within the game server config) that is
+       * used to create the autoscalar.
+       * 
+ * + * string scaling_config_name = 2; + * + * @param value The bytes for scalingConfigName to set. + * @return This builder for chaining. + */ + public Builder setScalingConfigNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + scalingConfigName_ = 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.FleetDetails.AutoscalerDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails) + private static final com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails(); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoscalerDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutoscalerDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int GAME_SERVER_CLUSTER_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object gameServerClusterName_; + /** + * + * + *
+   * The cluster name.
+   * 
+ * + * string game_server_cluster_name = 1; + * + * @return The gameServerClusterName. + */ + public java.lang.String getGameServerClusterName() { + java.lang.Object ref = gameServerClusterName_; + 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(); + gameServerClusterName_ = s; + return s; + } + } + /** + * + * + *
+   * The cluster name.
+   * 
+ * + * string game_server_cluster_name = 1; + * + * @return The bytes for gameServerClusterName. + */ + public com.google.protobuf.ByteString getGameServerClusterNameBytes() { + java.lang.Object ref = gameServerClusterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLEET_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object fleetName_; + /** + * + * + *
+   * The name of the Agones game server fleet.
+   * 
+ * + * string fleet_name = 2; + * + * @return The fleetName. + */ + public java.lang.String getFleetName() { + java.lang.Object ref = fleetName_; + 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(); + fleetName_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the Agones game server fleet.
+   * 
+ * + * string fleet_name = 2; + * + * @return The bytes for fleetName. + */ + public com.google.protobuf.ByteString getFleetNameBytes() { + java.lang.Object ref = fleetName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GAME_SERVER_CONFIG_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object gameServerConfigName_; + /** + * + * + *
+   * The name of the game server config object whose fleet spec
+   * is used to create the fleet.
+   * 
+ * + * string game_server_config_name = 3; + * + * @return The gameServerConfigName. + */ + public java.lang.String getGameServerConfigName() { + java.lang.Object ref = gameServerConfigName_; + 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(); + gameServerConfigName_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the game server config object whose fleet spec
+   * is used to create the fleet.
+   * 
+ * + * string game_server_config_name = 3; + * + * @return The bytes for gameServerConfigName. + */ + public com.google.protobuf.ByteString getGameServerConfigNameBytes() { + java.lang.Object ref = gameServerConfigName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerConfigName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOSCALER_DETAILS_FIELD_NUMBER = 4; + private com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscalerDetails_; + /** + * + * + *
+   * Details about the agones autoscaler.
+   * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + * + * @return Whether the autoscalerDetails field is set. + */ + public boolean hasAutoscalerDetails() { + return autoscalerDetails_ != null; + } + /** + * + * + *
+   * Details about the agones autoscaler.
+   * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + * + * @return The autoscalerDetails. + */ + public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails getAutoscalerDetails() { + return autoscalerDetails_ == null + ? com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance() + : autoscalerDetails_; + } + /** + * + * + *
+   * Details about the agones autoscaler.
+   * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + */ + public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder + getAutoscalerDetailsOrBuilder() { + return getAutoscalerDetails(); + } + + 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 (!getGameServerClusterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gameServerClusterName_); + } + if (!getFleetNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fleetName_); + } + if (!getGameServerConfigNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gameServerConfigName_); + } + if (autoscalerDetails_ != null) { + output.writeMessage(4, getAutoscalerDetails()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGameServerClusterNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gameServerClusterName_); + } + if (!getFleetNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fleetName_); + } + if (!getGameServerConfigNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gameServerConfigName_); + } + if (autoscalerDetails_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscalerDetails()); + } + 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.FleetDetails)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.FleetDetails other = + (com.google.cloud.gaming.v1alpha.FleetDetails) obj; + + if (!getGameServerClusterName().equals(other.getGameServerClusterName())) return false; + if (!getFleetName().equals(other.getFleetName())) return false; + if (!getGameServerConfigName().equals(other.getGameServerConfigName())) return false; + if (hasAutoscalerDetails() != other.hasAutoscalerDetails()) return false; + if (hasAutoscalerDetails()) { + if (!getAutoscalerDetails().equals(other.getAutoscalerDetails())) 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) + GAME_SERVER_CLUSTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGameServerClusterName().hashCode(); + hash = (37 * hash) + FLEET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFleetName().hashCode(); + hash = (37 * hash) + GAME_SERVER_CONFIG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGameServerConfigName().hashCode(); + if (hasAutoscalerDetails()) { + hash = (37 * hash) + AUTOSCALER_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getAutoscalerDetails().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails 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.FleetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails 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.FleetDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails 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.FleetDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails 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.FleetDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails 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.FleetDetails 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.FleetDetails 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.FleetDetails 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; + } + /** + * + * + *
+   * Details about the Agones fleet.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.FleetDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.FleetDetails) + com.google.cloud.gaming.v1alpha.FleetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.FleetDetails.class, + com.google.cloud.gaming.v1alpha.FleetDetails.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.FleetDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + gameServerClusterName_ = ""; + + fleetName_ = ""; + + gameServerConfigName_ = ""; + + if (autoscalerDetailsBuilder_ == null) { + autoscalerDetails_ = null; + } else { + autoscalerDetails_ = null; + autoscalerDetailsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_FleetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FleetDetails getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.FleetDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FleetDetails build() { + com.google.cloud.gaming.v1alpha.FleetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FleetDetails buildPartial() { + com.google.cloud.gaming.v1alpha.FleetDetails result = + new com.google.cloud.gaming.v1alpha.FleetDetails(this); + result.gameServerClusterName_ = gameServerClusterName_; + result.fleetName_ = fleetName_; + result.gameServerConfigName_ = gameServerConfigName_; + if (autoscalerDetailsBuilder_ == null) { + result.autoscalerDetails_ = autoscalerDetails_; + } else { + result.autoscalerDetails_ = autoscalerDetailsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.FleetDetails) { + return mergeFrom((com.google.cloud.gaming.v1alpha.FleetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.FleetDetails other) { + if (other == com.google.cloud.gaming.v1alpha.FleetDetails.getDefaultInstance()) return this; + if (!other.getGameServerClusterName().isEmpty()) { + gameServerClusterName_ = other.gameServerClusterName_; + onChanged(); + } + if (!other.getFleetName().isEmpty()) { + fleetName_ = other.fleetName_; + onChanged(); + } + if (!other.getGameServerConfigName().isEmpty()) { + gameServerConfigName_ = other.gameServerConfigName_; + onChanged(); + } + if (other.hasAutoscalerDetails()) { + mergeAutoscalerDetails(other.getAutoscalerDetails()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.FleetDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gaming.v1alpha.FleetDetails) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object gameServerClusterName_ = ""; + /** + * + * + *
+     * The cluster name.
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @return The gameServerClusterName. + */ + public java.lang.String getGameServerClusterName() { + java.lang.Object ref = gameServerClusterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gameServerClusterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The cluster name.
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @return The bytes for gameServerClusterName. + */ + public com.google.protobuf.ByteString getGameServerClusterNameBytes() { + java.lang.Object ref = gameServerClusterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The cluster name.
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @param value The gameServerClusterName to set. + * @return This builder for chaining. + */ + public Builder setGameServerClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gameServerClusterName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster name.
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearGameServerClusterName() { + + gameServerClusterName_ = getDefaultInstance().getGameServerClusterName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster name.
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @param value The bytes for gameServerClusterName to set. + * @return This builder for chaining. + */ + public Builder setGameServerClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gameServerClusterName_ = value; + onChanged(); + return this; + } + + private java.lang.Object fleetName_ = ""; + /** + * + * + *
+     * The name of the Agones game server fleet.
+     * 
+ * + * string fleet_name = 2; + * + * @return The fleetName. + */ + public java.lang.String getFleetName() { + java.lang.Object ref = fleetName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fleetName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the Agones game server fleet.
+     * 
+ * + * string fleet_name = 2; + * + * @return The bytes for fleetName. + */ + public com.google.protobuf.ByteString getFleetNameBytes() { + java.lang.Object ref = fleetName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the Agones game server fleet.
+     * 
+ * + * string fleet_name = 2; + * + * @param value The fleetName to set. + * @return This builder for chaining. + */ + public Builder setFleetName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fleetName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Agones game server fleet.
+     * 
+ * + * string fleet_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearFleetName() { + + fleetName_ = getDefaultInstance().getFleetName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Agones game server fleet.
+     * 
+ * + * string fleet_name = 2; + * + * @param value The bytes for fleetName to set. + * @return This builder for chaining. + */ + public Builder setFleetNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fleetName_ = value; + onChanged(); + return this; + } + + private java.lang.Object gameServerConfigName_ = ""; + /** + * + * + *
+     * The name of the game server config object whose fleet spec
+     * is used to create the fleet.
+     * 
+ * + * string game_server_config_name = 3; + * + * @return The gameServerConfigName. + */ + public java.lang.String getGameServerConfigName() { + java.lang.Object ref = gameServerConfigName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gameServerConfigName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the game server config object whose fleet spec
+     * is used to create the fleet.
+     * 
+ * + * string game_server_config_name = 3; + * + * @return The bytes for gameServerConfigName. + */ + public com.google.protobuf.ByteString getGameServerConfigNameBytes() { + java.lang.Object ref = gameServerConfigName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerConfigName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the game server config object whose fleet spec
+     * is used to create the fleet.
+     * 
+ * + * string game_server_config_name = 3; + * + * @param value The gameServerConfigName to set. + * @return This builder for chaining. + */ + public Builder setGameServerConfigName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gameServerConfigName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the game server config object whose fleet spec
+     * is used to create the fleet.
+     * 
+ * + * string game_server_config_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearGameServerConfigName() { + + gameServerConfigName_ = getDefaultInstance().getGameServerConfigName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the game server config object whose fleet spec
+     * is used to create the fleet.
+     * 
+ * + * string game_server_config_name = 3; + * + * @param value The bytes for gameServerConfigName to set. + * @return This builder for chaining. + */ + public Builder setGameServerConfigNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gameServerConfigName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscalerDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails, + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder, + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder> + autoscalerDetailsBuilder_; + /** + * + * + *
+     * Details about the agones autoscaler.
+     * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + * + * @return Whether the autoscalerDetails field is set. + */ + public boolean hasAutoscalerDetails() { + return autoscalerDetailsBuilder_ != null || autoscalerDetails_ != null; + } + /** + * + * + *
+     * Details about the agones autoscaler.
+     * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + * + * @return The autoscalerDetails. + */ + public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails getAutoscalerDetails() { + if (autoscalerDetailsBuilder_ == null) { + return autoscalerDetails_ == null + ? com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance() + : autoscalerDetails_; + } else { + return autoscalerDetailsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Details about the agones autoscaler.
+     * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + */ + public Builder setAutoscalerDetails( + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails value) { + if (autoscalerDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscalerDetails_ = value; + onChanged(); + } else { + autoscalerDetailsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Details about the agones autoscaler.
+     * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + */ + public Builder setAutoscalerDetails( + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder builderForValue) { + if (autoscalerDetailsBuilder_ == null) { + autoscalerDetails_ = builderForValue.build(); + onChanged(); + } else { + autoscalerDetailsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Details about the agones autoscaler.
+     * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + */ + public Builder mergeAutoscalerDetails( + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails value) { + if (autoscalerDetailsBuilder_ == null) { + if (autoscalerDetails_ != null) { + autoscalerDetails_ = + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.newBuilder( + autoscalerDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscalerDetails_ = value; + } + onChanged(); + } else { + autoscalerDetailsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Details about the agones autoscaler.
+     * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + */ + public Builder clearAutoscalerDetails() { + if (autoscalerDetailsBuilder_ == null) { + autoscalerDetails_ = null; + onChanged(); + } else { + autoscalerDetails_ = null; + autoscalerDetailsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Details about the agones autoscaler.
+     * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + */ + public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder + getAutoscalerDetailsBuilder() { + + onChanged(); + return getAutoscalerDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Details about the agones autoscaler.
+     * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + */ + public com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder + getAutoscalerDetailsOrBuilder() { + if (autoscalerDetailsBuilder_ != null) { + return autoscalerDetailsBuilder_.getMessageOrBuilder(); + } else { + return autoscalerDetails_ == null + ? com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.getDefaultInstance() + : autoscalerDetails_; + } + } + /** + * + * + *
+     * Details about the agones autoscaler.
+     * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails, + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder, + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder> + getAutoscalerDetailsFieldBuilder() { + if (autoscalerDetailsBuilder_ == null) { + autoscalerDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails, + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails.Builder, + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder>( + getAutoscalerDetails(), getParentForChildren(), isClean()); + autoscalerDetails_ = null; + } + return autoscalerDetailsBuilder_; + } + + @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.FleetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.FleetDetails) + private static final com.google.cloud.gaming.v1alpha.FleetDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.FleetDetails(); + } + + public static com.google.cloud.gaming.v1alpha.FleetDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FleetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FleetDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.FleetDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetailsOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetailsOrBuilder.java new file mode 100644 index 00000000..7aee3953 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetailsOrBuilder.java @@ -0,0 +1,141 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +public interface FleetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.FleetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cluster name.
+   * 
+ * + * string game_server_cluster_name = 1; + * + * @return The gameServerClusterName. + */ + java.lang.String getGameServerClusterName(); + /** + * + * + *
+   * The cluster name.
+   * 
+ * + * string game_server_cluster_name = 1; + * + * @return The bytes for gameServerClusterName. + */ + com.google.protobuf.ByteString getGameServerClusterNameBytes(); + + /** + * + * + *
+   * The name of the Agones game server fleet.
+   * 
+ * + * string fleet_name = 2; + * + * @return The fleetName. + */ + java.lang.String getFleetName(); + /** + * + * + *
+   * The name of the Agones game server fleet.
+   * 
+ * + * string fleet_name = 2; + * + * @return The bytes for fleetName. + */ + com.google.protobuf.ByteString getFleetNameBytes(); + + /** + * + * + *
+   * The name of the game server config object whose fleet spec
+   * is used to create the fleet.
+   * 
+ * + * string game_server_config_name = 3; + * + * @return The gameServerConfigName. + */ + java.lang.String getGameServerConfigName(); + /** + * + * + *
+   * The name of the game server config object whose fleet spec
+   * is used to create the fleet.
+   * 
+ * + * string game_server_config_name = 3; + * + * @return The bytes for gameServerConfigName. + */ + com.google.protobuf.ByteString getGameServerConfigNameBytes(); + + /** + * + * + *
+   * Details about the agones autoscaler.
+   * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + * + * @return Whether the autoscalerDetails field is set. + */ + boolean hasAutoscalerDetails(); + /** + * + * + *
+   * Details about the agones autoscaler.
+   * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + * + * @return The autoscalerDetails. + */ + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails getAutoscalerDetails(); + /** + * + * + *
+   * Details about the agones autoscaler.
+   * 
+ * + * .google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetails autoscaler_details = 4; + * + */ + com.google.cloud.gaming.v1alpha.FleetDetails.AutoscalerDetailsOrBuilder + getAutoscalerDetailsOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerCluster.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerCluster.java index 32325941..b804cf11 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerCluster.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerCluster.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,6 +39,14 @@ private GameServerCluster(com.google.protobuf.GeneratedMessageV3.Builder buil private GameServerCluster() { name_ = ""; + etag_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GameServerCluster(); } @java.lang.Override @@ -104,10 +112,10 @@ private GameServerCluster( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -131,6 +139,20 @@ private GameServerCluster( connectionInfo_ = subBuilder.buildPartial(); } + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; break; } default: @@ -178,20 +200,21 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.gaming.v1alpha.GameServerCluster.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
-   * The resource name of the game server cluster, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`.
+   * Required. The resource name of the game server cluster, using the form:
+   * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
    * For example,
    * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -208,13 +231,15 @@ public java.lang.String getName() { * * *
-   * The resource name of the game server cluster, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`.
+   * Required. The resource name of the game server cluster, using the form:
+   * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
    * For example,
    * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -237,7 +262,10 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -249,7 +277,10 @@ public boolean hasCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -261,7 +292,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); @@ -276,7 +308,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -288,7 +323,10 @@ public boolean hasUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -300,7 +338,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); @@ -414,6 +453,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; + * + * @return Whether the connectionInfo field is set. */ public boolean hasConnectionInfo() { return connectionInfo_ != null; @@ -427,6 +468,8 @@ public boolean hasConnectionInfo() { * * * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; + * + * @return The connectionInfo. */ public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo getConnectionInfo() { return connectionInfo_ == null @@ -448,6 +491,100 @@ public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo getConnec return getConnectionInfo(); } + public static final int ETAG_FIELD_NUMBER = 6; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 6; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 6; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 7; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Human readable description of the cluster.
+   * 
+ * + * string description = 7; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Human readable description of the cluster.
+   * 
+ * + * string description = 7; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -476,6 +613,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (connectionInfo_ != null) { output.writeMessage(5, getConnectionInfo()); } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); + } unknownFields.writeTo(output); } @@ -507,6 +650,12 @@ public int getSerializedSize() { if (connectionInfo_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConnectionInfo()); } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -537,6 +686,8 @@ public boolean equals(final java.lang.Object obj) { if (hasConnectionInfo()) { if (!getConnectionInfo().equals(other.getConnectionInfo())) return false; } + if (!getEtag().equals(other.getEtag())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -566,6 +717,10 @@ public int hashCode() { hash = (37 * hash) + CONNECTION_INFO_FIELD_NUMBER; hash = (53 * hash) + getConnectionInfo().hashCode(); } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -752,6 +907,10 @@ public Builder clear() { connectionInfo_ = null; connectionInfoBuilder_ = null; } + etag_ = ""; + + description_ = ""; + return this; } @@ -780,7 +939,6 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster buildPartial() { com.google.cloud.gaming.v1alpha.GameServerCluster result = new com.google.cloud.gaming.v1alpha.GameServerCluster(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -799,7 +957,8 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster buildPartial() { } else { result.connectionInfo_ = connectionInfoBuilder_.build(); } - result.bitField0_ = to_bitField0_; + result.etag_ = etag_; + result.description_ = description_; onBuilt(); return result; } @@ -864,6 +1023,14 @@ public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerCluster other if (other.hasConnectionInfo()) { mergeConnectionInfo(other.getConnectionInfo()); } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -901,13 +1068,15 @@ public Builder mergeFrom( * * *
-     * The resource name of the game server cluster, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`.
+     * Required. The resource name of the game server cluster, using the form:
+     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
      * For example,
      * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -924,13 +1093,15 @@ public java.lang.String getName() { * * *
-     * The resource name of the game server cluster, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`.
+     * Required. The resource name of the game server cluster, using the form:
+     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
      * For example,
      * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -947,13 +1118,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The resource name of the game server cluster, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`.
+     * Required. The resource name of the game server cluster, using the form:
+     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
      * For example,
      * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -968,13 +1142,15 @@ public Builder setName(java.lang.String value) { * * *
-     * The resource name of the game server cluster, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`.
+     * Required. The resource name of the game server cluster, using the form:
+     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
      * For example,
      * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -986,13 +1162,16 @@ public Builder clearName() { * * *
-     * The resource name of the game server cluster, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`.
+     * Required. The resource name of the game server cluster, using the form:
+     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
      * For example,
      * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1018,7 +1197,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -1030,7 +1213,11 @@ public boolean hasCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { @@ -1048,7 +1235,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1070,7 +1259,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { @@ -1089,7 +1280,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1113,7 +1306,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1133,7 +1328,9 @@ public Builder clearCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { @@ -1147,7 +1344,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { @@ -1165,7 +1364,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1197,7 +1398,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -1209,7 +1414,11 @@ public boolean hasUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1227,7 +1436,9 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1249,7 +1460,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { @@ -1268,7 +1481,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1292,7 +1507,9 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1312,7 +1529,9 @@ public Builder clearUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { @@ -1326,7 +1545,9 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { @@ -1344,7 +1565,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1538,6 +1761,8 @@ public Builder putAllLabels(java.util.Map va * * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; * + * + * @return Whether the connectionInfo field is set. */ public boolean hasConnectionInfo() { return connectionInfoBuilder_ != null || connectionInfo_ != null; @@ -1552,6 +1777,8 @@ public boolean hasConnectionInfo() { * * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; * + * + * @return The connectionInfo. */ public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo getConnectionInfo() { if (connectionInfoBuilder_ == null) { @@ -1727,6 +1954,218 @@ public Builder clearConnectionInfo() { return connectionInfoBuilder_; } + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Human readable description of the cluster.
+     * 
+ * + * string description = 7; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human readable description of the cluster.
+     * 
+ * + * string description = 7; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human readable description of the cluster.
+     * 
+ * + * string description = 7; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human readable description of the cluster.
+     * 
+ * + * string description = 7; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human readable description of the cluster.
+     * 
+ * + * string description = 7; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo.java index 0b3924c1..a0922dad 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ * * *
- * Game server cluster connection information.
+ * The game server cluster connection information.
  * 
* * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo} @@ -40,7 +40,12 @@ private GameServerClusterConnectionInfo( private GameServerClusterConnectionInfo() { namespace_ = ""; - gkeName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GameServerClusterConnectionInfo(); } @java.lang.Override @@ -56,7 +61,6 @@ private GameServerClusterConnectionInfo( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -74,13 +78,6 @@ private GameServerClusterConnectionInfo( namespace_ = s; break; } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - gkeName_ = s; - break; - } case 58: { com.google.cloud.gaming.v1alpha.GkeClusterReference.Builder subBuilder = null; @@ -101,6 +98,26 @@ private GameServerClusterConnectionInfo( clusterReferenceCase_ = 7; break; } + case 66: + { + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder subBuilder = null; + if (clusterReferenceCase_ == 8) { + subBuilder = + ((com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_) + .toBuilder(); + } + clusterReference_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_); + clusterReference_ = subBuilder.buildPartial(); + } + clusterReferenceCase_ = 8; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -138,15 +155,23 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int clusterReferenceCase_ = 0; private java.lang.Object clusterReference_; - public enum ClusterReferenceCase implements com.google.protobuf.Internal.EnumLite { + public enum ClusterReferenceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { GKE_CLUSTER_REFERENCE(7), + GKE_HUB_CLUSTER_REFERENCE(8), CLUSTERREFERENCE_NOT_SET(0); private final int value; private ClusterReferenceCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ClusterReferenceCase valueOf(int value) { return forNumber(value); @@ -156,6 +181,8 @@ public static ClusterReferenceCase forNumber(int value) { switch (value) { case 7: return GKE_CLUSTER_REFERENCE; + case 8: + return GKE_HUB_CLUSTER_REFERENCE; case 0: return CLUSTERREFERENCE_NOT_SET; default: @@ -177,10 +204,12 @@ public ClusterReferenceCase getClusterReferenceCase() { * * *
-   * Reference of the GKE cluster where the game servers are installed.
+   * Reference to the GKE cluster where the game servers are installed.
    * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; + * + * @return Whether the gkeClusterReference field is set. */ public boolean hasGkeClusterReference() { return clusterReferenceCase_ == 7; @@ -189,10 +218,12 @@ public boolean hasGkeClusterReference() { * * *
-   * Reference of the GKE cluster where the game servers are installed.
+   * Reference to the GKE cluster where the game servers are installed.
    * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; + * + * @return The gkeClusterReference. */ public com.google.cloud.gaming.v1alpha.GkeClusterReference getGkeClusterReference() { if (clusterReferenceCase_ == 7) { @@ -204,7 +235,7 @@ public com.google.cloud.gaming.v1alpha.GkeClusterReference getGkeClusterReferenc * * *
-   * Reference of the GKE cluster where the game servers are installed.
+   * Reference to the GKE cluster where the game servers are installed.
    * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; @@ -217,76 +248,87 @@ public com.google.cloud.gaming.v1alpha.GkeClusterReference getGkeClusterReferenc return com.google.cloud.gaming.v1alpha.GkeClusterReference.getDefaultInstance(); } - public static final int NAMESPACE_FIELD_NUMBER = 5; - private volatile java.lang.Object namespace_; + public static final int GKE_HUB_CLUSTER_REFERENCE_FIELD_NUMBER = 8; /** * * *
-   * Namespace designated on the game server cluster where the game server
-   * instances will be created. The namespace existence will be validated
-   * during creation.
+   * Reference to an external (non-GKE) cluster registered with GKE Hub using
+   * the GKE connect agent. See
+   * https://cloud.google.com/anthos/multicluster-management/
+   * for more information about registering non-GKE clusters.
    * 
* - * string namespace = 5; + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * + * @return Whether the gkeHubClusterReference field is set. */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - 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(); - namespace_ = s; - return s; + public boolean hasGkeHubClusterReference() { + return clusterReferenceCase_ == 8; + } + /** + * + * + *
+   * Reference to an external (non-GKE) cluster registered with GKE Hub using
+   * the GKE connect agent. See
+   * https://cloud.google.com/anthos/multicluster-management/
+   * for more information about registering non-GKE clusters.
+   * 
+ * + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * + * @return The gkeHubClusterReference. + */ + public com.google.cloud.gaming.v1alpha.GkeHubClusterReference getGkeHubClusterReference() { + if (clusterReferenceCase_ == 8) { + return (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_; } + return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); } /** * * *
-   * Namespace designated on the game server cluster where the game server
-   * instances will be created. The namespace existence will be validated
-   * during creation.
+   * Reference to an external (non-GKE) cluster registered with GKE Hub using
+   * the GKE connect agent. See
+   * https://cloud.google.com/anthos/multicluster-management/
+   * for more information about registering non-GKE clusters.
    * 
* - * string namespace = 5; + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; */ - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder + getGkeHubClusterReferenceOrBuilder() { + if (clusterReferenceCase_ == 8) { + return (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_; } + return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); } - public static final int GKE_NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object gkeName_; + public static final int NAMESPACE_FIELD_NUMBER = 5; + private volatile java.lang.Object namespace_; /** * * *
-   * Deprecated. Use cluster instead.
-   * This is the gkeName where the game server cluster is installed.
-   * It must the format "projects/*/locations/*/clusters/*". For example,
-   * "projects/my-project/locations/us-central1/clusters/test".
+   * Namespace designated on the game server cluster where the game server
+   * instances will be created. The namespace existence will be validated
+   * during creation.
    * 
* - * string gke_name = 6 [deprecated = true]; + * string namespace = 5; + * + * @return The namespace. */ - @java.lang.Deprecated - public java.lang.String getGkeName() { - java.lang.Object ref = gkeName_; + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; 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(); - gkeName_ = s; + namespace_ = s; return s; } } @@ -294,21 +336,21 @@ public java.lang.String getGkeName() { * * *
-   * Deprecated. Use cluster instead.
-   * This is the gkeName where the game server cluster is installed.
-   * It must the format "projects/*/locations/*/clusters/*". For example,
-   * "projects/my-project/locations/us-central1/clusters/test".
+   * Namespace designated on the game server cluster where the game server
+   * instances will be created. The namespace existence will be validated
+   * during creation.
    * 
* - * string gke_name = 6 [deprecated = true]; + * string namespace = 5; + * + * @return The bytes for namespace. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getGkeNameBytes() { - java.lang.Object ref = gkeName_; + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gkeName_ = b; + namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -332,13 +374,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getNamespaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, namespace_); } - if (!getGkeNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gkeName_); - } if (clusterReferenceCase_ == 7) { output.writeMessage( 7, (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_); } + if (clusterReferenceCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_); + } unknownFields.writeTo(output); } @@ -351,14 +394,16 @@ public int getSerializedSize() { if (!getNamespaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, namespace_); } - if (!getGkeNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, gkeName_); - } if (clusterReferenceCase_ == 7) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.cloud.gaming.v1alpha.GkeClusterReference) clusterReference_); } + if (clusterReferenceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -376,12 +421,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo) obj; if (!getNamespace().equals(other.getNamespace())) return false; - if (!getGkeName().equals(other.getGkeName())) return false; if (!getClusterReferenceCase().equals(other.getClusterReferenceCase())) return false; switch (clusterReferenceCase_) { case 7: if (!getGkeClusterReference().equals(other.getGkeClusterReference())) return false; break; + case 8: + if (!getGkeHubClusterReference().equals(other.getGkeHubClusterReference())) return false; + break; case 0: default: } @@ -398,13 +445,15 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); - hash = (37 * hash) + GKE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGkeName().hashCode(); switch (clusterReferenceCase_) { case 7: hash = (37 * hash) + GKE_CLUSTER_REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getGkeClusterReference().hashCode(); break; + case 8: + hash = (37 * hash) + GKE_HUB_CLUSTER_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getGkeHubClusterReference().hashCode(); + break; case 0: default: } @@ -513,7 +562,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Game server cluster connection information.
+   * The game server cluster connection information.
    * 
* * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo} @@ -556,8 +605,6 @@ public Builder clear() { super.clear(); namespace_ = ""; - gkeName_ = ""; - clusterReferenceCase_ = 0; clusterReference_ = null; return this; @@ -595,8 +642,14 @@ public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo buildPart result.clusterReference_ = gkeClusterReferenceBuilder_.build(); } } + if (clusterReferenceCase_ == 8) { + if (gkeHubClusterReferenceBuilder_ == null) { + result.clusterReference_ = clusterReference_; + } else { + result.clusterReference_ = gkeHubClusterReferenceBuilder_.build(); + } + } result.namespace_ = namespace_; - result.gkeName_ = gkeName_; result.clusterReferenceCase_ = clusterReferenceCase_; onBuilt(); return result; @@ -654,16 +707,17 @@ public Builder mergeFrom( namespace_ = other.namespace_; onChanged(); } - if (!other.getGkeName().isEmpty()) { - gkeName_ = other.gkeName_; - onChanged(); - } switch (other.getClusterReferenceCase()) { case GKE_CLUSTER_REFERENCE: { mergeGkeClusterReference(other.getGkeClusterReference()); break; } + case GKE_HUB_CLUSTER_REFERENCE: + { + mergeGkeHubClusterReference(other.getGkeHubClusterReference()); + break; + } case CLUSTERREFERENCE_NOT_SET: { break; @@ -723,10 +777,12 @@ public Builder clearClusterReference() { * * *
-     * Reference of the GKE cluster where the game servers are installed.
+     * Reference to the GKE cluster where the game servers are installed.
      * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; + * + * @return Whether the gkeClusterReference field is set. */ public boolean hasGkeClusterReference() { return clusterReferenceCase_ == 7; @@ -735,10 +791,12 @@ public boolean hasGkeClusterReference() { * * *
-     * Reference of the GKE cluster where the game servers are installed.
+     * Reference to the GKE cluster where the game servers are installed.
      * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; + * + * @return The gkeClusterReference. */ public com.google.cloud.gaming.v1alpha.GkeClusterReference getGkeClusterReference() { if (gkeClusterReferenceBuilder_ == null) { @@ -757,7 +815,7 @@ public com.google.cloud.gaming.v1alpha.GkeClusterReference getGkeClusterReferenc * * *
-     * Reference of the GKE cluster where the game servers are installed.
+     * Reference to the GKE cluster where the game servers are installed.
      * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; @@ -780,7 +838,7 @@ public Builder setGkeClusterReference( * * *
-     * Reference of the GKE cluster where the game servers are installed.
+     * Reference to the GKE cluster where the game servers are installed.
      * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; @@ -800,7 +858,7 @@ public Builder setGkeClusterReference( * * *
-     * Reference of the GKE cluster where the game servers are installed.
+     * Reference to the GKE cluster where the game servers are installed.
      * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; @@ -833,7 +891,7 @@ public Builder mergeGkeClusterReference( * * *
-     * Reference of the GKE cluster where the game servers are installed.
+     * Reference to the GKE cluster where the game servers are installed.
      * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; @@ -858,7 +916,7 @@ public Builder clearGkeClusterReference() { * * *
-     * Reference of the GKE cluster where the game servers are installed.
+     * Reference to the GKE cluster where the game servers are installed.
      * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; @@ -871,7 +929,7 @@ public Builder clearGkeClusterReference() { * * *
-     * Reference of the GKE cluster where the game servers are installed.
+     * Reference to the GKE cluster where the game servers are installed.
      * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; @@ -891,7 +949,7 @@ public Builder clearGkeClusterReference() { * * *
-     * Reference of the GKE cluster where the game servers are installed.
+     * Reference to the GKE cluster where the game servers are installed.
      * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; @@ -922,130 +980,274 @@ public Builder clearGkeClusterReference() { return gkeClusterReferenceBuilder_; } - private java.lang.Object namespace_ = ""; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GkeHubClusterReference, + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder, + com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder> + gkeHubClusterReferenceBuilder_; /** * * *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
+     * Reference to an external (non-GKE) cluster registered with GKE Hub using
+     * the GKE connect agent. See
+     * https://cloud.google.com/anthos/multicluster-management/
+     * for more information about registering non-GKE clusters.
      * 
* - * string namespace = 5; + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * + * + * @return Whether the gkeHubClusterReference field is set. */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; + public boolean hasGkeHubClusterReference() { + return clusterReferenceCase_ == 8; + } + /** + * + * + *
+     * Reference to an external (non-GKE) cluster registered with GKE Hub using
+     * the GKE connect agent. See
+     * https://cloud.google.com/anthos/multicluster-management/
+     * for more information about registering non-GKE clusters.
+     * 
+ * + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * + * + * @return The gkeHubClusterReference. + */ + public com.google.cloud.gaming.v1alpha.GkeHubClusterReference getGkeHubClusterReference() { + if (gkeHubClusterReferenceBuilder_ == null) { + if (clusterReferenceCase_ == 8) { + return (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_; + } + return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); } else { - return (java.lang.String) ref; + if (clusterReferenceCase_ == 8) { + return gkeHubClusterReferenceBuilder_.getMessage(); + } + return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); } } /** * * *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
+     * Reference to an external (non-GKE) cluster registered with GKE Hub using
+     * the GKE connect agent. See
+     * https://cloud.google.com/anthos/multicluster-management/
+     * for more information about registering non-GKE clusters.
      * 
* - * string namespace = 5; + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * */ - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; - return b; + public Builder setGkeHubClusterReference( + com.google.cloud.gaming.v1alpha.GkeHubClusterReference value) { + if (gkeHubClusterReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clusterReference_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + gkeHubClusterReferenceBuilder_.setMessage(value); } + clusterReferenceCase_ = 8; + return this; } /** * * *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
+     * Reference to an external (non-GKE) cluster registered with GKE Hub using
+     * the GKE connect agent. See
+     * https://cloud.google.com/anthos/multicluster-management/
+     * for more information about registering non-GKE clusters.
      * 
* - * string namespace = 5; + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * */ - public Builder setNamespace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setGkeHubClusterReference( + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder builderForValue) { + if (gkeHubClusterReferenceBuilder_ == null) { + clusterReference_ = builderForValue.build(); + onChanged(); + } else { + gkeHubClusterReferenceBuilder_.setMessage(builderForValue.build()); } - - namespace_ = value; - onChanged(); + clusterReferenceCase_ = 8; return this; } /** * * *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
+     * Reference to an external (non-GKE) cluster registered with GKE Hub using
+     * the GKE connect agent. See
+     * https://cloud.google.com/anthos/multicluster-management/
+     * for more information about registering non-GKE clusters.
      * 
* - * string namespace = 5; + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * */ - public Builder clearNamespace() { - - namespace_ = getDefaultInstance().getNamespace(); - onChanged(); + public Builder mergeGkeHubClusterReference( + com.google.cloud.gaming.v1alpha.GkeHubClusterReference value) { + if (gkeHubClusterReferenceBuilder_ == null) { + if (clusterReferenceCase_ == 8 + && clusterReference_ + != com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance()) { + clusterReference_ = + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.newBuilder( + (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_) + .mergeFrom(value) + .buildPartial(); + } else { + clusterReference_ = value; + } + onChanged(); + } else { + if (clusterReferenceCase_ == 8) { + gkeHubClusterReferenceBuilder_.mergeFrom(value); + } + gkeHubClusterReferenceBuilder_.setMessage(value); + } + clusterReferenceCase_ = 8; return this; } /** * * *
-     * Namespace designated on the game server cluster where the game server
-     * instances will be created. The namespace existence will be validated
-     * during creation.
+     * Reference to an external (non-GKE) cluster registered with GKE Hub using
+     * the GKE connect agent. See
+     * https://cloud.google.com/anthos/multicluster-management/
+     * for more information about registering non-GKE clusters.
      * 
* - * string namespace = 5; + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * */ - public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearGkeHubClusterReference() { + if (gkeHubClusterReferenceBuilder_ == null) { + if (clusterReferenceCase_ == 8) { + clusterReferenceCase_ = 0; + clusterReference_ = null; + onChanged(); + } + } else { + if (clusterReferenceCase_ == 8) { + clusterReferenceCase_ = 0; + clusterReference_ = null; + } + gkeHubClusterReferenceBuilder_.clear(); } - checkByteStringIsUtf8(value); - - namespace_ = value; - onChanged(); return this; } + /** + * + * + *
+     * Reference to an external (non-GKE) cluster registered with GKE Hub using
+     * the GKE connect agent. See
+     * https://cloud.google.com/anthos/multicluster-management/
+     * for more information about registering non-GKE clusters.
+     * 
+ * + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * + */ + public com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder + getGkeHubClusterReferenceBuilder() { + return getGkeHubClusterReferenceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Reference to an external (non-GKE) cluster registered with GKE Hub using
+     * the GKE connect agent. See
+     * https://cloud.google.com/anthos/multicluster-management/
+     * for more information about registering non-GKE clusters.
+     * 
+ * + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * + */ + public com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder + getGkeHubClusterReferenceOrBuilder() { + if ((clusterReferenceCase_ == 8) && (gkeHubClusterReferenceBuilder_ != null)) { + return gkeHubClusterReferenceBuilder_.getMessageOrBuilder(); + } else { + if (clusterReferenceCase_ == 8) { + return (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_; + } + return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); + } + } + /** + * + * + *
+     * Reference to an external (non-GKE) cluster registered with GKE Hub using
+     * the GKE connect agent. See
+     * https://cloud.google.com/anthos/multicluster-management/
+     * for more information about registering non-GKE clusters.
+     * 
+ * + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GkeHubClusterReference, + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder, + com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder> + getGkeHubClusterReferenceFieldBuilder() { + if (gkeHubClusterReferenceBuilder_ == null) { + if (!(clusterReferenceCase_ == 8)) { + clusterReference_ = + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); + } + gkeHubClusterReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GkeHubClusterReference, + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder, + com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder>( + (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) clusterReference_, + getParentForChildren(), + isClean()); + clusterReference_ = null; + } + clusterReferenceCase_ = 8; + onChanged(); + ; + return gkeHubClusterReferenceBuilder_; + } - private java.lang.Object gkeName_ = ""; + private java.lang.Object namespace_ = ""; /** * * *
-     * Deprecated. Use cluster instead.
-     * This is the gkeName where the game server cluster is installed.
-     * It must the format "projects/*/locations/*/clusters/*". For example,
-     * "projects/my-project/locations/us-central1/clusters/test".
+     * Namespace designated on the game server cluster where the game server
+     * instances will be created. The namespace existence will be validated
+     * during creation.
      * 
* - * string gke_name = 6 [deprecated = true]; + * string namespace = 5; + * + * @return The namespace. */ - @java.lang.Deprecated - public java.lang.String getGkeName() { - java.lang.Object ref = gkeName_; + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - gkeName_ = s; + namespace_ = s; return s; } else { return (java.lang.String) ref; @@ -1055,21 +1257,21 @@ public java.lang.String getGkeName() { * * *
-     * Deprecated. Use cluster instead.
-     * This is the gkeName where the game server cluster is installed.
-     * It must the format "projects/*/locations/*/clusters/*". For example,
-     * "projects/my-project/locations/us-central1/clusters/test".
+     * Namespace designated on the game server cluster where the game server
+     * instances will be created. The namespace existence will be validated
+     * during creation.
      * 
* - * string gke_name = 6 [deprecated = true]; + * string namespace = 5; + * + * @return The bytes for namespace. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getGkeNameBytes() { - java.lang.Object ref = gkeName_; + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gkeName_ = b; + namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1079,21 +1281,22 @@ public com.google.protobuf.ByteString getGkeNameBytes() { * * *
-     * Deprecated. Use cluster instead.
-     * This is the gkeName where the game server cluster is installed.
-     * It must the format "projects/*/locations/*/clusters/*". For example,
-     * "projects/my-project/locations/us-central1/clusters/test".
+     * Namespace designated on the game server cluster where the game server
+     * instances will be created. The namespace existence will be validated
+     * during creation.
      * 
* - * string gke_name = 6 [deprecated = true]; + * string namespace = 5; + * + * @param value The namespace to set. + * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setGkeName(java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - gkeName_ = value; + namespace_ = value; onChanged(); return this; } @@ -1101,18 +1304,18 @@ public Builder setGkeName(java.lang.String value) { * * *
-     * Deprecated. Use cluster instead.
-     * This is the gkeName where the game server cluster is installed.
-     * It must the format "projects/*/locations/*/clusters/*". For example,
-     * "projects/my-project/locations/us-central1/clusters/test".
+     * Namespace designated on the game server cluster where the game server
+     * instances will be created. The namespace existence will be validated
+     * during creation.
      * 
* - * string gke_name = 6 [deprecated = true]; + * string namespace = 5; + * + * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearGkeName() { + public Builder clearNamespace() { - gkeName_ = getDefaultInstance().getGkeName(); + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } @@ -1120,22 +1323,23 @@ public Builder clearGkeName() { * * *
-     * Deprecated. Use cluster instead.
-     * This is the gkeName where the game server cluster is installed.
-     * It must the format "projects/*/locations/*/clusters/*". For example,
-     * "projects/my-project/locations/us-central1/clusters/test".
+     * Namespace designated on the game server cluster where the game server
+     * instances will be created. The namespace existence will be validated
+     * during creation.
      * 
* - * string gke_name = 6 [deprecated = true]; + * string namespace = 5; + * + * @param value The bytes for namespace to set. + * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setGkeNameBytes(com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - gkeName_ = value; + namespace_ = value; onChanged(); return this; } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder.java index a23104fb..a4ca54f9 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,27 +27,31 @@ public interface GameServerClusterConnectionInfoOrBuilder * * *
-   * Reference of the GKE cluster where the game servers are installed.
+   * Reference to the GKE cluster where the game servers are installed.
    * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; + * + * @return Whether the gkeClusterReference field is set. */ boolean hasGkeClusterReference(); /** * * *
-   * Reference of the GKE cluster where the game servers are installed.
+   * Reference to the GKE cluster where the game servers are installed.
    * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; + * + * @return The gkeClusterReference. */ com.google.cloud.gaming.v1alpha.GkeClusterReference getGkeClusterReference(); /** * * *
-   * Reference of the GKE cluster where the game servers are installed.
+   * Reference to the GKE cluster where the game servers are installed.
    * 
* * .google.cloud.gaming.v1alpha.GkeClusterReference gke_cluster_reference = 7; @@ -58,55 +62,75 @@ public interface GameServerClusterConnectionInfoOrBuilder * * *
-   * Namespace designated on the game server cluster where the game server
-   * instances will be created. The namespace existence will be validated
-   * during creation.
+   * Reference to an external (non-GKE) cluster registered with GKE Hub using
+   * the GKE connect agent. See
+   * https://cloud.google.com/anthos/multicluster-management/
+   * for more information about registering non-GKE clusters.
    * 
* - * string namespace = 5; + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * + * @return Whether the gkeHubClusterReference field is set. */ - java.lang.String getNamespace(); + boolean hasGkeHubClusterReference(); /** * * *
-   * Namespace designated on the game server cluster where the game server
-   * instances will be created. The namespace existence will be validated
-   * during creation.
+   * Reference to an external (non-GKE) cluster registered with GKE Hub using
+   * the GKE connect agent. See
+   * https://cloud.google.com/anthos/multicluster-management/
+   * for more information about registering non-GKE clusters.
    * 
* - * string namespace = 5; + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + * + * @return The gkeHubClusterReference. */ - com.google.protobuf.ByteString getNamespaceBytes(); + com.google.cloud.gaming.v1alpha.GkeHubClusterReference getGkeHubClusterReference(); + /** + * + * + *
+   * Reference to an external (non-GKE) cluster registered with GKE Hub using
+   * the GKE connect agent. See
+   * https://cloud.google.com/anthos/multicluster-management/
+   * for more information about registering non-GKE clusters.
+   * 
+ * + * .google.cloud.gaming.v1alpha.GkeHubClusterReference gke_hub_cluster_reference = 8; + */ + com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder + getGkeHubClusterReferenceOrBuilder(); /** * * *
-   * Deprecated. Use cluster instead.
-   * This is the gkeName where the game server cluster is installed.
-   * It must the format "projects/*/locations/*/clusters/*". For example,
-   * "projects/my-project/locations/us-central1/clusters/test".
+   * Namespace designated on the game server cluster where the game server
+   * instances will be created. The namespace existence will be validated
+   * during creation.
    * 
* - * string gke_name = 6 [deprecated = true]; + * string namespace = 5; + * + * @return The namespace. */ - @java.lang.Deprecated - java.lang.String getGkeName(); + java.lang.String getNamespace(); /** * * *
-   * Deprecated. Use cluster instead.
-   * This is the gkeName where the game server cluster is installed.
-   * It must the format "projects/*/locations/*/clusters/*". For example,
-   * "projects/my-project/locations/us-central1/clusters/test".
+   * Namespace designated on the game server cluster where the game server
+   * instances will be created. The namespace existence will be validated
+   * during creation.
    * 
* - * string gke_name = 6 [deprecated = true]; + * string namespace = 5; + * + * @return The bytes for namespace. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getGkeNameBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); public com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo.ClusterReferenceCase getClusterReferenceCase(); diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterName.java index f2547b2b..5beede79 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterName.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class GameServerClusterName implements ResourceName { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterOrBuilder.java index 10ef44cc..97dd11e7 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,26 +27,30 @@ public interface GameServerClusterOrBuilder * * *
-   * The resource name of the game server cluster, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`.
+   * Required. The resource name of the game server cluster, using the form:
+   * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
    * For example,
    * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * The resource name of the game server cluster, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`.
+   * Required. The resource name of the game server cluster, using the form:
+   * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
    * For example,
    * `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -57,7 +61,10 @@ public interface GameServerClusterOrBuilder * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** @@ -67,7 +74,10 @@ public interface GameServerClusterOrBuilder * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** @@ -77,7 +87,8 @@ public interface GameServerClusterOrBuilder * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); @@ -88,7 +99,10 @@ public interface GameServerClusterOrBuilder * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -98,7 +112,10 @@ public interface GameServerClusterOrBuilder * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** @@ -108,7 +125,8 @@ public interface GameServerClusterOrBuilder * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); @@ -180,6 +198,8 @@ public interface GameServerClusterOrBuilder * * * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; + * + * @return Whether the connectionInfo field is set. */ boolean hasConnectionInfo(); /** @@ -191,6 +211,8 @@ public interface GameServerClusterOrBuilder * * * .google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo connection_info = 5; + * + * @return The connectionInfo. */ com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfo getConnectionInfo(); /** @@ -205,4 +227,54 @@ public interface GameServerClusterOrBuilder */ com.google.cloud.gaming.v1alpha.GameServerClusterConnectionInfoOrBuilder getConnectionInfoOrBuilder(); + + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 6; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 6; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Human readable description of the cluster.
+   * 
+ * + * string description = 7; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Human readable description of the cluster.
+   * 
+ * + * string description = 7; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusters.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusters.java index 300d96eb..dfba45d7 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusters.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusters.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,14 +43,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gaming_v1alpha_CreateGameServerClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -59,6 +83,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -78,93 +106,102 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/gaming/v1alpha/game_serve" + "r_clusters.proto\022\033google.cloud.gaming.v1" - + "alpha\032\034google/api/annotations.proto\032#goo" - + "gle/longrunning/operations.proto\032 google" - + "/protobuf/field_mask.proto\032\037google/proto" - + "buf/timestamp.proto\032\027google/api/client.p" - + "roto\"x\n\035ListGameServerClustersRequest\022\016\n" - + "\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" - + "\030\005 \001(\t\"\207\001\n\036ListGameServerClustersRespons" - + "e\022L\n\024game_server_clusters\030\001 \003(\0132..google" - + ".cloud.gaming.v1alpha.GameServerCluster\022" - + "\027\n\017next_page_token\030\002 \001(\t\"+\n\033GetGameServe" - + "rClusterRequest\022\014\n\004name\030\001 \001(\t\"\235\001\n\036Create" - + "GameServerClusterRequest\022\016\n\006parent\030\001 \001(\t" - + "\022\036\n\026game_server_cluster_id\030\002 \001(\t\022K\n\023game" - + "_server_cluster\030\003 \001(\0132..google.cloud.gam" - + "ing.v1alpha.GameServerCluster\".\n\036DeleteG" - + "ameServerClusterRequest\022\014\n\004name\030\001 \001(\t\"\236\001" - + "\n\036UpdateGameServerClusterRequest\022K\n\023game" - + "_server_cluster\030\001 \001(\0132..google.cloud.gam" - + "ing.v1alpha.GameServerCluster\022/\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\262" - + "\001\n\037GameServerClusterConnectionInfo\022Q\n\025gk" - + "e_cluster_reference\030\007 \001(\01320.google.cloud" - + ".gaming.v1alpha.GkeClusterReferenceH\000\022\021\n" - + "\tnamespace\030\005 \001(\t\022\024\n\010gke_name\030\006 \001(\tB\002\030\001B\023" - + "\n\021cluster_reference\"&\n\023GkeClusterReferen" - + "ce\022\017\n\007cluster\030\001 \001(\t\"\325\002\n\021GameServerCluste" - + "r\022\014\n\004name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022/\n\013update_time\030" - + "\003 \001(\0132\032.google.protobuf.Timestamp\022J\n\006lab" - + "els\030\004 \003(\0132:.google.cloud.gaming.v1alpha." - + "GameServerCluster.LabelsEntry\022U\n\017connect" - + "ion_info\030\005 \001(\0132<.google.cloud.gaming.v1a" - + "lpha.GameServerClusterConnectionInfo\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\0012\257\t\n\031GameServerClustersService\022\337\001\n\026Li" - + "stGameServerClusters\022:.google.cloud.gami" - + "ng.v1alpha.ListGameServerClustersRequest" - + "\032;.google.cloud.gaming.v1alpha.ListGameS" - + "erverClustersResponse\"L\202\323\344\223\002F\022D/v1alpha/" - + "{parent=projects/*/locations/*/realms/*}" - + "/gameServerClusters\022\316\001\n\024GetGameServerClu" - + "ster\0228.google.cloud.gaming.v1alpha.GetGa" - + "meServerClusterRequest\032..google.cloud.ga" - + "ming.v1alpha.GameServerCluster\"L\202\323\344\223\002F\022D" - + "/v1alpha/{name=projects/*/locations/*/re" - + "alms/*/gameServerClusters/*}\022\330\001\n\027CreateG" - + "ameServerCluster\022;.google.cloud.gaming.v" - + "1alpha.CreateGameServerClusterRequest\032\035." - + "google.longrunning.Operation\"a\202\323\344\223\002[\"D/v" - + "1alpha/{parent=projects/*/locations/*/re" - + "alms/*}/gameServerClusters:\023game_server_" - + "cluster\022\303\001\n\027DeleteGameServerCluster\022;.go" - + "ogle.cloud.gaming.v1alpha.DeleteGameServ" - + "erClusterRequest\032\035.google.longrunning.Op" - + "eration\"L\202\323\344\223\002F*D/v1alpha/{name=projects" - + "/*/locations/*/realms/*/gameServerCluste" - + "rs/*}\022\354\001\n\027UpdateGameServerCluster\022;.goog" - + "le.cloud.gaming.v1alpha.UpdateGameServer" - + "ClusterRequest\032\035.google.longrunning.Oper" - + "ation\"u\202\323\344\223\002o2X/v1alpha/{game_server_clu" - + "ster.name=projects/*/locations/*/realms/" - + "*/gameServerClusters/*}:\023game_server_clu" - + "ster\032O\312A\033gameservices.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformBf\n\037com.google.cloud.gaming.v1alpha" - + "P\001ZAgoogle.golang.org/genproto/googleapi" - + "s/cloud/gaming/v1alpha;gamingb\006proto3" + + "alpha\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032(google/cloud/" + + "gaming/v1alpha/common.proto\032 google/prot" + + "obuf/field_mask.proto\032\037google/protobuf/t" + + "imestamp.proto\032\034google/api/annotations.p" + + "roto\"\303\001\n\035ListGameServerClustersRequest\022E" + + "\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-gameservices.goo" + + "gleapis.com/GameServerCluster\022\026\n\tpage_si" + + "ze\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023" + + "\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340" + + "A\001\"\277\001\n\036ListGameServerClustersResponse\022L\n" + + "\024game_server_clusters\030\001 \003(\0132..google.clo" + + "ud.gaming.v1alpha.GameServerCluster\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022!\n\025unreachable_loca" + + "tions\030\003 \003(\tB\002\030\001\022\023\n\013unreachable\030\004 \003(\t\"b\n\033" + + "GetGameServerClusterRequest\022C\n\004name\030\001 \001(" + + "\tB5\340A\002\372A/\n-gameservices.googleapis.com/G" + + "ameServerCluster\"\336\001\n\036CreateGameServerClu" + + "sterRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-gam" + + "eservices.googleapis.com/GameServerClust" + + "er\022#\n\026game_server_cluster_id\030\002 \001(\tB\003\340A\002\022" + + "P\n\023game_server_cluster\030\003 \001(\0132..google.cl" + + "oud.gaming.v1alpha.GameServerClusterB\003\340A" + + "\002\"\352\001\n%PreviewCreateGameServerClusterRequ" + + "est\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022#\n\026game_server_" + + "cluster_id\030\002 \001(\tB\003\340A\002\022P\n\023game_server_clu" + + "ster\030\003 \001(\0132..google.cloud.gaming.v1alpha" + + ".GameServerClusterB\003\340A\002\0225\n\014preview_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\276" + + "\001\n&PreviewCreateGameServerClusterRespons" + + "e\022F\n\016deployed_state\030\001 \001(\0132*.google.cloud" + + ".gaming.v1alpha.DeployedStateB\002\030\001\022\014\n\004eta" + + "g\030\002 \001(\t\022>\n\014target_state\030\003 \001(\0132(.google.c" + + "loud.gaming.v1alpha.TargetState\"e\n\036Delet" + + "eGameServerClusterRequest\022C\n\004name\030\001 \001(\tB" + + "5\340A\002\372A/\n-gameservices.googleapis.com/Gam" + + "eServerCluster\"q\n%PreviewDeleteGameServe" + + "rClusterRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0225\n\014pr" + + "eview_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\001\"\276\001\n&PreviewDeleteGameServerClu" + + "sterResponse\022F\n\016deployed_state\030\001 \001(\0132*.g" + + "oogle.cloud.gaming.v1alpha.DeployedState" + + "B\002\030\001\022\014\n\004etag\030\002 \001(\t\022>\n\014target_state\030\003 \001(\013" + + "2(.google.cloud.gaming.v1alpha.TargetSta" + + "te\"\250\001\n\036UpdateGameServerClusterRequest\022P\n" + + "\023game_server_cluster\030\001 \001(\0132..google.clou" + + "d.gaming.v1alpha.GameServerClusterB\003\340A\002\022" + + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\002\"\346\001\n%PreviewUpdateGameServe" + + "rClusterRequest\022P\n\023game_server_cluster\030\001" + + " \001(\0132..google.cloud.gaming.v1alpha.GameS" + + "erverClusterB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\002\0225\n\014previ" + + "ew_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\001\"\276\001\n&PreviewUpdateGameServerCluste" + + "rResponse\022F\n\016deployed_state\030\001 \001(\0132*.goog" + + "le.cloud.gaming.v1alpha.DeployedStateB\002\030" + + "\001\022\014\n\004etag\030\002 \001(\t\022>\n\014target_state\030\003 \001(\0132(." + + "google.cloud.gaming.v1alpha.TargetState\"" + + "\366\001\n\037GameServerClusterConnectionInfo\022Q\n\025g" + + "ke_cluster_reference\030\007 \001(\01320.google.clou" + + "d.gaming.v1alpha.GkeClusterReferenceH\000\022X" + + "\n\031gke_hub_cluster_reference\030\010 \001(\01323.goog" + + "le.cloud.gaming.v1alpha.GkeHubClusterRef" + + "erenceH\000\022\021\n\tnamespace\030\005 \001(\tB\023\n\021cluster_r" + + "eference\"&\n\023GkeClusterReference\022\017\n\007clust" + + "er\030\001 \001(\t\",\n\026GkeHubClusterReference\022\022\n\nme" + + "mbership\030\001 \001(\t\"\222\004\n\021GameServerCluster\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\002\0224\n\013create_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" + + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022J\n\006labels\030\004 \003(\0132:.google.cloud.gamin" + + "g.v1alpha.GameServerCluster.LabelsEntry\022" + + "U\n\017connection_info\030\005 \001(\0132<.google.cloud." + + "gaming.v1alpha.GameServerClusterConnecti" + + "onInfo\022\014\n\004etag\030\006 \001(\t\022\023\n\013description\030\007 \001(" + + "\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001:\210\001\352A\204\001\n-gameservices.googleapis" + + ".com/GameServerCluster\022Sprojects/{projec" + + "t}/locations/{location}/realms/{realm}/g" + + "ameServerClusters/{cluster}Bf\n\037com.googl" + + "e.cloud.gaming.v1alphaP\001ZAgoogle.golang." + + "org/genproto/googleapis/cloud/gaming/v1a" + + "lpha;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.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gaming.v1alpha.Common.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersRequest_fieldAccessorTable = @@ -179,7 +216,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_ListGameServerClustersResponse_descriptor, new java.lang.String[] { - "GameServerClusters", "NextPageToken", + "GameServerClusters", "NextPageToken", "UnreachableLocations", "Unreachable", }); internal_static_google_cloud_gaming_v1alpha_GetGameServerClusterRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -197,45 +234,101 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Parent", "GameServerClusterId", "GameServerCluster", }); - internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor = + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "GameServerClusterId", "GameServerCluster", "PreviewTime", + }); + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor, + new java.lang.String[] { + "DeployedState", "Etag", "TargetState", + }); + internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_DeleteGameServerClusterRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor, + new java.lang.String[] { + "Name", "PreviewTime", + }); + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor, + new java.lang.String[] { + "DeployedState", "Etag", "TargetState", + }); internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_UpdateGameServerClusterRequest_descriptor, new java.lang.String[] { "GameServerCluster", "UpdateMask", }); + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor, + new java.lang.String[] { + "GameServerCluster", "UpdateMask", "PreviewTime", + }); + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor, + new java.lang.String[] { + "DeployedState", "Etag", "TargetState", + }); internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_GameServerClusterConnectionInfo_descriptor, new java.lang.String[] { - "GkeClusterReference", "Namespace", "GkeName", "ClusterReference", + "GkeClusterReference", "GkeHubClusterReference", "Namespace", "ClusterReference", }); internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_GkeClusterReference_descriptor, new java.lang.String[] { "Cluster", }); + internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor, + new java.lang.String[] { + "Membership", + }); internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_gaming_v1alpha_GameServerCluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor, new java.lang.String[] { - "Name", "CreateTime", "UpdateTime", "Labels", "ConnectionInfo", + "Name", "CreateTime", "UpdateTime", "Labels", "ConnectionInfo", "Etag", "Description", }); internal_static_google_cloud_gaming_v1alpha_GameServerCluster_LabelsEntry_descriptor = internal_static_google_cloud_gaming_v1alpha_GameServerCluster_descriptor @@ -249,16 +342,17 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gaming.v1alpha.Common.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceOuterClass.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceOuterClass.java new file mode 100644 index 00000000..c9674233 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceOuterClass.java @@ -0,0 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters_service.proto + +package com.google.cloud.gaming.v1alpha; + +public final class GameServerClustersServiceOuterClass { + private GameServerClustersServiceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/game_serve" + + "r_clusters_service.proto\022\033google.cloud.g" + + "aming.v1alpha\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\0326google/clo" + + "ud/gaming/v1alpha/game_server_clusters.p" + + "roto\032#google/longrunning/operations.prot" + + "o2\360\021\n\031GameServerClustersService\022\350\001\n\026List" + + "GameServerClusters\022:.google.cloud.gaming" + + ".v1alpha.ListGameServerClustersRequest\032;" + + ".google.cloud.gaming.v1alpha.ListGameSer" + + "verClustersResponse\"U\202\323\344\223\002F\022D/v1alpha/{p" + + "arent=projects/*/locations/*/realms/*}/g" + + "ameServerClusters\332A\006parent\022\325\001\n\024GetGameSe" + + "rverCluster\0228.google.cloud.gaming.v1alph" + + "a.GetGameServerClusterRequest\032..google.c" + + "loud.gaming.v1alpha.GameServerCluster\"S\202" + + "\323\344\223\002F\022D/v1alpha/{name=projects/*/locatio" + + "ns/*/realms/*/gameServerClusters/*}\332A\004na" + + "me\022\266\002\n\027CreateGameServerCluster\022;.google." + + "cloud.gaming.v1alpha.CreateGameServerClu" + + "sterRequest\032\035.google.longrunning.Operati" + + "on\"\276\001\202\323\344\223\002[\"D/v1alpha/{parent=projects/*" + + "/locations/*/realms/*}/gameServerCluster" + + "s:\023game_server_cluster\332A1parent,game_ser" + + "ver_cluster,game_server_cluster_id\312A&\n\021G" + + "ameServerCluster\022\021OperationMetadata\022\232\002\n\036" + + "PreviewCreateGameServerCluster\022B.google." + + "cloud.gaming.v1alpha.PreviewCreateGameSe" + + "rverClusterRequest\032C.google.cloud.gaming" + + ".v1alpha.PreviewCreateGameServerClusterR" + + "esponse\"o\202\323\344\223\002i\"R/v1alpha/{parent=projec" + + "ts/*/locations/*/realms/*}/gameServerClu" + + "sters:previewCreate:\023game_server_cluster" + + "\022\363\001\n\027DeleteGameServerCluster\022;.google.cl" + + "oud.gaming.v1alpha.DeleteGameServerClust" + + "erRequest\032\035.google.longrunning.Operation" + + "\"|\202\323\344\223\002F*D/v1alpha/{name=projects/*/loca" + + "tions/*/realms/*/gameServerClusters/*}\332A" + + "\004name\312A&\n\021GameServerCluster\022\021OperationMe" + + "tadata\022\205\002\n\036PreviewDeleteGameServerCluste" + + "r\022B.google.cloud.gaming.v1alpha.PreviewD" + + "eleteGameServerClusterRequest\032C.google.c" + + "loud.gaming.v1alpha.PreviewDeleteGameSer" + + "verClusterResponse\"Z\202\323\344\223\002T*R/v1alpha/{na" + + "me=projects/*/locations/*/realms/*/gameS" + + "erverClusters/*}:previewDelete\022\270\002\n\027Updat" + + "eGameServerCluster\022;.google.cloud.gaming" + + ".v1alpha.UpdateGameServerClusterRequest\032" + + "\035.google.longrunning.Operation\"\300\001\202\323\344\223\002o2" + + "X/v1alpha/{game_server_cluster.name=proj" + + "ects/*/locations/*/realms/*/gameServerCl" + + "usters/*}:\023game_server_cluster\332A\037game_se" + + "rver_cluster,update_mask\312A&\n\021GameServerC" + + "luster\022\021OperationMetadata\022\257\002\n\036PreviewUpd" + + "ateGameServerCluster\022B.google.cloud.gami" + + "ng.v1alpha.PreviewUpdateGameServerCluste" + + "rRequest\032C.google.cloud.gaming.v1alpha.P" + + "reviewUpdateGameServerClusterResponse\"\203\001" + + "\202\323\344\223\002}2f/v1alpha/{game_server_cluster.na" + + "me=projects/*/locations/*/realms/*/gameS" + + "erverClusters/*}:previewUpdate:\023game_ser" + + "ver_cluster\032O\312A\033gameservices.googleapis." + + "com\322A.https://www.googleapis.com/auth/cl" + + "oud-platformBf\n\037com.google.cloud.gaming." + + "v1alphaP\001ZAgoogle.golang.org/genproto/go" + + "ogleapis/cloud/gaming/v1alpha;gamingb\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.gaming.v1alpha.GameServerClusters.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.gaming.v1alpha.GameServerClusters.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicy.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfig.java similarity index 50% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicy.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfig.java index e4dd5e2e..5b01f005 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/AllocationPolicy.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_configs.proto package com.google.cloud.gaming.v1alpha; @@ -22,25 +22,32 @@ * * *
- * An allocation policy resource.
+ * A game server config resource.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.AllocationPolicy} + * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerConfig} */ -public final class AllocationPolicy extends com.google.protobuf.GeneratedMessageV3 +public final class GameServerConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.AllocationPolicy) - AllocationPolicyOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerConfig) + GameServerConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use AllocationPolicy.newBuilder() to construct. - private AllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GameServerConfig.newBuilder() to construct. + private GameServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AllocationPolicy() { + private GameServerConfig() { name_ = ""; - clusterSelectors_ = java.util.Collections.emptyList(); - schedules_ = java.util.Collections.emptyList(); + fleetConfigs_ = java.util.Collections.emptyList(); + scalingConfigs_ = java.util.Collections.emptyList(); + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GameServerConfig(); } @java.lang.Override @@ -48,7 +55,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AllocationPolicy( + private GameServerConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -106,10 +113,10 @@ private AllocationPolicy( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -117,47 +124,35 @@ private AllocationPolicy( labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); break; } - case 66: + case 42: { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (priority_ != null) { - subBuilder = priority_.toBuilder(); - } - priority_ = - input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(priority_); - priority_ = subBuilder.buildPartial(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fleetConfigs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - - break; - } - case 72: - { - weight_ = input.readInt32(); + fleetConfigs_.add( + input.readMessage( + com.google.cloud.gaming.v1alpha.FleetConfig.parser(), extensionRegistry)); break; } - case 82: + case 50: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - clusterSelectors_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + scalingConfigs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - clusterSelectors_.add( + scalingConfigs_.add( input.readMessage( - com.google.cloud.gaming.v1alpha.LabelSelector.parser(), extensionRegistry)); + com.google.cloud.gaming.v1alpha.ScalingConfig.parser(), extensionRegistry)); break; } - case 90: + case 58: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - schedules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - schedules_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.Schedule.parser(), extensionRegistry)); + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; break; } default: @@ -174,11 +169,11 @@ private AllocationPolicy( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000040) != 0)) { - clusterSelectors_ = java.util.Collections.unmodifiableList(clusterSelectors_); + if (((mutable_bitField0_ & 0x00000002) != 0)) { + fleetConfigs_ = java.util.Collections.unmodifiableList(fleetConfigs_); } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - schedules_ = java.util.Collections.unmodifiableList(schedules_); + if (((mutable_bitField0_ & 0x00000004) != 0)) { + scalingConfigs_ = java.util.Collections.unmodifiableList(scalingConfigs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -186,8 +181,8 @@ private AllocationPolicy( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -204,27 +199,28 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.AllocationPolicy.class, - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder.class); + com.google.cloud.gaming.v1alpha.GameServerConfig.class, + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
-   * The resource name of the allocation policy, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+   * The resource name of the game server config, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
    * For example,
-   * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
    * 
* * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -241,13 +237,15 @@ public java.lang.String getName() { * * *
-   * The resource name of the allocation policy, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+   * The resource name of the game server config, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
    * For example,
-   * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
    * 
* * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -270,7 +268,10 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -282,7 +283,10 @@ public boolean hasCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -294,7 +298,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); @@ -309,7 +314,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -321,7 +329,10 @@ public boolean hasUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -333,7 +344,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); @@ -344,8 +356,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_LabelsEntry_descriptor, + com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -368,8 +380,8 @@ public int getLabelsCount() { * * *
-   * The labels associated with the allocation policy. Each label is a key-value
-   * pair.
+   * The labels associated with this game server config. Each label is a
+   * key-value pair.
    * 
* * map<string, string> labels = 4; @@ -389,8 +401,8 @@ public java.util.Map getLabels() { * * *
-   * The labels associated with the allocation policy. Each label is a key-value
-   * pair.
+   * The labels associated with this game server config. Each label is a
+   * key-value pair.
    * 
* * map<string, string> labels = 4; @@ -402,8 +414,8 @@ public java.util.Map getLabelsMap() { * * *
-   * The labels associated with the allocation policy. Each label is a key-value
-   * pair.
+   * The labels associated with this game server config. Each label is a
+   * key-value pair.
    * 
* * map<string, string> labels = 4; @@ -419,8 +431,8 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
-   * The labels associated with the allocation policy. Each label is a key-value
-   * pair.
+   * The labels associated with this game server config. Each label is a
+   * key-value pair.
    * 
* * map<string, string> labels = 4; @@ -436,202 +448,185 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } - public static final int PRIORITY_FIELD_NUMBER = 8; - private com.google.protobuf.Int32Value priority_; + public static final int FLEET_CONFIGS_FIELD_NUMBER = 5; + private java.util.List fleetConfigs_; /** * * *
-   * Required. The priority of the policy for allocation. A smaller value
-   * indicates a higher priority.
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
    * 
* - * .google.protobuf.Int32Value priority = 8; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public boolean hasPriority() { - return priority_ != null; + public java.util.List getFleetConfigsList() { + return fleetConfigs_; } /** * * *
-   * Required. The priority of the policy for allocation. A smaller value
-   * indicates a higher priority.
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
    * 
* - * .google.protobuf.Int32Value priority = 8; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public com.google.protobuf.Int32Value getPriority() { - return priority_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : priority_; + public java.util.List + getFleetConfigsOrBuilderList() { + return fleetConfigs_; } /** * * *
-   * Required. The priority of the policy for allocation. A smaller value
-   * indicates a higher priority.
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
    * 
* - * .google.protobuf.Int32Value priority = 8; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public com.google.protobuf.Int32ValueOrBuilder getPriorityOrBuilder() { - return getPriority(); + public int getFleetConfigsCount() { + return fleetConfigs_.size(); } - - 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.
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
    * 
* - * int32 weight = 9; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public int getWeight() { - return weight_; + public com.google.cloud.gaming.v1alpha.FleetConfig getFleetConfigs(int index) { + return fleetConfigs_.get(index); } - - public static final int CLUSTER_SELECTORS_FIELD_NUMBER = 10; - private java.util.List clusterSelectors_; /** * * *
-   * The cluster labels are used to identify the clusters that a policy is
-   * applied to.
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
    * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public java.util.List getClusterSelectorsList() { - return clusterSelectors_; + public com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder getFleetConfigsOrBuilder(int index) { + return fleetConfigs_.get(index); } + + public static final int SCALING_CONFIGS_FIELD_NUMBER = 6; + private java.util.List scalingConfigs_; /** * * *
-   * The cluster labels are used to identify the clusters that a policy is
-   * applied to.
+   * The autoscaling settings for Agones fleet.
    * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public java.util.List - getClusterSelectorsOrBuilderList() { - return clusterSelectors_; + public java.util.List getScalingConfigsList() { + return scalingConfigs_; } /** * * *
-   * The cluster labels are used to identify the clusters that a policy is
-   * applied to.
+   * The autoscaling settings for Agones fleet.
    * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public int getClusterSelectorsCount() { - return clusterSelectors_.size(); + public java.util.List + getScalingConfigsOrBuilderList() { + return scalingConfigs_; } /** * * *
-   * The cluster labels are used to identify the clusters that a policy is
-   * applied to.
+   * The autoscaling settings for Agones fleet.
    * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelectors(int index) { - return clusterSelectors_.get(index); + public int getScalingConfigsCount() { + return scalingConfigs_.size(); } /** * * *
-   * The cluster labels are used to identify the clusters that a policy is
-   * applied to.
+   * The autoscaling settings for Agones fleet.
    * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorsOrBuilder( - int index) { - return clusterSelectors_.get(index); + public com.google.cloud.gaming.v1alpha.ScalingConfig getScalingConfigs(int index) { + return scalingConfigs_.get(index); } - - public static final int SCHEDULES_FIELD_NUMBER = 11; - private java.util.List schedules_; /** * * *
-   * The event schedules - If specified, the policy is time based and when the
-   * schedule is effective overrides the default policy.
+   * The autoscaling settings for Agones fleet.
    * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public java.util.List getSchedulesList() { - return schedules_; + public com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder getScalingConfigsOrBuilder( + int index) { + return scalingConfigs_.get(index); } + + public static final int DESCRIPTION_FIELD_NUMBER = 7; + private volatile java.lang.Object description_; /** * * *
-   * The event schedules - If specified, the policy is time based and when the
-   * schedule is effective overrides the default policy.
+   * The description of the game server config.
    * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; - */ - public java.util.List - getSchedulesOrBuilderList() { - return schedules_; - } - /** - * - * - *
-   * The event schedules - If specified, the policy is time based and when the
-   * schedule is effective overrides the default policy.
-   * 
+ * string description = 7; * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * @return The description. */ - public int getSchedulesCount() { - return schedules_.size(); + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } } /** * * *
-   * The event schedules - If specified, the policy is time based and when the
-   * schedule is effective overrides the default policy.
+   * The description of the game server config.
    * 
* - * 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.
-   * 
+ * string description = 7; * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * @return The bytes for description. */ - public com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index) { - return schedules_.get(index); + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -659,17 +654,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (priority_ != null) { - output.writeMessage(8, getPriority()); + for (int i = 0; i < fleetConfigs_.size(); i++) { + output.writeMessage(5, fleetConfigs_.get(i)); } - if (weight_ != 0) { - output.writeInt32(9, weight_); + for (int i = 0; i < scalingConfigs_.size(); i++) { + output.writeMessage(6, scalingConfigs_.get(i)); } - 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)); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); } unknownFields.writeTo(output); } @@ -699,18 +691,14 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } - if (priority_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPriority()); - } - if (weight_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, weight_); + for (int i = 0; i < fleetConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, fleetConfigs_.get(i)); } - for (int i = 0; i < clusterSelectors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, clusterSelectors_.get(i)); + for (int i = 0; i < scalingConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, scalingConfigs_.get(i)); } - for (int i = 0; i < schedules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, schedules_.get(i)); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -722,11 +710,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.AllocationPolicy)) { + if (!(obj instanceof com.google.cloud.gaming.v1alpha.GameServerConfig)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.AllocationPolicy other = - (com.google.cloud.gaming.v1alpha.AllocationPolicy) obj; + com.google.cloud.gaming.v1alpha.GameServerConfig other = + (com.google.cloud.gaming.v1alpha.GameServerConfig) obj; if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; @@ -738,13 +726,9 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasPriority() != other.hasPriority()) return false; - if (hasPriority()) { - if (!getPriority().equals(other.getPriority())) return false; - } - if (getWeight() != other.getWeight()) return false; - if (!getClusterSelectorsList().equals(other.getClusterSelectorsList())) return false; - if (!getSchedulesList().equals(other.getSchedulesList())) return false; + if (!getFleetConfigsList().equals(other.getFleetConfigsList())) return false; + if (!getScalingConfigsList().equals(other.getScalingConfigsList())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -770,90 +754,86 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } - if (hasPriority()) { - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + getPriority().hashCode(); - } - hash = (37 * hash) + WEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getWeight(); - if (getClusterSelectorsCount() > 0) { - hash = (37 * hash) + CLUSTER_SELECTORS_FIELD_NUMBER; - hash = (53 * hash) + getClusterSelectorsList().hashCode(); + if (getFleetConfigsCount() > 0) { + hash = (37 * hash) + FLEET_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getFleetConfigsList().hashCode(); } - if (getSchedulesCount() > 0) { - hash = (37 * hash) + SCHEDULES_FIELD_NUMBER; - hash = (53 * hash) + getSchedulesList().hashCode(); + if (getScalingConfigsCount() > 0) { + hash = (37 * hash) + SCALING_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getScalingConfigsList().hashCode(); } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gaming.v1alpha.AllocationPolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.AllocationPolicy parseFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig 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.AllocationPolicy parseFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.AllocationPolicy parseFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig 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.AllocationPolicy parseFrom(byte[] data) + public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.AllocationPolicy parseFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig 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.AllocationPolicy parseFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.AllocationPolicy parseFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig 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.AllocationPolicy parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.AllocationPolicy parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig 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.AllocationPolicy parseFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig 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.AllocationPolicy parseFrom( + public static com.google.cloud.gaming.v1alpha.GameServerConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -870,7 +850,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.AllocationPolicy prototype) { + public static Builder newBuilder(com.google.cloud.gaming.v1alpha.GameServerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -888,18 +868,18 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * An allocation policy resource.
+   * A game server config resource.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.AllocationPolicy} + * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.AllocationPolicy) - com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerConfig) + com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -925,14 +905,14 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.AllocationPolicy.class, - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder.class); + com.google.cloud.gaming.v1alpha.GameServerConfig.class, + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder.class); } - // Construct using com.google.cloud.gaming.v1alpha.AllocationPolicy.newBuilder() + // Construct using com.google.cloud.gaming.v1alpha.GameServerConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -944,8 +924,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getClusterSelectorsFieldBuilder(); - getSchedulesFieldBuilder(); + getFleetConfigsFieldBuilder(); + getScalingConfigsFieldBuilder(); } } @@ -967,43 +947,37 @@ public Builder clear() { updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); - if (priorityBuilder_ == null) { - priority_ = null; - } else { - priority_ = null; - priorityBuilder_ = null; - } - weight_ = 0; - - if (clusterSelectorsBuilder_ == null) { - clusterSelectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + if (fleetConfigsBuilder_ == null) { + fleetConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); } else { - clusterSelectorsBuilder_.clear(); + fleetConfigsBuilder_.clear(); } - if (schedulesBuilder_ == null) { - schedules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + if (scalingConfigsBuilder_ == null) { + scalingConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); } else { - schedulesBuilder_.clear(); + scalingConfigsBuilder_.clear(); } + description_ = ""; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_AllocationPolicy_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.AllocationPolicy getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance(); + public com.google.cloud.gaming.v1alpha.GameServerConfig getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.AllocationPolicy build() { - com.google.cloud.gaming.v1alpha.AllocationPolicy result = buildPartial(); + public com.google.cloud.gaming.v1alpha.GameServerConfig build() { + com.google.cloud.gaming.v1alpha.GameServerConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1011,11 +985,10 @@ public com.google.cloud.gaming.v1alpha.AllocationPolicy build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.AllocationPolicy buildPartial() { - com.google.cloud.gaming.v1alpha.AllocationPolicy result = - new com.google.cloud.gaming.v1alpha.AllocationPolicy(this); + public com.google.cloud.gaming.v1alpha.GameServerConfig buildPartial() { + com.google.cloud.gaming.v1alpha.GameServerConfig result = + new com.google.cloud.gaming.v1alpha.GameServerConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -1029,31 +1002,25 @@ public com.google.cloud.gaming.v1alpha.AllocationPolicy buildPartial() { } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); - if (priorityBuilder_ == null) { - result.priority_ = priority_; - } else { - result.priority_ = priorityBuilder_.build(); - } - result.weight_ = weight_; - if (clusterSelectorsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - clusterSelectors_ = java.util.Collections.unmodifiableList(clusterSelectors_); - bitField0_ = (bitField0_ & ~0x00000040); + if (fleetConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + fleetConfigs_ = java.util.Collections.unmodifiableList(fleetConfigs_); + bitField0_ = (bitField0_ & ~0x00000002); } - result.clusterSelectors_ = clusterSelectors_; + result.fleetConfigs_ = fleetConfigs_; } else { - result.clusterSelectors_ = clusterSelectorsBuilder_.build(); + result.fleetConfigs_ = fleetConfigsBuilder_.build(); } - if (schedulesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - schedules_ = java.util.Collections.unmodifiableList(schedules_); - bitField0_ = (bitField0_ & ~0x00000080); + if (scalingConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + scalingConfigs_ = java.util.Collections.unmodifiableList(scalingConfigs_); + bitField0_ = (bitField0_ & ~0x00000004); } - result.schedules_ = schedules_; + result.scalingConfigs_ = scalingConfigs_; } else { - result.schedules_ = schedulesBuilder_.build(); + result.scalingConfigs_ = scalingConfigsBuilder_.build(); } - result.bitField0_ = to_bitField0_; + result.description_ = description_; onBuilt(); return result; } @@ -1093,16 +1060,16 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.AllocationPolicy) { - return mergeFrom((com.google.cloud.gaming.v1alpha.AllocationPolicy) other); + if (other instanceof com.google.cloud.gaming.v1alpha.GameServerConfig) { + return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.AllocationPolicy other) { - if (other == com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerConfig other) { + if (other == com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; @@ -1115,66 +1082,64 @@ public Builder mergeFrom(com.google.cloud.gaming.v1alpha.AllocationPolicy other) mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasPriority()) { - mergePriority(other.getPriority()); - } - if (other.getWeight() != 0) { - setWeight(other.getWeight()); - } - if (clusterSelectorsBuilder_ == null) { - if (!other.clusterSelectors_.isEmpty()) { - if (clusterSelectors_.isEmpty()) { - clusterSelectors_ = other.clusterSelectors_; - bitField0_ = (bitField0_ & ~0x00000040); + if (fleetConfigsBuilder_ == null) { + if (!other.fleetConfigs_.isEmpty()) { + if (fleetConfigs_.isEmpty()) { + fleetConfigs_ = other.fleetConfigs_; + bitField0_ = (bitField0_ & ~0x00000002); } else { - ensureClusterSelectorsIsMutable(); - clusterSelectors_.addAll(other.clusterSelectors_); + ensureFleetConfigsIsMutable(); + fleetConfigs_.addAll(other.fleetConfigs_); } onChanged(); } } else { - if (!other.clusterSelectors_.isEmpty()) { - if (clusterSelectorsBuilder_.isEmpty()) { - clusterSelectorsBuilder_.dispose(); - clusterSelectorsBuilder_ = null; - clusterSelectors_ = other.clusterSelectors_; - bitField0_ = (bitField0_ & ~0x00000040); - clusterSelectorsBuilder_ = + if (!other.fleetConfigs_.isEmpty()) { + if (fleetConfigsBuilder_.isEmpty()) { + fleetConfigsBuilder_.dispose(); + fleetConfigsBuilder_ = null; + fleetConfigs_ = other.fleetConfigs_; + bitField0_ = (bitField0_ & ~0x00000002); + fleetConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClusterSelectorsFieldBuilder() + ? getFleetConfigsFieldBuilder() : null; } else { - clusterSelectorsBuilder_.addAllMessages(other.clusterSelectors_); + fleetConfigsBuilder_.addAllMessages(other.fleetConfigs_); } } } - if (schedulesBuilder_ == null) { - if (!other.schedules_.isEmpty()) { - if (schedules_.isEmpty()) { - schedules_ = other.schedules_; - bitField0_ = (bitField0_ & ~0x00000080); + if (scalingConfigsBuilder_ == null) { + if (!other.scalingConfigs_.isEmpty()) { + if (scalingConfigs_.isEmpty()) { + scalingConfigs_ = other.scalingConfigs_; + bitField0_ = (bitField0_ & ~0x00000004); } else { - ensureSchedulesIsMutable(); - schedules_.addAll(other.schedules_); + ensureScalingConfigsIsMutable(); + scalingConfigs_.addAll(other.scalingConfigs_); } onChanged(); } } else { - if (!other.schedules_.isEmpty()) { - if (schedulesBuilder_.isEmpty()) { - schedulesBuilder_.dispose(); - schedulesBuilder_ = null; - schedules_ = other.schedules_; - bitField0_ = (bitField0_ & ~0x00000080); - schedulesBuilder_ = + if (!other.scalingConfigs_.isEmpty()) { + if (scalingConfigsBuilder_.isEmpty()) { + scalingConfigsBuilder_.dispose(); + scalingConfigsBuilder_ = null; + scalingConfigs_ = other.scalingConfigs_; + bitField0_ = (bitField0_ & ~0x00000004); + scalingConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSchedulesFieldBuilder() + ? getScalingConfigsFieldBuilder() : null; } else { - schedulesBuilder_.addAllMessages(other.schedules_); + scalingConfigsBuilder_.addAllMessages(other.scalingConfigs_); } } } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1190,11 +1155,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.AllocationPolicy parsedMessage = null; + com.google.cloud.gaming.v1alpha.GameServerConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.AllocationPolicy) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gaming.v1alpha.GameServerConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1211,13 +1176,15 @@ public Builder mergeFrom( * * *
-     * The resource name of the allocation policy, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+     * The resource name of the game server config, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
      * For example,
-     * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
      * 
* * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1234,13 +1201,15 @@ public java.lang.String getName() { * * *
-     * The resource name of the allocation policy, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+     * The resource name of the game server config, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
      * For example,
-     * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
      * 
* * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1257,13 +1226,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The resource name of the allocation policy, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+     * The resource name of the game server config, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
      * For example,
-     * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1278,13 +1250,15 @@ public Builder setName(java.lang.String value) { * * *
-     * The resource name of the allocation policy, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+     * The resource name of the game server config, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
      * For example,
-     * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1296,13 +1270,16 @@ public Builder clearName() { * * *
-     * The resource name of the allocation policy, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`.
+     * The resource name of the game server config, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
      * For example,
-     * `projects/my-project/locations/{location}/allocationPolicies/my-policy`.
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1328,7 +1305,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -1340,7 +1321,11 @@ public boolean hasCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { @@ -1358,7 +1343,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1380,7 +1367,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { @@ -1399,7 +1388,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1423,7 +1414,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1443,7 +1436,9 @@ public Builder clearCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { @@ -1457,7 +1452,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { @@ -1475,7 +1472,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1507,7 +1506,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -1519,7 +1522,11 @@ public boolean hasUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1537,7 +1544,9 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1559,7 +1568,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { @@ -1578,7 +1589,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1602,7 +1615,9 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1622,7 +1637,9 @@ public Builder clearUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { @@ -1636,7 +1653,9 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { @@ -1654,7 +1673,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1702,8 +1723,8 @@ public int getLabelsCount() { * * *
-     * The labels associated with the allocation policy. Each label is a key-value
-     * pair.
+     * The labels associated with this game server config. Each label is a
+     * key-value pair.
      * 
* * map<string, string> labels = 4; @@ -1723,8 +1744,8 @@ public java.util.Map getLabels() { * * *
-     * The labels associated with the allocation policy. Each label is a key-value
-     * pair.
+     * The labels associated with this game server config. Each label is a
+     * key-value pair.
      * 
* * map<string, string> labels = 4; @@ -1736,8 +1757,8 @@ public java.util.Map getLabelsMap() { * * *
-     * The labels associated with the allocation policy. Each label is a key-value
-     * pair.
+     * The labels associated with this game server config. Each label is a
+     * key-value pair.
      * 
* * map<string, string> labels = 4; @@ -1754,8 +1775,8 @@ public java.lang.String getLabelsOrDefault( * * *
-     * The labels associated with the allocation policy. Each label is a key-value
-     * pair.
+     * The labels associated with this game server config. Each label is a
+     * key-value pair.
      * 
* * map<string, string> labels = 4; @@ -1779,8 +1800,8 @@ public Builder clearLabels() { * * *
-     * The labels associated with the allocation policy. Each label is a key-value
-     * pair.
+     * The labels associated with this game server config. Each label is a
+     * key-value pair.
      * 
* * map<string, string> labels = 4; @@ -1801,8 +1822,8 @@ public java.util.Map getMutableLabels() { * * *
-     * The labels associated with the allocation policy. Each label is a key-value
-     * pair.
+     * The labels associated with this game server config. Each label is a
+     * key-value pair.
      * 
* * map<string, string> labels = 4; @@ -1821,8 +1842,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * The labels associated with the allocation policy. Each label is a key-value
-     * pair.
+     * The labels associated with this game server config. Each label is a
+     * key-value pair.
      * 
* * map<string, string> labels = 4; @@ -1832,330 +1853,94 @@ public Builder putAllLabels(java.util.Map va return this; } - private com.google.protobuf.Int32Value priority_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, - com.google.protobuf.Int32Value.Builder, - com.google.protobuf.Int32ValueOrBuilder> - priorityBuilder_; - /** - * - * - *
-     * 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 clusterSelectors_ = + private java.util.List fleetConfigs_ = java.util.Collections.emptyList(); - private void ensureClusterSelectorsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - clusterSelectors_ = - new java.util.ArrayList( - clusterSelectors_); - bitField0_ |= 0x00000040; + private void ensureFleetConfigsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + fleetConfigs_ = + new java.util.ArrayList(fleetConfigs_); + bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder> - clusterSelectorsBuilder_; + com.google.cloud.gaming.v1alpha.FleetConfig, + com.google.cloud.gaming.v1alpha.FleetConfig.Builder, + com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder> + fleetConfigsBuilder_; /** * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public java.util.List getClusterSelectorsList() { - if (clusterSelectorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusterSelectors_); + public java.util.List getFleetConfigsList() { + if (fleetConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fleetConfigs_); } else { - return clusterSelectorsBuilder_.getMessageList(); + return fleetConfigsBuilder_.getMessageList(); } } /** * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public int getClusterSelectorsCount() { - if (clusterSelectorsBuilder_ == null) { - return clusterSelectors_.size(); + public int getFleetConfigsCount() { + if (fleetConfigsBuilder_ == null) { + return fleetConfigs_.size(); } else { - return clusterSelectorsBuilder_.getCount(); + return fleetConfigsBuilder_.getCount(); } } /** * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelectors(int index) { - if (clusterSelectorsBuilder_ == null) { - return clusterSelectors_.get(index); + public com.google.cloud.gaming.v1alpha.FleetConfig getFleetConfigs(int index) { + if (fleetConfigsBuilder_ == null) { + return fleetConfigs_.get(index); } else { - return clusterSelectorsBuilder_.getMessage(index); + return fleetConfigsBuilder_.getMessage(index); } } /** * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public Builder setClusterSelectors( - int index, com.google.cloud.gaming.v1alpha.LabelSelector value) { - if (clusterSelectorsBuilder_ == null) { + public Builder setFleetConfigs(int index, com.google.cloud.gaming.v1alpha.FleetConfig value) { + if (fleetConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureClusterSelectorsIsMutable(); - clusterSelectors_.set(index, value); + ensureFleetConfigsIsMutable(); + fleetConfigs_.set(index, value); onChanged(); } else { - clusterSelectorsBuilder_.setMessage(index, value); + fleetConfigsBuilder_.setMessage(index, value); } return this; } @@ -2163,20 +1948,20 @@ public Builder setClusterSelectors( * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public Builder setClusterSelectors( - int index, com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) { - if (clusterSelectorsBuilder_ == null) { - ensureClusterSelectorsIsMutable(); - clusterSelectors_.set(index, builderForValue.build()); + public Builder setFleetConfigs( + int index, com.google.cloud.gaming.v1alpha.FleetConfig.Builder builderForValue) { + if (fleetConfigsBuilder_ == null) { + ensureFleetConfigsIsMutable(); + fleetConfigs_.set(index, builderForValue.build()); onChanged(); } else { - clusterSelectorsBuilder_.setMessage(index, builderForValue.build()); + fleetConfigsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -2184,22 +1969,22 @@ public Builder setClusterSelectors( * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public Builder addClusterSelectors(com.google.cloud.gaming.v1alpha.LabelSelector value) { - if (clusterSelectorsBuilder_ == null) { + public Builder addFleetConfigs(com.google.cloud.gaming.v1alpha.FleetConfig value) { + if (fleetConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureClusterSelectorsIsMutable(); - clusterSelectors_.add(value); + ensureFleetConfigsIsMutable(); + fleetConfigs_.add(value); onChanged(); } else { - clusterSelectorsBuilder_.addMessage(value); + fleetConfigsBuilder_.addMessage(value); } return this; } @@ -2207,23 +1992,22 @@ public Builder addClusterSelectors(com.google.cloud.gaming.v1alpha.LabelSelector * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public Builder addClusterSelectors( - int index, com.google.cloud.gaming.v1alpha.LabelSelector value) { - if (clusterSelectorsBuilder_ == null) { + public Builder addFleetConfigs(int index, com.google.cloud.gaming.v1alpha.FleetConfig value) { + if (fleetConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureClusterSelectorsIsMutable(); - clusterSelectors_.add(index, value); + ensureFleetConfigsIsMutable(); + fleetConfigs_.add(index, value); onChanged(); } else { - clusterSelectorsBuilder_.addMessage(index, value); + fleetConfigsBuilder_.addMessage(index, value); } return this; } @@ -2231,20 +2015,20 @@ public Builder addClusterSelectors( * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public Builder addClusterSelectors( - com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) { - if (clusterSelectorsBuilder_ == null) { - ensureClusterSelectorsIsMutable(); - clusterSelectors_.add(builderForValue.build()); + public Builder addFleetConfigs( + com.google.cloud.gaming.v1alpha.FleetConfig.Builder builderForValue) { + if (fleetConfigsBuilder_ == null) { + ensureFleetConfigsIsMutable(); + fleetConfigs_.add(builderForValue.build()); onChanged(); } else { - clusterSelectorsBuilder_.addMessage(builderForValue.build()); + fleetConfigsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -2252,20 +2036,20 @@ public Builder addClusterSelectors( * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public Builder addClusterSelectors( - int index, com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) { - if (clusterSelectorsBuilder_ == null) { - ensureClusterSelectorsIsMutable(); - clusterSelectors_.add(index, builderForValue.build()); + public Builder addFleetConfigs( + int index, com.google.cloud.gaming.v1alpha.FleetConfig.Builder builderForValue) { + if (fleetConfigsBuilder_ == null) { + ensureFleetConfigsIsMutable(); + fleetConfigs_.add(index, builderForValue.build()); onChanged(); } else { - clusterSelectorsBuilder_.addMessage(index, builderForValue.build()); + fleetConfigsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -2273,20 +2057,20 @@ public Builder addClusterSelectors( * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public Builder addAllClusterSelectors( - java.lang.Iterable values) { - if (clusterSelectorsBuilder_ == null) { - ensureClusterSelectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterSelectors_); + public Builder addAllFleetConfigs( + java.lang.Iterable values) { + if (fleetConfigsBuilder_ == null) { + ensureFleetConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fleetConfigs_); onChanged(); } else { - clusterSelectorsBuilder_.addAllMessages(values); + fleetConfigsBuilder_.addAllMessages(values); } return this; } @@ -2294,19 +2078,19 @@ public Builder addAllClusterSelectors( * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public Builder clearClusterSelectors() { - if (clusterSelectorsBuilder_ == null) { - clusterSelectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + public Builder clearFleetConfigs() { + if (fleetConfigsBuilder_ == null) { + fleetConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { - clusterSelectorsBuilder_.clear(); + fleetConfigsBuilder_.clear(); } return this; } @@ -2314,19 +2098,19 @@ public Builder clearClusterSelectors() { * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public Builder removeClusterSelectors(int index) { - if (clusterSelectorsBuilder_ == null) { - ensureClusterSelectorsIsMutable(); - clusterSelectors_.remove(index); + public Builder removeFleetConfigs(int index) { + if (fleetConfigsBuilder_ == null) { + ensureFleetConfigsIsMutable(); + fleetConfigs_.remove(index); onChanged(); } else { - clusterSelectorsBuilder_.remove(index); + fleetConfigsBuilder_.remove(index); } return this; } @@ -2334,203 +2118,196 @@ public Builder removeClusterSelectors(int index) { * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public com.google.cloud.gaming.v1alpha.LabelSelector.Builder getClusterSelectorsBuilder( - int index) { - return getClusterSelectorsFieldBuilder().getBuilder(index); + public com.google.cloud.gaming.v1alpha.FleetConfig.Builder getFleetConfigsBuilder(int index) { + return getFleetConfigsFieldBuilder().getBuilder(index); } /** * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorsOrBuilder( + public com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder getFleetConfigsOrBuilder( int index) { - if (clusterSelectorsBuilder_ == null) { - return clusterSelectors_.get(index); + if (fleetConfigsBuilder_ == null) { + return fleetConfigs_.get(index); } else { - return clusterSelectorsBuilder_.getMessageOrBuilder(index); + return fleetConfigsBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public java.util.List - getClusterSelectorsOrBuilderList() { - if (clusterSelectorsBuilder_ != null) { - return clusterSelectorsBuilder_.getMessageOrBuilderList(); + public java.util.List + getFleetConfigsOrBuilderList() { + if (fleetConfigsBuilder_ != null) { + return fleetConfigsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(clusterSelectors_); + return java.util.Collections.unmodifiableList(fleetConfigs_); } } /** * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addClusterSelectorsBuilder() { - return getClusterSelectorsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()); + public com.google.cloud.gaming.v1alpha.FleetConfig.Builder addFleetConfigsBuilder() { + return getFleetConfigsFieldBuilder() + .addBuilder(com.google.cloud.gaming.v1alpha.FleetConfig.getDefaultInstance()); } /** * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addClusterSelectorsBuilder( - int index) { - return getClusterSelectorsFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()); + public com.google.cloud.gaming.v1alpha.FleetConfig.Builder addFleetConfigsBuilder(int index) { + return getFleetConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.gaming.v1alpha.FleetConfig.getDefaultInstance()); } /** * * *
-     * The cluster labels are used to identify the clusters that a policy is
-     * applied to.
+     * The fleet specs contains a list of fleet specs. For Single Cloud, only
+     * one fleet config is allowed.
      * 
* - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 10; + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; */ - public java.util.List - getClusterSelectorsBuilderList() { - return getClusterSelectorsFieldBuilder().getBuilderList(); + public java.util.List + getFleetConfigsBuilderList() { + return getFleetConfigsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder> - getClusterSelectorsFieldBuilder() { - if (clusterSelectorsBuilder_ == null) { - clusterSelectorsBuilder_ = + com.google.cloud.gaming.v1alpha.FleetConfig, + com.google.cloud.gaming.v1alpha.FleetConfig.Builder, + com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder> + getFleetConfigsFieldBuilder() { + if (fleetConfigsBuilder_ == null) { + fleetConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder>( - clusterSelectors_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - clusterSelectors_ = null; + com.google.cloud.gaming.v1alpha.FleetConfig, + com.google.cloud.gaming.v1alpha.FleetConfig.Builder, + com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder>( + fleetConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + fleetConfigs_ = null; } - return clusterSelectorsBuilder_; + return fleetConfigsBuilder_; } - private java.util.List schedules_ = + private java.util.List scalingConfigs_ = java.util.Collections.emptyList(); - private void ensureSchedulesIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - schedules_ = new java.util.ArrayList(schedules_); - bitField0_ |= 0x00000080; + private void ensureScalingConfigsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + scalingConfigs_ = + new java.util.ArrayList(scalingConfigs_); + bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Schedule, - com.google.cloud.gaming.v1alpha.Schedule.Builder, - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder> - schedulesBuilder_; + com.google.cloud.gaming.v1alpha.ScalingConfig, + com.google.cloud.gaming.v1alpha.ScalingConfig.Builder, + com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder> + scalingConfigsBuilder_; /** * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public java.util.List getSchedulesList() { - if (schedulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(schedules_); + public java.util.List getScalingConfigsList() { + if (scalingConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(scalingConfigs_); } else { - return schedulesBuilder_.getMessageList(); + return scalingConfigsBuilder_.getMessageList(); } } /** * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public int getSchedulesCount() { - if (schedulesBuilder_ == null) { - return schedules_.size(); + public int getScalingConfigsCount() { + if (scalingConfigsBuilder_ == null) { + return scalingConfigs_.size(); } else { - return schedulesBuilder_.getCount(); + return scalingConfigsBuilder_.getCount(); } } /** * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index) { - if (schedulesBuilder_ == null) { - return schedules_.get(index); + public com.google.cloud.gaming.v1alpha.ScalingConfig getScalingConfigs(int index) { + if (scalingConfigsBuilder_ == null) { + return scalingConfigs_.get(index); } else { - return schedulesBuilder_.getMessage(index); + return scalingConfigsBuilder_.getMessage(index); } } /** * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public Builder setSchedules(int index, com.google.cloud.gaming.v1alpha.Schedule value) { - if (schedulesBuilder_ == null) { + public Builder setScalingConfigs( + int index, com.google.cloud.gaming.v1alpha.ScalingConfig value) { + if (scalingConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSchedulesIsMutable(); - schedules_.set(index, value); + ensureScalingConfigsIsMutable(); + scalingConfigs_.set(index, value); onChanged(); } else { - schedulesBuilder_.setMessage(index, value); + scalingConfigsBuilder_.setMessage(index, value); } return this; } @@ -2538,20 +2315,19 @@ public Builder setSchedules(int index, com.google.cloud.gaming.v1alpha.Schedule * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public Builder setSchedules( - int index, com.google.cloud.gaming.v1alpha.Schedule.Builder builderForValue) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.set(index, builderForValue.build()); + public Builder setScalingConfigs( + int index, com.google.cloud.gaming.v1alpha.ScalingConfig.Builder builderForValue) { + if (scalingConfigsBuilder_ == null) { + ensureScalingConfigsIsMutable(); + scalingConfigs_.set(index, builderForValue.build()); onChanged(); } else { - schedulesBuilder_.setMessage(index, builderForValue.build()); + scalingConfigsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -2559,22 +2335,21 @@ public Builder setSchedules( * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public Builder addSchedules(com.google.cloud.gaming.v1alpha.Schedule value) { - if (schedulesBuilder_ == null) { + public Builder addScalingConfigs(com.google.cloud.gaming.v1alpha.ScalingConfig value) { + if (scalingConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSchedulesIsMutable(); - schedules_.add(value); + ensureScalingConfigsIsMutable(); + scalingConfigs_.add(value); onChanged(); } else { - schedulesBuilder_.addMessage(value); + scalingConfigsBuilder_.addMessage(value); } return this; } @@ -2582,22 +2357,22 @@ public Builder addSchedules(com.google.cloud.gaming.v1alpha.Schedule value) { * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public Builder addSchedules(int index, com.google.cloud.gaming.v1alpha.Schedule value) { - if (schedulesBuilder_ == null) { + public Builder addScalingConfigs( + int index, com.google.cloud.gaming.v1alpha.ScalingConfig value) { + if (scalingConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSchedulesIsMutable(); - schedules_.add(index, value); + ensureScalingConfigsIsMutable(); + scalingConfigs_.add(index, value); onChanged(); } else { - schedulesBuilder_.addMessage(index, value); + scalingConfigsBuilder_.addMessage(index, value); } return this; } @@ -2605,19 +2380,19 @@ public Builder addSchedules(int index, com.google.cloud.gaming.v1alpha.Schedule * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public Builder addSchedules(com.google.cloud.gaming.v1alpha.Schedule.Builder builderForValue) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.add(builderForValue.build()); + public Builder addScalingConfigs( + com.google.cloud.gaming.v1alpha.ScalingConfig.Builder builderForValue) { + if (scalingConfigsBuilder_ == null) { + ensureScalingConfigsIsMutable(); + scalingConfigs_.add(builderForValue.build()); onChanged(); } else { - schedulesBuilder_.addMessage(builderForValue.build()); + scalingConfigsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -2625,20 +2400,19 @@ public Builder addSchedules(com.google.cloud.gaming.v1alpha.Schedule.Builder bui * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public Builder addSchedules( - int index, com.google.cloud.gaming.v1alpha.Schedule.Builder builderForValue) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.add(index, builderForValue.build()); + public Builder addScalingConfigs( + int index, com.google.cloud.gaming.v1alpha.ScalingConfig.Builder builderForValue) { + if (scalingConfigsBuilder_ == null) { + ensureScalingConfigsIsMutable(); + scalingConfigs_.add(index, builderForValue.build()); onChanged(); } else { - schedulesBuilder_.addMessage(index, builderForValue.build()); + scalingConfigsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -2646,20 +2420,19 @@ public Builder addSchedules( * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public Builder addAllSchedules( - java.lang.Iterable values) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schedules_); + public Builder addAllScalingConfigs( + java.lang.Iterable values) { + if (scalingConfigsBuilder_ == null) { + ensureScalingConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scalingConfigs_); onChanged(); } else { - schedulesBuilder_.addAllMessages(values); + scalingConfigsBuilder_.addAllMessages(values); } return this; } @@ -2667,19 +2440,18 @@ public Builder addAllSchedules( * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public Builder clearSchedules() { - if (schedulesBuilder_ == null) { - schedules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + public Builder clearScalingConfigs() { + if (scalingConfigsBuilder_ == null) { + scalingConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { - schedulesBuilder_.clear(); + scalingConfigsBuilder_.clear(); } return this; } @@ -2687,19 +2459,18 @@ public Builder clearSchedules() { * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public Builder removeSchedules(int index) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.remove(index); + public Builder removeScalingConfigs(int index) { + if (scalingConfigsBuilder_ == null) { + ensureScalingConfigsIsMutable(); + scalingConfigs_.remove(index); onChanged(); } else { - schedulesBuilder_.remove(index); + scalingConfigsBuilder_.remove(index); } return this; } @@ -2707,108 +2478,214 @@ public Builder removeSchedules(int index) { * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public com.google.cloud.gaming.v1alpha.Schedule.Builder getSchedulesBuilder(int index) { - return getSchedulesFieldBuilder().getBuilder(index); + public com.google.cloud.gaming.v1alpha.ScalingConfig.Builder getScalingConfigsBuilder( + int index) { + return getScalingConfigsFieldBuilder().getBuilder(index); } /** * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index) { - if (schedulesBuilder_ == null) { - return schedules_.get(index); + public com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder getScalingConfigsOrBuilder( + int index) { + if (scalingConfigsBuilder_ == null) { + return scalingConfigs_.get(index); } else { - return schedulesBuilder_.getMessageOrBuilder(index); + return scalingConfigsBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public java.util.List - getSchedulesOrBuilderList() { - if (schedulesBuilder_ != null) { - return schedulesBuilder_.getMessageOrBuilderList(); + public java.util.List + getScalingConfigsOrBuilderList() { + if (scalingConfigsBuilder_ != null) { + return scalingConfigsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(schedules_); + return java.util.Collections.unmodifiableList(scalingConfigs_); } } /** * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder() { - return getSchedulesFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance()); + public com.google.cloud.gaming.v1alpha.ScalingConfig.Builder addScalingConfigsBuilder() { + return getScalingConfigsFieldBuilder() + .addBuilder(com.google.cloud.gaming.v1alpha.ScalingConfig.getDefaultInstance()); } /** * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder(int index) { - return getSchedulesFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance()); + public com.google.cloud.gaming.v1alpha.ScalingConfig.Builder addScalingConfigsBuilder( + int index) { + return getScalingConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.gaming.v1alpha.ScalingConfig.getDefaultInstance()); } /** * * *
-     * The event schedules - If specified, the policy is time based and when the
-     * schedule is effective overrides the default policy.
+     * The autoscaling settings for Agones fleet.
      * 
* - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 11; + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; */ - public java.util.List - getSchedulesBuilderList() { - return getSchedulesFieldBuilder().getBuilderList(); + public java.util.List + getScalingConfigsBuilderList() { + return getScalingConfigsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Schedule, - com.google.cloud.gaming.v1alpha.Schedule.Builder, - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder> - getSchedulesFieldBuilder() { - if (schedulesBuilder_ == null) { - schedulesBuilder_ = + com.google.cloud.gaming.v1alpha.ScalingConfig, + com.google.cloud.gaming.v1alpha.ScalingConfig.Builder, + com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder> + getScalingConfigsFieldBuilder() { + if (scalingConfigsBuilder_ == null) { + scalingConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Schedule, - com.google.cloud.gaming.v1alpha.Schedule.Builder, - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder>( - schedules_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); - schedules_ = null; + com.google.cloud.gaming.v1alpha.ScalingConfig, + com.google.cloud.gaming.v1alpha.ScalingConfig.Builder, + com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder>( + scalingConfigs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + scalingConfigs_ = null; } - return schedulesBuilder_; + return scalingConfigsBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * The description of the game server config.
+     * 
+ * + * string description = 7; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The description of the game server config.
+     * 
+ * + * string description = 7; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The description of the game server config.
+     * 
+ * + * string description = 7; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the game server config.
+     * 
+ * + * string description = 7; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the game server config.
+     * 
+ * + * string description = 7; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; } @java.lang.Override @@ -2822,42 +2699,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.AllocationPolicy) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GameServerConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.AllocationPolicy) - private static final com.google.cloud.gaming.v1alpha.AllocationPolicy DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerConfig) + private static final com.google.cloud.gaming.v1alpha.GameServerConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.AllocationPolicy(); + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerConfig(); } - public static com.google.cloud.gaming.v1alpha.AllocationPolicy getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.GameServerConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AllocationPolicy parsePartialFrom( + public GameServerConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AllocationPolicy(input, extensionRegistry); + return new GameServerConfig(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.AllocationPolicy getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.GameServerConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOrBuilder.java new file mode 100644 index 00000000..2722c5ea --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOrBuilder.java @@ -0,0 +1,325 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_configs.proto + +package com.google.cloud.gaming.v1alpha; + +public interface GameServerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the game server config, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
+   * For example,
+   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the game server config, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
+   * For example,
+   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The labels associated with this game server config. Each label is a
+   * key-value pair.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels associated with this game server config. 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 getLabels(); + /** + * + * + *
+   * The labels associated with this game server config. Each label is a
+   * key-value pair.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels associated with this game server config. 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 this game server config. Each label is a
+   * key-value pair.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; + */ + java.util.List getFleetConfigsList(); + /** + * + * + *
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; + */ + com.google.cloud.gaming.v1alpha.FleetConfig getFleetConfigs(int index); + /** + * + * + *
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; + */ + int getFleetConfigsCount(); + /** + * + * + *
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; + */ + java.util.List + getFleetConfigsOrBuilderList(); + /** + * + * + *
+   * The fleet specs contains a list of fleet specs. For Single Cloud, only
+   * one fleet config is allowed.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.FleetConfig fleet_configs = 5; + */ + com.google.cloud.gaming.v1alpha.FleetConfigOrBuilder getFleetConfigsOrBuilder(int index); + + /** + * + * + *
+   * The autoscaling settings for Agones fleet.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; + */ + java.util.List getScalingConfigsList(); + /** + * + * + *
+   * The autoscaling settings for Agones fleet.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; + */ + com.google.cloud.gaming.v1alpha.ScalingConfig getScalingConfigs(int index); + /** + * + * + *
+   * The autoscaling settings for Agones fleet.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; + */ + int getScalingConfigsCount(); + /** + * + * + *
+   * The autoscaling settings for Agones fleet.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; + */ + java.util.List + getScalingConfigsOrBuilderList(); + /** + * + * + *
+   * The autoscaling settings for Agones fleet.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.ScalingConfig scaling_configs = 6; + */ + com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder getScalingConfigsOrBuilder(int index); + + /** + * + * + *
+   * The description of the game server config.
+   * 
+ * + * string description = 7; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * The description of the game server config.
+   * 
+ * + * string description = 7; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverride.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverride.java new file mode 100644 index 00000000..a5b791af --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverride.java @@ -0,0 +1,1110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * A game server config override.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerConfigOverride} + */ +public final class GameServerConfigOverride extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerConfigOverride) + GameServerConfigOverrideOrBuilder { + private static final long serialVersionUID = 0L; + // Use GameServerConfigOverride.newBuilder() to construct. + private GameServerConfigOverride(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GameServerConfigOverride() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GameServerConfigOverride(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GameServerConfigOverride( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.RealmSelector.Builder subBuilder = null; + if (selectorCase_ == 1) { + subBuilder = + ((com.google.cloud.gaming.v1alpha.RealmSelector) selector_).toBuilder(); + } + selector_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.RealmSelector.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gaming.v1alpha.RealmSelector) selector_); + selector_ = subBuilder.buildPartial(); + } + selectorCase_ = 1; + break; + } + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + changeCase_ = 100; + change_ = 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_GameServerConfigOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.class, + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder.class); + } + + private int selectorCase_ = 0; + private java.lang.Object selector_; + + public enum SelectorCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + REALMS_SELECTOR(1), + SELECTOR_NOT_SET(0); + private final int value; + + private SelectorCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SelectorCase valueOf(int value) { + return forNumber(value); + } + + public static SelectorCase forNumber(int value) { + switch (value) { + case 1: + return REALMS_SELECTOR; + case 0: + return SELECTOR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SelectorCase getSelectorCase() { + return SelectorCase.forNumber(selectorCase_); + } + + private int changeCase_ = 0; + private java.lang.Object change_; + + public enum ChangeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONFIG_VERSION(100), + CHANGE_NOT_SET(0); + private final int value; + + private ChangeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ChangeCase valueOf(int value) { + return forNumber(value); + } + + public static ChangeCase forNumber(int value) { + switch (value) { + case 100: + return CONFIG_VERSION; + case 0: + return CHANGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ChangeCase getChangeCase() { + return ChangeCase.forNumber(changeCase_); + } + + public static final int REALMS_SELECTOR_FIELD_NUMBER = 1; + /** + * + * + *
+   * Selector for choosing applicable realms.
+   * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + * + * @return Whether the realmsSelector field is set. + */ + public boolean hasRealmsSelector() { + return selectorCase_ == 1; + } + /** + * + * + *
+   * Selector for choosing applicable realms.
+   * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + * + * @return The realmsSelector. + */ + public com.google.cloud.gaming.v1alpha.RealmSelector getRealmsSelector() { + if (selectorCase_ == 1) { + return (com.google.cloud.gaming.v1alpha.RealmSelector) selector_; + } + return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); + } + /** + * + * + *
+   * Selector for choosing applicable realms.
+   * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + */ + public com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder getRealmsSelectorOrBuilder() { + if (selectorCase_ == 1) { + return (com.google.cloud.gaming.v1alpha.RealmSelector) selector_; + } + return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); + } + + public static final int CONFIG_VERSION_FIELD_NUMBER = 100; + /** + * + * + *
+   * The game server config for this override.
+   * 
+ * + * string config_version = 100; + * + * @return The configVersion. + */ + public java.lang.String getConfigVersion() { + java.lang.Object ref = ""; + if (changeCase_ == 100) { + ref = change_; + } + 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(); + if (changeCase_ == 100) { + change_ = s; + } + return s; + } + } + /** + * + * + *
+   * The game server config for this override.
+   * 
+ * + * string config_version = 100; + * + * @return The bytes for configVersion. + */ + public com.google.protobuf.ByteString getConfigVersionBytes() { + java.lang.Object ref = ""; + if (changeCase_ == 100) { + ref = change_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (changeCase_ == 100) { + change_ = 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 (selectorCase_ == 1) { + output.writeMessage(1, (com.google.cloud.gaming.v1alpha.RealmSelector) selector_); + } + if (changeCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, change_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (selectorCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.gaming.v1alpha.RealmSelector) selector_); + } + if (changeCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, change_); + } + 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.GameServerConfigOverride)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.GameServerConfigOverride other = + (com.google.cloud.gaming.v1alpha.GameServerConfigOverride) obj; + + if (!getSelectorCase().equals(other.getSelectorCase())) return false; + switch (selectorCase_) { + case 1: + if (!getRealmsSelector().equals(other.getRealmsSelector())) return false; + break; + case 0: + default: + } + if (!getChangeCase().equals(other.getChangeCase())) return false; + switch (changeCase_) { + case 100: + if (!getConfigVersion().equals(other.getConfigVersion())) return false; + break; + case 0: + default: + } + 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(); + switch (selectorCase_) { + case 1: + hash = (37 * hash) + REALMS_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getRealmsSelector().hashCode(); + break; + case 0: + default: + } + switch (changeCase_) { + case 100: + hash = (37 * hash) + CONFIG_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getConfigVersion().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride 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.GameServerConfigOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride 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.GameServerConfigOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride 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.GameServerConfigOverride parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride 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.GameServerConfigOverride parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride 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.GameServerConfigOverride 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.GameServerConfigOverride 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.GameServerConfigOverride 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; + } + /** + * + * + *
+   * A game server config override.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerConfigOverride} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerConfigOverride) + com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.class, + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.GameServerConfigOverride.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + selectorCase_ = 0; + selector_ = null; + changeCase_ = 0; + change_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.GameServerConfigOverride.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride build() { + com.google.cloud.gaming.v1alpha.GameServerConfigOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride buildPartial() { + com.google.cloud.gaming.v1alpha.GameServerConfigOverride result = + new com.google.cloud.gaming.v1alpha.GameServerConfigOverride(this); + if (selectorCase_ == 1) { + if (realmsSelectorBuilder_ == null) { + result.selector_ = selector_; + } else { + result.selector_ = realmsSelectorBuilder_.build(); + } + } + if (changeCase_ == 100) { + result.change_ = change_; + } + result.selectorCase_ = selectorCase_; + result.changeCase_ = changeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.GameServerConfigOverride) { + return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerConfigOverride) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerConfigOverride other) { + if (other == com.google.cloud.gaming.v1alpha.GameServerConfigOverride.getDefaultInstance()) + return this; + switch (other.getSelectorCase()) { + case REALMS_SELECTOR: + { + mergeRealmsSelector(other.getRealmsSelector()); + break; + } + case SELECTOR_NOT_SET: + { + break; + } + } + switch (other.getChangeCase()) { + case CONFIG_VERSION: + { + changeCase_ = 100; + change_ = other.change_; + onChanged(); + break; + } + case CHANGE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.GameServerConfigOverride parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.GameServerConfigOverride) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int selectorCase_ = 0; + private java.lang.Object selector_; + + public SelectorCase getSelectorCase() { + return SelectorCase.forNumber(selectorCase_); + } + + public Builder clearSelector() { + selectorCase_ = 0; + selector_ = null; + onChanged(); + return this; + } + + private int changeCase_ = 0; + private java.lang.Object change_; + + public ChangeCase getChangeCase() { + return ChangeCase.forNumber(changeCase_); + } + + public Builder clearChange() { + changeCase_ = 0; + change_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.RealmSelector, + com.google.cloud.gaming.v1alpha.RealmSelector.Builder, + com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder> + realmsSelectorBuilder_; + /** + * + * + *
+     * Selector for choosing applicable realms.
+     * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + * + * @return Whether the realmsSelector field is set. + */ + public boolean hasRealmsSelector() { + return selectorCase_ == 1; + } + /** + * + * + *
+     * Selector for choosing applicable realms.
+     * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + * + * @return The realmsSelector. + */ + public com.google.cloud.gaming.v1alpha.RealmSelector getRealmsSelector() { + if (realmsSelectorBuilder_ == null) { + if (selectorCase_ == 1) { + return (com.google.cloud.gaming.v1alpha.RealmSelector) selector_; + } + return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); + } else { + if (selectorCase_ == 1) { + return realmsSelectorBuilder_.getMessage(); + } + return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); + } + } + /** + * + * + *
+     * Selector for choosing applicable realms.
+     * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + */ + public Builder setRealmsSelector(com.google.cloud.gaming.v1alpha.RealmSelector value) { + if (realmsSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + selector_ = value; + onChanged(); + } else { + realmsSelectorBuilder_.setMessage(value); + } + selectorCase_ = 1; + return this; + } + /** + * + * + *
+     * Selector for choosing applicable realms.
+     * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + */ + public Builder setRealmsSelector( + com.google.cloud.gaming.v1alpha.RealmSelector.Builder builderForValue) { + if (realmsSelectorBuilder_ == null) { + selector_ = builderForValue.build(); + onChanged(); + } else { + realmsSelectorBuilder_.setMessage(builderForValue.build()); + } + selectorCase_ = 1; + return this; + } + /** + * + * + *
+     * Selector for choosing applicable realms.
+     * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + */ + public Builder mergeRealmsSelector(com.google.cloud.gaming.v1alpha.RealmSelector value) { + if (realmsSelectorBuilder_ == null) { + if (selectorCase_ == 1 + && selector_ != com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance()) { + selector_ = + com.google.cloud.gaming.v1alpha.RealmSelector.newBuilder( + (com.google.cloud.gaming.v1alpha.RealmSelector) selector_) + .mergeFrom(value) + .buildPartial(); + } else { + selector_ = value; + } + onChanged(); + } else { + if (selectorCase_ == 1) { + realmsSelectorBuilder_.mergeFrom(value); + } + realmsSelectorBuilder_.setMessage(value); + } + selectorCase_ = 1; + return this; + } + /** + * + * + *
+     * Selector for choosing applicable realms.
+     * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + */ + public Builder clearRealmsSelector() { + if (realmsSelectorBuilder_ == null) { + if (selectorCase_ == 1) { + selectorCase_ = 0; + selector_ = null; + onChanged(); + } + } else { + if (selectorCase_ == 1) { + selectorCase_ = 0; + selector_ = null; + } + realmsSelectorBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Selector for choosing applicable realms.
+     * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + */ + public com.google.cloud.gaming.v1alpha.RealmSelector.Builder getRealmsSelectorBuilder() { + return getRealmsSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Selector for choosing applicable realms.
+     * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + */ + public com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder getRealmsSelectorOrBuilder() { + if ((selectorCase_ == 1) && (realmsSelectorBuilder_ != null)) { + return realmsSelectorBuilder_.getMessageOrBuilder(); + } else { + if (selectorCase_ == 1) { + return (com.google.cloud.gaming.v1alpha.RealmSelector) selector_; + } + return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); + } + } + /** + * + * + *
+     * Selector for choosing applicable realms.
+     * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.RealmSelector, + com.google.cloud.gaming.v1alpha.RealmSelector.Builder, + com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder> + getRealmsSelectorFieldBuilder() { + if (realmsSelectorBuilder_ == null) { + if (!(selectorCase_ == 1)) { + selector_ = com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); + } + realmsSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.RealmSelector, + com.google.cloud.gaming.v1alpha.RealmSelector.Builder, + com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder>( + (com.google.cloud.gaming.v1alpha.RealmSelector) selector_, + getParentForChildren(), + isClean()); + selector_ = null; + } + selectorCase_ = 1; + onChanged(); + ; + return realmsSelectorBuilder_; + } + + /** + * + * + *
+     * The game server config for this override.
+     * 
+ * + * string config_version = 100; + * + * @return The configVersion. + */ + public java.lang.String getConfigVersion() { + java.lang.Object ref = ""; + if (changeCase_ == 100) { + ref = change_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (changeCase_ == 100) { + change_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The game server config for this override.
+     * 
+ * + * string config_version = 100; + * + * @return The bytes for configVersion. + */ + public com.google.protobuf.ByteString getConfigVersionBytes() { + java.lang.Object ref = ""; + if (changeCase_ == 100) { + ref = change_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (changeCase_ == 100) { + change_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The game server config for this override.
+     * 
+ * + * string config_version = 100; + * + * @param value The configVersion to set. + * @return This builder for chaining. + */ + public Builder setConfigVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + changeCase_ = 100; + change_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The game server config for this override.
+     * 
+ * + * string config_version = 100; + * + * @return This builder for chaining. + */ + public Builder clearConfigVersion() { + if (changeCase_ == 100) { + changeCase_ = 0; + change_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The game server config for this override.
+     * 
+ * + * string config_version = 100; + * + * @param value The bytes for configVersion to set. + * @return This builder for chaining. + */ + public Builder setConfigVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + changeCase_ = 100; + change_ = 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.GameServerConfigOverride) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerConfigOverride) + private static final com.google.cloud.gaming.v1alpha.GameServerConfigOverride DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerConfigOverride(); + } + + public static com.google.cloud.gaming.v1alpha.GameServerConfigOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GameServerConfigOverride parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GameServerConfigOverride(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverrideOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverrideOrBuilder.java new file mode 100644 index 00000000..51082e4f --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverrideOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto + +package com.google.cloud.gaming.v1alpha; + +public interface GameServerConfigOverrideOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerConfigOverride) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Selector for choosing applicable realms.
+   * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + * + * @return Whether the realmsSelector field is set. + */ + boolean hasRealmsSelector(); + /** + * + * + *
+   * Selector for choosing applicable realms.
+   * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + * + * @return The realmsSelector. + */ + com.google.cloud.gaming.v1alpha.RealmSelector getRealmsSelector(); + /** + * + * + *
+   * Selector for choosing applicable realms.
+   * 
+ * + * .google.cloud.gaming.v1alpha.RealmSelector realms_selector = 1; + */ + com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder getRealmsSelectorOrBuilder(); + + /** + * + * + *
+   * The game server config for this override.
+   * 
+ * + * string config_version = 100; + * + * @return The configVersion. + */ + java.lang.String getConfigVersion(); + /** + * + * + *
+   * The game server config for this override.
+   * 
+ * + * string config_version = 100; + * + * @return The bytes for configVersion. + */ + com.google.protobuf.ByteString getConfigVersionBytes(); + + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.SelectorCase getSelectorCase(); + + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.ChangeCase getChangeCase(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigs.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigs.java new file mode 100644 index 00000000..6f2abff1 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigs.java @@ -0,0 +1,231 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_configs.proto + +package com.google.cloud.gaming.v1alpha; + +public final class GameServerConfigs { + private GameServerConfigs() {} + + 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_ListGameServerConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_ScalingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_FleetConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/gaming/v1alpha/game_serve" + + "r_configs.proto\022\033google.cloud.gaming.v1a" + + "lpha\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032(google/cloud/g" + + "aming/v1alpha/common.proto\032\037google/proto" + + "buf/timestamp.proto\032\034google/api/annotati" + + "ons.proto\"\301\001\n\034ListGameServerConfigsReque" + + "st\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,gameservices" + + ".googleapis.com/GameServerConfig\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" + + "\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\t" + + "B\003\340A\001\"\274\001\n\035ListGameServerConfigsResponse\022" + + "J\n\023game_server_configs\030\001 \003(\0132-.google.cl" + + "oud.gaming.v1alpha.GameServerConfig\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022!\n\025unreachable_loca" + + "tions\030\003 \003(\tB\002\030\001\022\023\n\013unreachable\030\004 \003(\t\"`\n\032" + + "GetGameServerConfigRequest\022B\n\004name\030\001 \001(\t" + + "B4\340A\002\372A.\n,gameservices.googleapis.com/Ga" + + "meServerConfig\"\315\001\n\035CreateGameServerConfi" + + "gRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,gamese" + + "rvices.googleapis.com/GameServerConfig\022\026" + + "\n\tconfig_id\030\002 \001(\tB\003\340A\002\022N\n\022game_server_co" + + "nfig\030\003 \001(\0132-.google.cloud.gaming.v1alpha" + + ".GameServerConfigB\003\340A\002\"c\n\035DeleteGameServ" + + "erConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,g" + + "ameservices.googleapis.com/GameServerCon" + + "fig\"\277\001\n\rScalingConfig\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022\"\n\025fleet_autoscaler_spec\030\002 \001(\tB\003\340A\002\022=\n\t" + + "selectors\030\004 \003(\0132*.google.cloud.gaming.v1" + + "alpha.LabelSelector\0228\n\tschedules\030\005 \003(\0132%" + + ".google.cloud.gaming.v1alpha.Schedule\"/\n" + + "\013FleetConfig\022\022\n\nfleet_spec\030\001 \001(\t\022\014\n\004name" + + "\030\002 \001(\t\"\263\004\n\020GameServerConfig\022\014\n\004name\030\001 \001(" + + "\t\0224\n\013create_time\030\002 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022I\n\006labels\030" + + "\004 \003(\01329.google.cloud.gaming.v1alpha.Game" + + "ServerConfig.LabelsEntry\022?\n\rfleet_config" + + "s\030\005 \003(\0132(.google.cloud.gaming.v1alpha.Fl" + + "eetConfig\022C\n\017scaling_configs\030\006 \003(\0132*.goo" + + "gle.cloud.gaming.v1alpha.ScalingConfig\022\023" + + "\n\013description\030\007 \001(\t\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\217\001\352A\213\001\n,games" + + "ervices.googleapis.com/GameServerConfig\022" + + "[projects/{project}/locations/{location}" + + "/gameServerDeployments/{deployment}/conf" + + "igs/{config}Bf\n\037com.google.cloud.gaming." + + "v1alphaP\001ZAgoogle.golang.org/genproto/go" + + "ogleapis/cloud/gaming/v1alpha;gamingb\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gaming.v1alpha.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor, + new java.lang.String[] { + "GameServerConfigs", "NextPageToken", "UnreachableLocations", "Unreachable", + }); + internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_CreateGameServerConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "ConfigId", "GameServerConfig", + }); + internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_DeleteGameServerConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gaming_v1alpha_ScalingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor, + new java.lang.String[] { + "Name", "FleetAutoscalerSpec", "Selectors", "Schedules", + }); + internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gaming_v1alpha_FleetConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_FleetConfig_descriptor, + new java.lang.String[] { + "FleetSpec", "Name", + }); + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "FleetConfigs", + "ScalingConfigs", + "Description", + }); + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_descriptor = + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_GameServerConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gaming.v1alpha.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceOuterClass.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceOuterClass.java new file mode 100644 index 00000000..9c01fae2 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceOuterClass.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_configs_service.proto + +package com.google.cloud.gaming.v1alpha; + +public final class GameServerConfigsServiceOuterClass { + private GameServerConfigsServiceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/game_serve" + + "r_configs_service.proto\022\033google.cloud.ga" + + "ming.v1alpha\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\0325google/clou" + + "d/gaming/v1alpha/game_server_configs.pro" + + "to\032#google/longrunning/operations.proto2" + + "\310\010\n\030GameServerConfigsService\022\351\001\n\025ListGam" + + "eServerConfigs\0229.google.cloud.gaming.v1a" + + "lpha.ListGameServerConfigsRequest\032:.goog" + + "le.cloud.gaming.v1alpha.ListGameServerCo" + + "nfigsResponse\"Y\202\323\344\223\002J\022H/v1alpha/{parent=" + + "projects/*/locations/*/gameServerDeploym" + + "ents/*}/configs\332A\006parent\022\326\001\n\023GetGameServ" + + "erConfig\0227.google.cloud.gaming.v1alpha.G" + + "etGameServerConfigRequest\032-.google.cloud" + + ".gaming.v1alpha.GameServerConfig\"W\202\323\344\223\002J" + + "\022H/v1alpha/{name=projects/*/locations/*/" + + "gameServerDeployments/*/configs/*}\332A\004nam" + + "e\022\236\002\n\026CreateGameServerConfig\022:.google.cl" + + "oud.gaming.v1alpha.CreateGameServerConfi" + + "gRequest\032\035.google.longrunning.Operation\"" + + "\250\001\202\323\344\223\002^\"H/v1alpha/{parent=projects/*/lo" + + "cations/*/gameServerDeployments/*}/confi" + + "gs:\022game_server_config\332A\031parent,game_ser" + + "ver_config\312A%\n\020GameServerConfig\022\021Operati" + + "onMetadata\022\364\001\n\026DeleteGameServerConfig\022:." + + "google.cloud.gaming.v1alpha.DeleteGameSe" + + "rverConfigRequest\032\035.google.longrunning.O" + + "peration\"\177\202\323\344\223\002J*H/v1alpha/{name=project" + + "s/*/locations/*/gameServerDeployments/*/" + + "configs/*}\332A\004name\312A%\n\020GameServerConfig\022\021" + + "OperationMetadata\032O\312A\033gameservices.googl" + + "eapis.com\322A.https://www.googleapis.com/a" + + "uth/cloud-platformBf\n\037com.google.cloud.g" + + "aming.v1alphaP\001ZAgoogle.golang.org/genpr" + + "oto/googleapis/cloud/gaming/v1alpha;gami" + + "ngb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.gaming.v1alpha.GameServerConfigs.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.gaming.v1alpha.GameServerConfigs.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployment.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployment.java index 9d554fcd..c5abc914 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployment.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployment.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,6 +39,14 @@ private GameServerDeployment(com.google.protobuf.GeneratedMessageV3.Builder b private GameServerDeployment() { name_ = ""; + etag_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GameServerDeployment(); } @java.lang.Override @@ -104,10 +112,10 @@ private GameServerDeployment( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -115,38 +123,18 @@ private GameServerDeployment( labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); break; } - case 42: + case 58: { - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder subBuilder = null; - if (stableGameServerTemplate_ != null) { - subBuilder = stableGameServerTemplate_.toBuilder(); - } - stableGameServerTemplate_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerTemplate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stableGameServerTemplate_); - stableGameServerTemplate_ = subBuilder.buildPartial(); - } + java.lang.String s = input.readStringRequireUtf8(); + etag_ = s; break; } - case 50: + case 66: { - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder subBuilder = null; - if (newGameServerTemplate_ != null) { - subBuilder = newGameServerTemplate_.toBuilder(); - } - newGameServerTemplate_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerTemplate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(newGameServerTemplate_); - newGameServerTemplate_ = subBuilder.buildPartial(); - } + java.lang.String s = input.readStringRequireUtf8(); + description_ = s; break; } default: @@ -194,7 +182,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -202,12 +189,14 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * *
    * The resource name of the game server deployment, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
    * For example,
    * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
    * 
* * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -225,12 +214,14 @@ public java.lang.String getName() { * *
    * The resource name of the game server deployment, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
    * For example,
    * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
    * 
* * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -253,7 +244,10 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -265,7 +259,10 @@ public boolean hasCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -277,7 +274,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); @@ -292,7 +290,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -304,7 +305,10 @@ public boolean hasUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -316,7 +320,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); @@ -419,88 +424,98 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } - public static final int STABLE_GAME_SERVER_TEMPLATE_FIELD_NUMBER = 5; - private com.google.cloud.gaming.v1alpha.GameServerTemplate stableGameServerTemplate_; + public static final int ETAG_FIELD_NUMBER = 7; + private volatile java.lang.Object etag_; /** * * *
-   * Output only. The GameServerTemplate whose rollout was completed.
+   * ETag of the resource.
    * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; - */ - public boolean hasStableGameServerTemplate() { - return stableGameServerTemplate_ != null; - } - /** - * + * string etag = 7; * - *
-   * Output only. The GameServerTemplate whose rollout was completed.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; + * @return The etag. */ - public com.google.cloud.gaming.v1alpha.GameServerTemplate getStableGameServerTemplate() { - return stableGameServerTemplate_ == null - ? com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance() - : stableGameServerTemplate_; + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } } /** * * *
-   * Output only. The GameServerTemplate whose rollout was completed.
+   * ETag of the resource.
    * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; + * string etag = 7; + * + * @return The bytes for etag. */ - public com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder - getStableGameServerTemplateOrBuilder() { - return getStableGameServerTemplate(); + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int NEW_GAME_SERVER_TEMPLATE_FIELD_NUMBER = 6; - private com.google.cloud.gaming.v1alpha.GameServerTemplate newGameServerTemplate_; + public static final int DESCRIPTION_FIELD_NUMBER = 8; + private volatile java.lang.Object description_; /** * * *
-   * The GameServerTemplate whose rollout is ongoing.
+   * Human readable description of the game server deployment.
    * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; - */ - public boolean hasNewGameServerTemplate() { - return newGameServerTemplate_ != null; - } - /** - * + * string description = 8; * - *
-   * The GameServerTemplate whose rollout is ongoing.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; + * @return The description. */ - public com.google.cloud.gaming.v1alpha.GameServerTemplate getNewGameServerTemplate() { - return newGameServerTemplate_ == null - ? com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance() - : newGameServerTemplate_; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } } /** * * *
-   * The GameServerTemplate whose rollout is ongoing.
+   * Human readable description of the game server deployment.
    * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; + * string description = 8; + * + * @return The bytes for description. */ - public com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder - getNewGameServerTemplateOrBuilder() { - return getNewGameServerTemplate(); + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -528,11 +543,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (stableGameServerTemplate_ != null) { - output.writeMessage(5, getStableGameServerTemplate()); + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, etag_); } - if (newGameServerTemplate_ != null) { - output.writeMessage(6, getNewGameServerTemplate()); + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); } unknownFields.writeTo(output); } @@ -562,14 +577,11 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } - if (stableGameServerTemplate_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, getStableGameServerTemplate()); + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); } - if (newGameServerTemplate_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNewGameServerTemplate()); + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -597,14 +609,8 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasStableGameServerTemplate() != other.hasStableGameServerTemplate()) return false; - if (hasStableGameServerTemplate()) { - if (!getStableGameServerTemplate().equals(other.getStableGameServerTemplate())) return false; - } - if (hasNewGameServerTemplate() != other.hasNewGameServerTemplate()) return false; - if (hasNewGameServerTemplate()) { - if (!getNewGameServerTemplate().equals(other.getNewGameServerTemplate())) return false; - } + if (!getEtag().equals(other.getEtag())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -630,14 +636,10 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } - if (hasStableGameServerTemplate()) { - hash = (37 * hash) + STABLE_GAME_SERVER_TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getStableGameServerTemplate().hashCode(); - } - if (hasNewGameServerTemplate()) { - hash = (37 * hash) + NEW_GAME_SERVER_TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getNewGameServerTemplate().hashCode(); - } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -818,18 +820,10 @@ public Builder clear() { updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); - if (stableGameServerTemplateBuilder_ == null) { - stableGameServerTemplate_ = null; - } else { - stableGameServerTemplate_ = null; - stableGameServerTemplateBuilder_ = null; - } - if (newGameServerTemplateBuilder_ == null) { - newGameServerTemplate_ = null; - } else { - newGameServerTemplate_ = null; - newGameServerTemplateBuilder_ = null; - } + etag_ = ""; + + description_ = ""; + return this; } @@ -858,7 +852,6 @@ public com.google.cloud.gaming.v1alpha.GameServerDeployment buildPartial() { com.google.cloud.gaming.v1alpha.GameServerDeployment result = new com.google.cloud.gaming.v1alpha.GameServerDeployment(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -872,17 +865,8 @@ public com.google.cloud.gaming.v1alpha.GameServerDeployment buildPartial() { } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); - if (stableGameServerTemplateBuilder_ == null) { - result.stableGameServerTemplate_ = stableGameServerTemplate_; - } else { - result.stableGameServerTemplate_ = stableGameServerTemplateBuilder_.build(); - } - if (newGameServerTemplateBuilder_ == null) { - result.newGameServerTemplate_ = newGameServerTemplate_; - } else { - result.newGameServerTemplate_ = newGameServerTemplateBuilder_.build(); - } - result.bitField0_ = to_bitField0_; + result.etag_ = etag_; + result.description_ = description_; onBuilt(); return result; } @@ -944,11 +928,13 @@ public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerDeployment ot mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasStableGameServerTemplate()) { - mergeStableGameServerTemplate(other.getStableGameServerTemplate()); + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); } - if (other.hasNewGameServerTemplate()) { - mergeNewGameServerTemplate(other.getNewGameServerTemplate()); + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -988,12 +974,14 @@ public Builder mergeFrom( * *
      * The resource name of the game server deployment, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
      * For example,
      * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
      * 
* * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1011,12 +999,14 @@ public java.lang.String getName() { * *
      * The resource name of the game server deployment, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
      * For example,
      * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
      * 
* * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1034,12 +1024,15 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The resource name of the game server deployment, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
      * For example,
      * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1055,12 +1048,14 @@ public Builder setName(java.lang.String value) { * *
      * The resource name of the game server deployment, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
      * For example,
      * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1073,12 +1068,15 @@ public Builder clearName() { * *
      * The resource name of the game server deployment, using the form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
      * For example,
      * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1104,7 +1102,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -1116,7 +1118,11 @@ public boolean hasCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { @@ -1134,7 +1140,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1156,7 +1164,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { @@ -1175,7 +1185,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1199,7 +1211,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1219,7 +1233,9 @@ public Builder clearCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { @@ -1233,7 +1249,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { @@ -1251,7 +1269,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1283,7 +1303,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -1295,7 +1319,11 @@ public boolean hasUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1313,7 +1341,9 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1335,7 +1365,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { @@ -1354,7 +1386,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1378,7 +1412,9 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1398,7 +1434,9 @@ public Builder clearUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { @@ -1412,7 +1450,9 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { @@ -1430,7 +1470,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1608,377 +1650,216 @@ public Builder putAllLabels(java.util.Map va return this; } - private com.google.cloud.gaming.v1alpha.GameServerTemplate stableGameServerTemplate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerTemplate, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder, - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder> - stableGameServerTemplateBuilder_; + private java.lang.Object etag_ = ""; /** * * *
-     * Output only. The GameServerTemplate whose rollout was completed.
+     * ETag of the resource.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; - */ - public boolean hasStableGameServerTemplate() { - return stableGameServerTemplateBuilder_ != null || stableGameServerTemplate_ != null; - } - /** - * + * string etag = 7; * - *
-     * Output only. The GameServerTemplate whose rollout was completed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; + * @return The etag. */ - public com.google.cloud.gaming.v1alpha.GameServerTemplate getStableGameServerTemplate() { - if (stableGameServerTemplateBuilder_ == null) { - return stableGameServerTemplate_ == null - ? com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance() - : stableGameServerTemplate_; + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; } else { - return stableGameServerTemplateBuilder_.getMessage(); + return (java.lang.String) ref; } } /** * * *
-     * Output only. The GameServerTemplate whose rollout was completed.
+     * ETag of the resource.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; - */ - public Builder setStableGameServerTemplate( - com.google.cloud.gaming.v1alpha.GameServerTemplate value) { - if (stableGameServerTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stableGameServerTemplate_ = value; - onChanged(); - } else { - stableGameServerTemplateBuilder_.setMessage(value); - } - - return this; - } - /** - * + * string etag = 7; * - *
-     * Output only. The GameServerTemplate whose rollout was completed.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; + * @return The bytes for etag. */ - public Builder setStableGameServerTemplate( - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder builderForValue) { - if (stableGameServerTemplateBuilder_ == null) { - stableGameServerTemplate_ = builderForValue.build(); - onChanged(); + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; } else { - stableGameServerTemplateBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - - return this; } /** * * *
-     * Output only. The GameServerTemplate whose rollout was completed.
+     * ETag of the resource.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; - */ - public Builder mergeStableGameServerTemplate( - com.google.cloud.gaming.v1alpha.GameServerTemplate value) { - if (stableGameServerTemplateBuilder_ == null) { - if (stableGameServerTemplate_ != null) { - stableGameServerTemplate_ = - com.google.cloud.gaming.v1alpha.GameServerTemplate.newBuilder( - stableGameServerTemplate_) - .mergeFrom(value) - .buildPartial(); - } else { - stableGameServerTemplate_ = value; - } - onChanged(); - } else { - stableGameServerTemplateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The GameServerTemplate whose rollout was completed.
-     * 
+ * string etag = 7; * - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; + * @param value The etag to set. + * @return This builder for chaining. */ - public Builder clearStableGameServerTemplate() { - if (stableGameServerTemplateBuilder_ == null) { - stableGameServerTemplate_ = null; - onChanged(); - } else { - stableGameServerTemplate_ = null; - stableGameServerTemplateBuilder_ = null; + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + etag_ = value; + onChanged(); return this; } /** * * *
-     * Output only. The GameServerTemplate whose rollout was completed.
+     * ETag of the resource.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; + * string etag = 7; + * + * @return This builder for chaining. */ - public com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder - getStableGameServerTemplateBuilder() { + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); onChanged(); - return getStableGameServerTemplateFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Output only. The GameServerTemplate whose rollout was completed.
+     * ETag of the resource.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; - */ - public com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder - getStableGameServerTemplateOrBuilder() { - if (stableGameServerTemplateBuilder_ != null) { - return stableGameServerTemplateBuilder_.getMessageOrBuilder(); - } else { - return stableGameServerTemplate_ == null - ? com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance() - : stableGameServerTemplate_; - } - } - /** - * - * - *
-     * Output only. The GameServerTemplate whose rollout was completed.
-     * 
+ * string etag = 7; * - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; + * @param value The bytes for etag to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerTemplate, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder, - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder> - getStableGameServerTemplateFieldBuilder() { - if (stableGameServerTemplateBuilder_ == null) { - stableGameServerTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerTemplate, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder, - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder>( - getStableGameServerTemplate(), getParentForChildren(), isClean()); - stableGameServerTemplate_ = null; + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return stableGameServerTemplateBuilder_; + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; } - private com.google.cloud.gaming.v1alpha.GameServerTemplate newGameServerTemplate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerTemplate, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder, - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder> - newGameServerTemplateBuilder_; + private java.lang.Object description_ = ""; /** * * *
-     * The GameServerTemplate whose rollout is ongoing.
+     * Human readable description of the game server deployment.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; - */ - public boolean hasNewGameServerTemplate() { - return newGameServerTemplateBuilder_ != null || newGameServerTemplate_ != null; - } - /** - * - * - *
-     * The GameServerTemplate whose rollout is ongoing.
-     * 
+ * string description = 8; * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; + * @return The description. */ - public com.google.cloud.gaming.v1alpha.GameServerTemplate getNewGameServerTemplate() { - if (newGameServerTemplateBuilder_ == null) { - return newGameServerTemplate_ == null - ? com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance() - : newGameServerTemplate_; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; } else { - return newGameServerTemplateBuilder_.getMessage(); + return (java.lang.String) ref; } } /** * * *
-     * The GameServerTemplate whose rollout is ongoing.
+     * Human readable description of the game server deployment.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; - */ - public Builder setNewGameServerTemplate( - com.google.cloud.gaming.v1alpha.GameServerTemplate value) { - if (newGameServerTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - newGameServerTemplate_ = value; - onChanged(); - } else { - newGameServerTemplateBuilder_.setMessage(value); - } - - return this; - } - /** - * + * string description = 8; * - *
-     * The GameServerTemplate whose rollout is ongoing.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; + * @return The bytes for description. */ - public Builder setNewGameServerTemplate( - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder builderForValue) { - if (newGameServerTemplateBuilder_ == null) { - newGameServerTemplate_ = builderForValue.build(); - onChanged(); + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; } else { - newGameServerTemplateBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - - return this; } /** * * *
-     * The GameServerTemplate whose rollout is ongoing.
+     * Human readable description of the game server deployment.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; - */ - public Builder mergeNewGameServerTemplate( - com.google.cloud.gaming.v1alpha.GameServerTemplate value) { - if (newGameServerTemplateBuilder_ == null) { - if (newGameServerTemplate_ != null) { - newGameServerTemplate_ = - com.google.cloud.gaming.v1alpha.GameServerTemplate.newBuilder(newGameServerTemplate_) - .mergeFrom(value) - .buildPartial(); - } else { - newGameServerTemplate_ = value; - } - onChanged(); - } else { - newGameServerTemplateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The GameServerTemplate whose rollout is ongoing.
-     * 
+ * string description = 8; * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; + * @param value The description to set. + * @return This builder for chaining. */ - public Builder clearNewGameServerTemplate() { - if (newGameServerTemplateBuilder_ == null) { - newGameServerTemplate_ = null; - onChanged(); - } else { - newGameServerTemplate_ = null; - newGameServerTemplateBuilder_ = null; + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + description_ = value; + onChanged(); return this; } /** * * *
-     * The GameServerTemplate whose rollout is ongoing.
+     * Human readable description of the game server deployment.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; + * string description = 8; + * + * @return This builder for chaining. */ - public com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder - getNewGameServerTemplateBuilder() { + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); onChanged(); - return getNewGameServerTemplateFieldBuilder().getBuilder(); + return this; } /** * * *
-     * The GameServerTemplate whose rollout is ongoing.
+     * Human readable description of the game server deployment.
      * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; - */ - public com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder - getNewGameServerTemplateOrBuilder() { - if (newGameServerTemplateBuilder_ != null) { - return newGameServerTemplateBuilder_.getMessageOrBuilder(); - } else { - return newGameServerTemplate_ == null - ? com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance() - : newGameServerTemplate_; - } - } - /** + * string description = 8; * - * - *
-     * The GameServerTemplate whose rollout is ongoing.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; + * @param value The bytes for description to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerTemplate, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder, - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder> - getNewGameServerTemplateFieldBuilder() { - if (newGameServerTemplateBuilder_ == null) { - newGameServerTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerTemplate, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder, - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder>( - getNewGameServerTemplate(), getParentForChildren(), isClean()); - newGameServerTemplate_ = null; + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return newGameServerTemplateBuilder_; + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; } @java.lang.Override diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentName.java index 445bef9e..0c35a96b 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentName.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class GameServerDeploymentName implements ResourceName { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder.java index aef29ff1..29a0a926 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,14 @@ public interface GameServerDeploymentOrBuilder * *
    * The resource name of the game server deployment, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
    * For example,
    * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
    * 
* * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -41,12 +43,14 @@ public interface GameServerDeploymentOrBuilder * *
    * The resource name of the game server deployment, using the form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
    * For example,
    * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`.
    * 
* * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -57,7 +61,10 @@ public interface GameServerDeploymentOrBuilder * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** @@ -67,7 +74,10 @@ public interface GameServerDeploymentOrBuilder * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** @@ -77,7 +87,8 @@ public interface GameServerDeploymentOrBuilder * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); @@ -88,7 +99,10 @@ public interface GameServerDeploymentOrBuilder * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -98,7 +112,10 @@ public interface GameServerDeploymentOrBuilder * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** @@ -108,7 +125,8 @@ public interface GameServerDeploymentOrBuilder * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); @@ -175,62 +193,49 @@ public interface GameServerDeploymentOrBuilder * * *
-   * Output only. The GameServerTemplate whose rollout was completed.
+   * ETag of the resource.
    * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; - */ - boolean hasStableGameServerTemplate(); - /** - * - * - *
-   * Output only. The GameServerTemplate whose rollout was completed.
-   * 
+ * string etag = 7; * - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; + * @return The etag. */ - com.google.cloud.gaming.v1alpha.GameServerTemplate getStableGameServerTemplate(); + java.lang.String getEtag(); /** * * *
-   * Output only. The GameServerTemplate whose rollout was completed.
+   * ETag of the resource.
    * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate stable_game_server_template = 5; + * string etag = 7; + * + * @return The bytes for etag. */ - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder - getStableGameServerTemplateOrBuilder(); + com.google.protobuf.ByteString getEtagBytes(); /** * * *
-   * The GameServerTemplate whose rollout is ongoing.
+   * Human readable description of the game server deployment.
    * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; - */ - boolean hasNewGameServerTemplate(); - /** - * + * string description = 8; * - *
-   * The GameServerTemplate whose rollout is ongoing.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; + * @return The description. */ - com.google.cloud.gaming.v1alpha.GameServerTemplate getNewGameServerTemplate(); + java.lang.String getDescription(); /** * * *
-   * The GameServerTemplate whose rollout is ongoing.
+   * Human readable description of the game server deployment.
    * 
* - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 6; + * string description = 8; + * + * @return The bytes for description. */ - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder getNewGameServerTemplateOrBuilder(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRollout.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRollout.java new file mode 100644 index 00000000..fdf4f9fb --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRollout.java @@ -0,0 +1,2216 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// 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 game server deployment rollout which represents the rollout state.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerDeploymentRollout} + */ +public final class GameServerDeploymentRollout extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerDeploymentRollout) + GameServerDeploymentRolloutOrBuilder { + private static final long serialVersionUID = 0L; + // Use GameServerDeploymentRollout.newBuilder() to construct. + private GameServerDeploymentRollout(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GameServerDeploymentRollout() { + name_ = ""; + defaultGameServerConfig_ = ""; + gameServerConfigOverrides_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GameServerDeploymentRollout(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GameServerDeploymentRollout( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultGameServerConfig_ = s; + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + gameServerConfigOverrides_ = + new java.util.ArrayList< + com.google.cloud.gaming.v1alpha.GameServerConfigOverride>(); + mutable_bitField0_ |= 0x00000001; + } + gameServerConfigOverrides_.add( + input.readMessage( + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.parser(), + extensionRegistry)); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + gameServerConfigOverrides_ = + java.util.Collections.unmodifiableList(gameServerConfigOverrides_); + } + 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_GameServerDeploymentRollout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.class, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The resource name of the game server deployment rollout, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
+   * For example,
+   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 game server deployment rollout, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
+   * For example,
+   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int DEFAULT_GAME_SERVER_CONFIG_FIELD_NUMBER = 4; + private volatile java.lang.Object defaultGameServerConfig_; + /** + * + * + *
+   * The default game server config points to the game server config  that is
+   * applied in all realms/clustesr. For example,
+   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+   * 
+ * + * string default_game_server_config = 4; + * + * @return The defaultGameServerConfig. + */ + public java.lang.String getDefaultGameServerConfig() { + java.lang.Object ref = defaultGameServerConfig_; + 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(); + defaultGameServerConfig_ = s; + return s; + } + } + /** + * + * + *
+   * The default game server config points to the game server config  that is
+   * applied in all realms/clustesr. For example,
+   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+   * 
+ * + * string default_game_server_config = 4; + * + * @return The bytes for defaultGameServerConfig. + */ + public com.google.protobuf.ByteString getDefaultGameServerConfigBytes() { + java.lang.Object ref = defaultGameServerConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultGameServerConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GAME_SERVER_CONFIG_OVERRIDES_FIELD_NUMBER = 5; + private java.util.List + gameServerConfigOverrides_; + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public java.util.List + getGameServerConfigOverridesList() { + return gameServerConfigOverrides_; + } + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public java.util.List + getGameServerConfigOverridesOrBuilderList() { + return gameServerConfigOverrides_; + } + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public int getGameServerConfigOverridesCount() { + return gameServerConfigOverrides_.size(); + } + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride getGameServerConfigOverrides( + int index) { + return gameServerConfigOverrides_.get(index); + } + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder + getGameServerConfigOverridesOrBuilder(int index) { + return gameServerConfigOverrides_.get(index); + } + + public static final int ETAG_FIELD_NUMBER = 6; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 6; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 6; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (!getDefaultGameServerConfigBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultGameServerConfig_); + } + for (int i = 0; i < gameServerConfigOverrides_.size(); i++) { + output.writeMessage(5, gameServerConfigOverrides_.get(i)); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); + } + 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()); + } + if (!getDefaultGameServerConfigBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultGameServerConfig_); + } + for (int i = 0; i < gameServerConfigOverrides_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, gameServerConfigOverrides_.get(i)); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); + } + 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.GameServerDeploymentRollout)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout other = + (com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDefaultGameServerConfig().equals(other.getDefaultGameServerConfig())) return false; + if (!getGameServerConfigOverridesList().equals(other.getGameServerConfigOverridesList())) + return false; + if (!getEtag().equals(other.getEtag())) 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DEFAULT_GAME_SERVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDefaultGameServerConfig().hashCode(); + if (getGameServerConfigOverridesCount() > 0) { + hash = (37 * hash) + GAME_SERVER_CONFIG_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getGameServerConfigOverridesList().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout 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.GameServerDeploymentRollout parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout 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.GameServerDeploymentRollout parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout 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.GameServerDeploymentRollout parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout 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.GameServerDeploymentRollout parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout 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.GameServerDeploymentRollout 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.GameServerDeploymentRollout 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.GameServerDeploymentRollout 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 game server deployment rollout which represents the rollout state.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerDeploymentRollout} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerDeploymentRollout) + com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.class, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGameServerConfigOverridesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + defaultGameServerConfig_ = ""; + + if (gameServerConfigOverridesBuilder_ == null) { + gameServerConfigOverrides_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + gameServerConfigOverridesBuilder_.clear(); + } + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout build() { + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout buildPartial() { + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout result = + new com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.defaultGameServerConfig_ = defaultGameServerConfig_; + if (gameServerConfigOverridesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + gameServerConfigOverrides_ = + java.util.Collections.unmodifiableList(gameServerConfigOverrides_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.gameServerConfigOverrides_ = gameServerConfigOverrides_; + } else { + result.gameServerConfigOverrides_ = gameServerConfigOverridesBuilder_.build(); + } + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout) { + return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout other) { + if (other == com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDefaultGameServerConfig().isEmpty()) { + defaultGameServerConfig_ = other.defaultGameServerConfig_; + onChanged(); + } + if (gameServerConfigOverridesBuilder_ == null) { + if (!other.gameServerConfigOverrides_.isEmpty()) { + if (gameServerConfigOverrides_.isEmpty()) { + gameServerConfigOverrides_ = other.gameServerConfigOverrides_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGameServerConfigOverridesIsMutable(); + gameServerConfigOverrides_.addAll(other.gameServerConfigOverrides_); + } + onChanged(); + } + } else { + if (!other.gameServerConfigOverrides_.isEmpty()) { + if (gameServerConfigOverridesBuilder_.isEmpty()) { + gameServerConfigOverridesBuilder_.dispose(); + gameServerConfigOverridesBuilder_ = null; + gameServerConfigOverrides_ = other.gameServerConfigOverrides_; + bitField0_ = (bitField0_ & ~0x00000001); + gameServerConfigOverridesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGameServerConfigOverridesFieldBuilder() + : null; + } else { + gameServerConfigOverridesBuilder_.addAllMessages(other.gameServerConfigOverrides_); + } + } + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name of the game server deployment rollout, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
+     * For example,
+     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 game server deployment rollout, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
+     * For example,
+     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 game server deployment rollout, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
+     * For example,
+     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the game server deployment rollout, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
+     * For example,
+     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the game server deployment rollout, using the form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
+     * For example,
+     * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. The last-modified time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The last-modified time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 java.lang.Object defaultGameServerConfig_ = ""; + /** + * + * + *
+     * The default game server config points to the game server config  that is
+     * applied in all realms/clustesr. For example,
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+     * 
+ * + * string default_game_server_config = 4; + * + * @return The defaultGameServerConfig. + */ + public java.lang.String getDefaultGameServerConfig() { + java.lang.Object ref = defaultGameServerConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultGameServerConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The default game server config points to the game server config  that is
+     * applied in all realms/clustesr. For example,
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+     * 
+ * + * string default_game_server_config = 4; + * + * @return The bytes for defaultGameServerConfig. + */ + public com.google.protobuf.ByteString getDefaultGameServerConfigBytes() { + java.lang.Object ref = defaultGameServerConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultGameServerConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The default game server config points to the game server config  that is
+     * applied in all realms/clustesr. For example,
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+     * 
+ * + * string default_game_server_config = 4; + * + * @param value The defaultGameServerConfig to set. + * @return This builder for chaining. + */ + public Builder setDefaultGameServerConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultGameServerConfig_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The default game server config points to the game server config  that is
+     * applied in all realms/clustesr. For example,
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+     * 
+ * + * string default_game_server_config = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultGameServerConfig() { + + defaultGameServerConfig_ = getDefaultInstance().getDefaultGameServerConfig(); + onChanged(); + return this; + } + /** + * + * + *
+     * The default game server config points to the game server config  that is
+     * applied in all realms/clustesr. For example,
+     * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+     * 
+ * + * string default_game_server_config = 4; + * + * @param value The bytes for defaultGameServerConfig to set. + * @return This builder for chaining. + */ + public Builder setDefaultGameServerConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultGameServerConfig_ = value; + onChanged(); + return this; + } + + private java.util.List + gameServerConfigOverrides_ = java.util.Collections.emptyList(); + + private void ensureGameServerConfigOverridesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gameServerConfigOverrides_ = + new java.util.ArrayList( + gameServerConfigOverrides_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerConfigOverride, + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder, + com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder> + gameServerConfigOverridesBuilder_; + + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public java.util.List + getGameServerConfigOverridesList() { + if (gameServerConfigOverridesBuilder_ == null) { + return java.util.Collections.unmodifiableList(gameServerConfigOverrides_); + } else { + return gameServerConfigOverridesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public int getGameServerConfigOverridesCount() { + if (gameServerConfigOverridesBuilder_ == null) { + return gameServerConfigOverrides_.size(); + } else { + return gameServerConfigOverridesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride getGameServerConfigOverrides( + int index) { + if (gameServerConfigOverridesBuilder_ == null) { + return gameServerConfigOverrides_.get(index); + } else { + return gameServerConfigOverridesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public Builder setGameServerConfigOverrides( + int index, com.google.cloud.gaming.v1alpha.GameServerConfigOverride value) { + if (gameServerConfigOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGameServerConfigOverridesIsMutable(); + gameServerConfigOverrides_.set(index, value); + onChanged(); + } else { + gameServerConfigOverridesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public Builder setGameServerConfigOverrides( + int index, + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder builderForValue) { + if (gameServerConfigOverridesBuilder_ == null) { + ensureGameServerConfigOverridesIsMutable(); + gameServerConfigOverrides_.set(index, builderForValue.build()); + onChanged(); + } else { + gameServerConfigOverridesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public Builder addGameServerConfigOverrides( + com.google.cloud.gaming.v1alpha.GameServerConfigOverride value) { + if (gameServerConfigOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGameServerConfigOverridesIsMutable(); + gameServerConfigOverrides_.add(value); + onChanged(); + } else { + gameServerConfigOverridesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public Builder addGameServerConfigOverrides( + int index, com.google.cloud.gaming.v1alpha.GameServerConfigOverride value) { + if (gameServerConfigOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGameServerConfigOverridesIsMutable(); + gameServerConfigOverrides_.add(index, value); + onChanged(); + } else { + gameServerConfigOverridesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public Builder addGameServerConfigOverrides( + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder builderForValue) { + if (gameServerConfigOverridesBuilder_ == null) { + ensureGameServerConfigOverridesIsMutable(); + gameServerConfigOverrides_.add(builderForValue.build()); + onChanged(); + } else { + gameServerConfigOverridesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public Builder addGameServerConfigOverrides( + int index, + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder builderForValue) { + if (gameServerConfigOverridesBuilder_ == null) { + ensureGameServerConfigOverridesIsMutable(); + gameServerConfigOverrides_.add(index, builderForValue.build()); + onChanged(); + } else { + gameServerConfigOverridesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public Builder addAllGameServerConfigOverrides( + java.lang.Iterable + values) { + if (gameServerConfigOverridesBuilder_ == null) { + ensureGameServerConfigOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gameServerConfigOverrides_); + onChanged(); + } else { + gameServerConfigOverridesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public Builder clearGameServerConfigOverrides() { + if (gameServerConfigOverridesBuilder_ == null) { + gameServerConfigOverrides_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gameServerConfigOverridesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public Builder removeGameServerConfigOverrides(int index) { + if (gameServerConfigOverridesBuilder_ == null) { + ensureGameServerConfigOverridesIsMutable(); + gameServerConfigOverrides_.remove(index); + onChanged(); + } else { + gameServerConfigOverridesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder + getGameServerConfigOverridesBuilder(int index) { + return getGameServerConfigOverridesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder + getGameServerConfigOverridesOrBuilder(int index) { + if (gameServerConfigOverridesBuilder_ == null) { + return gameServerConfigOverrides_.get(index); + } else { + return gameServerConfigOverridesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public java.util.List< + ? extends com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder> + getGameServerConfigOverridesOrBuilderList() { + if (gameServerConfigOverridesBuilder_ != null) { + return gameServerConfigOverridesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gameServerConfigOverrides_); + } + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder + addGameServerConfigOverridesBuilder() { + return getGameServerConfigOverridesFieldBuilder() + .addBuilder( + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.getDefaultInstance()); + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder + addGameServerConfigOverridesBuilder(int index) { + return getGameServerConfigOverridesFieldBuilder() + .addBuilder( + index, com.google.cloud.gaming.v1alpha.GameServerConfigOverride.getDefaultInstance()); + } + /** + * + * + *
+     * Contains the per game server config overrides. The overrides are processed
+     * in the order they are listed. As soon as a match is found for cluster,
+     * the rest of the list is not processed.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + public java.util.List + getGameServerConfigOverridesBuilderList() { + return getGameServerConfigOverridesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerConfigOverride, + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder, + com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder> + getGameServerConfigOverridesFieldBuilder() { + if (gameServerConfigOverridesBuilder_ == null) { + gameServerConfigOverridesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerConfigOverride, + com.google.cloud.gaming.v1alpha.GameServerConfigOverride.Builder, + com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder>( + gameServerConfigOverrides_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + gameServerConfigOverrides_ = null; + } + return gameServerConfigOverridesBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 6; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = 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.GameServerDeploymentRollout) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerDeploymentRollout) + private static final com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout(); + } + + public static com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GameServerDeploymentRollout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GameServerDeploymentRollout(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRolloutOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRolloutOrBuilder.java new file mode 100644 index 00000000..7c827e79 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRolloutOrBuilder.java @@ -0,0 +1,260 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto + +package com.google.cloud.gaming.v1alpha; + +public interface GameServerDeploymentRolloutOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerDeploymentRollout) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the game server deployment rollout, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
+   * For example,
+   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the game server deployment rollout, using the form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
+   * For example,
+   * `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The default game server config points to the game server config  that is
+   * applied in all realms/clustesr. For example,
+   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+   * 
+ * + * string default_game_server_config = 4; + * + * @return The defaultGameServerConfig. + */ + java.lang.String getDefaultGameServerConfig(); + /** + * + * + *
+   * The default game server config points to the game server config  that is
+   * applied in all realms/clustesr. For example,
+   * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
+   * 
+ * + * string default_game_server_config = 4; + * + * @return The bytes for defaultGameServerConfig. + */ + com.google.protobuf.ByteString getDefaultGameServerConfigBytes(); + + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + java.util.List + getGameServerConfigOverridesList(); + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + com.google.cloud.gaming.v1alpha.GameServerConfigOverride getGameServerConfigOverrides(int index); + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + int getGameServerConfigOverridesCount(); + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + java.util.List + getGameServerConfigOverridesOrBuilderList(); + /** + * + * + *
+   * Contains the per game server config overrides. The overrides are processed
+   * in the order they are listed. As soon as a match is found for cluster,
+   * the rest of the list is not processed.
+   * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.GameServerConfigOverride game_server_config_overrides = 5; + * + */ + com.google.cloud.gaming.v1alpha.GameServerConfigOverrideOrBuilder + getGameServerConfigOverridesOrBuilder(int index); + + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 6; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 6; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployments.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployments.java index b0db34fd..714c7e60 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployments.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployments.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,6 +39,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -52,41 +56,33 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_descriptor; + internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_fieldAccessorTable; + internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_SetRolloutTargetRequest_descriptor; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_SetRolloutTargetRequest_fieldAccessorTable; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_descriptor; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_fieldAccessorTable; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_descriptor; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_fieldAccessorTable; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_descriptor; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_fieldAccessorTable; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ClusterPercentageSelector_descriptor; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ClusterPercentageSelector_fieldAccessorTable; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GameServerTemplate_descriptor; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GameServerTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_ClusterRolloutTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_ClusterRolloutTarget_fieldAccessorTable; + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -95,6 +91,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -106,140 +118,120 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n9google/cloud/gaming/v1alpha/game_serve" + "r_deployments.proto\022\033google.cloud.gaming" - + ".v1alpha\032\034google/api/annotations.proto\032(" - + "google/cloud/gaming/v1alpha/common.proto" - + "\032#google/longrunning/operations.proto\032 g" - + "oogle/protobuf/field_mask.proto\032\037google/" - + "protobuf/timestamp.proto\032\027google/api/cli" - + "ent.proto\"{\n ListGameServerDeploymentsRe" - + "quest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010" - + "order_by\030\005 \001(\t\"\220\001\n!ListGameServerDeploym" - + "entsResponse\022R\n\027game_server_deployments\030" - + "\001 \003(\01321.google.cloud.gaming.v1alpha.Game" - + "ServerDeployment\022\027\n\017next_page_token\030\002 \001(" - + "\t\".\n\036GetGameServerDeploymentRequest\022\014\n\004n" - + "ame\030\001 \001(\t\"\235\001\n!CreateGameServerDeployment" - + "Request\022\016\n\006parent\030\001 \001(\t\022\025\n\rdeployment_id" - + "\030\002 \001(\t\022Q\n\026game_server_deployment\030\003 \001(\01321" - + ".google.cloud.gaming.v1alpha.GameServerD" - + "eployment\"1\n!DeleteGameServerDeploymentR" - + "equest\022\014\n\004name\030\001 \001(\t\"\247\001\n!UpdateGameServe" - + "rDeploymentRequest\022Q\n\026game_server_deploy" - + "ment\030\001 \001(\01321.google.cloud.gaming.v1alpha" - + ".GameServerDeployment\022/\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMask\"v\n\023StartR" - + "olloutRequest\022\014\n\004name\030\001 \001(\t\022Q\n\030new_game_" - + "server_template\030\002 \001(\0132/.google.cloud.gam" - + "ing.v1alpha.GameServerTemplate\"\204\001\n\027SetRo" - + "lloutTargetRequest\022\014\n\004name\030\001 \001(\t\022[\n\033clus" - + "ter_percentage_selector\030\002 \003(\01326.google.c" - + "loud.gaming.v1alpha.ClusterPercentageSel" - + "ector\"$\n\024CommitRolloutRequest\022\014\n\004name\030\001 " - + "\001(\t\"$\n\024RevertRolloutRequest\022\014\n\004name\030\001 \001(" - + "\t\"*\n\032GetDeploymentTargetRequest\022\014\n\004name\030" - + "\001 \001(\t\"r\n\031ClusterPercentageSelector\022D\n\020cl" - + "uster_selector\030\001 \001(\0132*.google.cloud.gami" - + "ng.v1alpha.LabelSelector\022\017\n\007percent\030\002 \001(" - + "\005\"\252\001\n\022GameServerTemplate\022\023\n\013description\030" - + "\001 \001(\t\022\014\n\004spec\030\002 \001(\t\022\\\n\034cluster_percentag" - + "e_selectors\030\003 \003(\01326.google.cloud.gaming." - + "v1alpha.ClusterPercentageSelector\022\023\n\013tem" - + "plate_id\030\004 \001(\t\"\315\001\n\020DeploymentTarget\022T\n\010c" - + "lusters\030\001 \003(\0132B.google.cloud.gaming.v1al" - + "pha.DeploymentTarget.ClusterRolloutTarge" - + "t\032c\n\024ClusterRolloutTarget\022\r\n\005realm\030\001 \001(\t" - + "\022\017\n\007cluster\030\002 \001(\t\022\026\n\016stable_percent\030\003 \001(" - + "\005\022\023\n\013new_percent\030\004 \001(\005\"\255\003\n\024GameServerDep" - + "loyment\022\014\n\004name\030\001 \001(\t\022/\n\013create_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\022/\n\013update" - + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022" - + "M\n\006labels\030\004 \003(\0132=.google.cloud.gaming.v1" - + "alpha.GameServerDeployment.LabelsEntry\022T" - + "\n\033stable_game_server_template\030\005 \001(\0132/.go" - + "ogle.cloud.gaming.v1alpha.GameServerTemp" - + "late\022Q\n\030new_game_server_template\030\006 \001(\0132/" - + ".google.cloud.gaming.v1alpha.GameServerT" - + "emplate\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\0012\227\021\n\034GameServerDeployments" - + "Service\022\342\001\n\031ListGameServerDeployments\022=." - + "google.cloud.gaming.v1alpha.ListGameServ" - + "erDeploymentsRequest\032>.google.cloud.gami" - + "ng.v1alpha.ListGameServerDeploymentsResp" - + "onse\"F\202\323\344\223\002@\022>/v1alpha/{parent=projects/" - + "*/locations/*}/gameServerDeployments\022\321\001\n" - + "\027GetGameServerDeployment\022;.google.cloud." - + "gaming.v1alpha.GetGameServerDeploymentRe" - + "quest\0321.google.cloud.gaming.v1alpha.Game" - + "ServerDeployment\"F\202\323\344\223\002@\022>/v1alpha/{name" - + "=projects/*/locations/*/gameServerDeploy" - + "ments/*}\022\333\001\n\032CreateGameServerDeployment\022" - + ">.google.cloud.gaming.v1alpha.CreateGame" - + "ServerDeploymentRequest\032\035.google.longrun" - + "ning.Operation\"^\202\323\344\223\002X\">/v1alpha/{parent" - + "=projects/*/locations/*}/gameServerDeplo" - + "yments:\026game_server_deployment\022\303\001\n\032Delet" - + "eGameServerDeployment\022>.google.cloud.gam" - + "ing.v1alpha.DeleteGameServerDeploymentRe" - + "quest\032\035.google.longrunning.Operation\"F\202\323" - + "\344\223\002@*>/v1alpha/{name=projects/*/location" - + "s/*/gameServerDeployments/*}\022\362\001\n\032UpdateG" - + "ameServerDeployment\022>.google.cloud.gamin" - + "g.v1alpha.UpdateGameServerDeploymentRequ" - + "est\032\035.google.longrunning.Operation\"u\202\323\344\223" - + "\002o2U/v1alpha/{game_server_deployment.nam" - + "e=projects/*/locations/*/gameServerDeplo" - + "yments/*}:\026game_server_deployment\022\267\001\n\014St" - + "artRollout\0220.google.cloud.gaming.v1alpha" - + ".StartRolloutRequest\032\035.google.longrunnin" - + "g.Operation\"V\202\323\344\223\002P\"K/v1alpha/{name=proj" - + "ects/*/locations/*/gameServerDeployments" - + "/*}:startRollout:\001*\022\303\001\n\020SetRolloutTarget" - + "\0224.google.cloud.gaming.v1alpha.SetRollou" - + "tTargetRequest\032\035.google.longrunning.Oper" - + "ation\"Z\202\323\344\223\002T\"O/v1alpha/{name=projects/*" - + "/locations/*/gameServerDeployments/*}:se" - + "tRolloutTarget:\001*\022\272\001\n\rCommitRollout\0221.go" - + "ogle.cloud.gaming.v1alpha.CommitRolloutR" - + "equest\032\035.google.longrunning.Operation\"W\202" - + "\323\344\223\002Q\"L/v1alpha/{name=projects/*/locatio" - + "ns/*/gameServerDeployments/*}:commitRoll" - + "out:\001*\022\272\001\n\rRevertRollout\0221.google.cloud." - + "gaming.v1alpha.RevertRolloutRequest\032\035.go" - + "ogle.longrunning.Operation\"W\202\323\344\223\002Q\"L/v1a" - + "lpha/{name=projects/*/locations/*/gameSe" - + "rverDeployments/*}:revertRollout:\001*\022\331\001\n\023" - + "GetDeploymentTarget\0227.google.cloud.gamin" - + "g.v1alpha.GetDeploymentTargetRequest\032-.g" - + "oogle.cloud.gaming.v1alpha.DeploymentTar" - + "get\"Z\202\323\344\223\002T\022R/v1alpha/{name=projects/*/l" - + "ocations/*/gameServerDeployments/*}:getD" - + "eploymentTarget\032O\312A\033gameservices.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformBf\n\037com.google.cloud.gam" - + "ing.v1alphaP\001ZAgoogle.golang.org/genprot" - + "o/googleapis/cloud/gaming/v1alpha;gaming" - + "b\006proto3" + + ".v1alpha\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032(google/clo" + + "ud/gaming/v1alpha/common.proto\032 google/p" + + "rotobuf/field_mask.proto\032\037google/protobu" + + "f/timestamp.proto\032\034google/api/annotation" + + "s.proto\"\311\001\n ListGameServerDeploymentsReq" + + "uest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0gameservic" + + "es.googleapis.com/GameServerDeployment\022\026" + + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + + "(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by" + + "\030\005 \001(\tB\003\340A\001\"\310\001\n!ListGameServerDeployment" + + "sResponse\022R\n\027game_server_deployments\030\001 \003" + + "(\01321.google.cloud.gaming.v1alpha.GameSer" + + "verDeployment\022\027\n\017next_page_token\030\002 \001(\t\022!" + + "\n\025unreachable_locations\030\003 \003(\tB\002\030\001\022\023\n\013unr" + + "eachable\030\004 \003(\t\"h\n\036GetGameServerDeploymen" + + "tRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0gameserv" + + "ices.googleapis.com/GameServerDeployment" + + "\"o\n%GetGameServerDeploymentRolloutReques" + + "t\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0gameservices.go" + + "ogleapis.com/GameServerDeployment\"\341\001\n!Cr" + + "eateGameServerDeploymentRequest\022H\n\006paren" + + "t\030\001 \001(\tB8\340A\002\372A2\n0gameservices.googleapis" + + ".com/GameServerDeployment\022\032\n\rdeployment_" + + "id\030\002 \001(\tB\003\340A\002\022V\n\026game_server_deployment\030" + + "\003 \001(\01321.google.cloud.gaming.v1alpha.Game" + + "ServerDeploymentB\003\340A\002\"k\n!DeleteGameServe" + + "rDeploymentRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2" + + "\n0gameservices.googleapis.com/GameServer" + + "Deployment\"\261\001\n!UpdateGameServerDeploymen" + + "tRequest\022V\n\026game_server_deployment\030\001 \001(\013" + + "21.google.cloud.gaming.v1alpha.GameServe" + + "rDeploymentB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMaskB\003\340A\002\"\260\001\n(Updat" + + "eGameServerDeploymentRolloutRequest\022N\n\007r" + + "ollout\030\001 \001(\01328.google.cloud.gaming.v1alp" + + "ha.GameServerDeploymentRolloutB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\"0\n\033FetchDeploymentStateRequest" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\356\006\n\034FetchDeploymentS" + + "tateResponse\022_\n\007details\030\001 \003(\0132N.google.c" + + "loud.gaming.v1alpha.FetchDeploymentState" + + "Response.DeployedFleetDetails\022\023\n\013unavail" + + "able\030\002 \003(\t\032\327\005\n\024DeployedFleetDetails\022c\n\005f" + + "leet\030\001 \001(\0132T.google.cloud.gaming.v1alpha" + + ".FetchDeploymentStateResponse.DeployedFl" + + "eetDetails.Fleet\022r\n\nautoscaler\030\002 \001(\0132^.g" + + "oogle.cloud.gaming.v1alpha.FetchDeployme" + + "ntStateResponse.DeployedFleetDetails.Fle" + + "etAutoscaler\032\333\002\n\005Fleet\022\014\n\004name\030\001 \001(\t\022\023\n\013" + + "agones_spec\030\002 \001(\t\022\017\n\007cluster\030\003 \001(\t\022<\n\013sp" + + "ec_source\030\004 \001(\0132\'.google.cloud.gaming.v1" + + "alpha.SpecSource\022p\n\006status\030\005 \001(\0132`.googl" + + "e.cloud.gaming.v1alpha.FetchDeploymentSt" + + "ateResponse.DeployedFleetDetails.Fleet.F" + + "leetStatus\032n\n\013FleetStatus\022\027\n\017available_c" + + "ount\030\001 \001(\003\022\027\n\017allocated_count\030\002 \001(\003\022\026\n\016r" + + "eserved_count\030\003 \001(\003\022\025\n\rreplica_count\030\004 \001" + + "(\003\032\207\001\n\017FleetAutoscaler\022\027\n\017autoscaler_nam" + + "e\030\001 \001(\t\022<\n\013spec_source\030\004 \001(\0132\'.google.cl" + + "oud.gaming.v1alpha.SpecSource\022\035\n\025fleet_a" + + "utoscaler_spec\030\003 \001(\t\"\265\003\n\024GameServerDeplo" + + "yment\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022M\n\006labels\030\004 \003(\0132=.google.cloud.g" + + "aming.v1alpha.GameServerDeployment.Label" + + "sEntry\022\014\n\004etag\030\007 \001(\t\022\023\n\013description\030\010 \001(" + + "\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001:\201\001\352A~\n0gameservices.googleapis." + + "com/GameServerDeployment\022Jprojects/{proj" + + "ect}/locations/{location}/gameServerDepl" + + "oyments/{deployment}\"\221\001\n\030GameServerConfi" + + "gOverride\022E\n\017realms_selector\030\001 \001(\0132*.goo" + + "gle.cloud.gaming.v1alpha.RealmSelectorH\000" + + "\022\030\n\016config_version\030d \001(\tH\001B\n\n\010selectorB\010" + + "\n\006change\"\272\003\n\033GameServerDeploymentRollout" + + "\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\"\n\032default_game_server_config\030\004 \001(\t\022[" + + "\n\034game_server_config_overrides\030\005 \003(\01325.g" + + "oogle.cloud.gaming.v1alpha.GameServerCon" + + "figOverride\022\014\n\004etag\030\006 \001(\t:\221\001\352A\215\001\n7gamese" + + "rvices.googleapis.com/GameServerDeployme" + + "ntRollout\022Rprojects/{project}/locations/" + + "{location}/gameServerDeployments/{deploy" + + "ment}/rollout\"\350\001\n)PreviewGameServerDeplo" + + "ymentRolloutRequest\022N\n\007rollout\030\001 \001(\01328.g" + + "oogle.cloud.gaming.v1alpha.GameServerDep" + + "loymentRolloutB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\001\0225\n\014pre" + + "view_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\001\"\327\001\n*PreviewGameServerDeployment" + + "RolloutResponse\022F\n\016deployed_state\030\001 \001(\0132" + + "*.google.cloud.gaming.v1alpha.DeployedSt" + + "ateB\002\030\001\022\023\n\013unavailable\030\002 \003(\t\022\014\n\004etag\030\003 \001" + + "(\t\022>\n\014target_state\030\004 \001(\0132(.google.cloud." + + "gaming.v1alpha.TargetStateBf\n\037com.google" + + ".cloud.gaming.v1alphaP\001ZAgoogle.golang.o" + + "rg/genproto/googleapis/cloud/gaming/v1al" + + "pha;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.cloud.gaming.v1alpha.Common.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gaming.v1alpha.Common.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsRequest_fieldAccessorTable = @@ -254,7 +246,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_ListGameServerDeploymentsResponse_descriptor, new java.lang.String[] { - "GameServerDeployments", "NextPageToken", + "GameServerDeployments", "NextPageToken", "UnreachableLocations", "Unreachable", }); internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -264,8 +256,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Name", }); - internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor = + internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_CreateGameServerDeploymentRequest_descriptor, @@ -273,7 +273,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Parent", "DeploymentId", "GameServerDeployment", }); internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_DeleteGameServerDeploymentRequest_descriptor, @@ -281,99 +281,84 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", }); internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRequest_descriptor, new java.lang.String[] { "GameServerDeployment", "UpdateMask", }); - internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_descriptor, - new java.lang.String[] { - "Name", "NewGameServerTemplate", - }); - internal_static_google_cloud_gaming_v1alpha_SetRolloutTargetRequest_descriptor = + internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor = getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gaming_v1alpha_SetRolloutTargetRequest_fieldAccessorTable = + internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_SetRolloutTargetRequest_descriptor, + internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor, new java.lang.String[] { - "Name", "ClusterPercentageSelector", + "Rollout", "UpdateMask", }); - internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_descriptor = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor = getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_fieldAccessorTable = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_CommitRolloutRequest_descriptor, + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateRequest_descriptor, new java.lang.String[] { "Name", }); - internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_descriptor = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor = getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_fieldAccessorTable = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_descriptor, + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor, new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GetDeploymentTargetRequest_descriptor, - new java.lang.String[] { - "Name", + "Details", "Unavailable", }); - internal_static_google_cloud_gaming_v1alpha_ClusterPercentageSelector_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gaming_v1alpha_ClusterPercentageSelector_fieldAccessorTable = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ClusterPercentageSelector_descriptor, + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor, new java.lang.String[] { - "ClusterSelector", "Percent", + "Fleet", "Autoscaler", }); - internal_static_google_cloud_gaming_v1alpha_GameServerTemplate_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gaming_v1alpha_GameServerTemplate_fieldAccessorTable = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GameServerTemplate_descriptor, + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor, new java.lang.String[] { - "Description", "Spec", "ClusterPercentageSelectors", "TemplateId", + "Name", "AgonesSpec", "Cluster", "SpecSource", "Status", }); - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_fieldAccessorTable = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_descriptor, + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_Fleet_FleetStatus_descriptor, new java.lang.String[] { - "Clusters", + "AvailableCount", "AllocatedCount", "ReservedCount", "ReplicaCount", }); - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_ClusterRolloutTarget_descriptor = - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_descriptor + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor = + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_descriptor .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_ClusterRolloutTarget_fieldAccessorTable = + .get(1); + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_DeploymentTarget_ClusterRolloutTarget_descriptor, + internal_static_google_cloud_gaming_v1alpha_FetchDeploymentStateResponse_DeployedFleetDetails_FleetAutoscaler_descriptor, new java.lang.String[] { - "Realm", "Cluster", "StablePercent", "NewPercent", + "AutoscalerName", "SpecSource", "FleetAutoscalerSpec", }); internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor, new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "StableGameServerTemplate", - "NewGameServerTemplate", + "Name", "CreateTime", "UpdateTime", "Labels", "Etag", "Description", }); internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_LabelsEntry_descriptor = internal_static_google_cloud_gaming_v1alpha_GameServerDeployment_descriptor @@ -385,19 +370,56 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_GameServerConfigOverride_descriptor, + new java.lang.String[] { + "RealmsSelector", "ConfigVersion", "Selector", "Change", + }); + internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_GameServerDeploymentRollout_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "DefaultGameServerConfig", + "GameServerConfigOverrides", + "Etag", + }); + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor, + new java.lang.String[] { + "Rollout", "UpdateMask", "PreviewTime", + }); + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor, + new java.lang.String[] { + "DeployedState", "Unavailable", "Etag", "TargetState", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.gaming.v1alpha.Common.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceOuterClass.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceOuterClass.java new file mode 100644 index 00000000..583192f6 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceOuterClass.java @@ -0,0 +1,137 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_deployments_service.proto + +package com.google.cloud.gaming.v1alpha; + +public final class GameServerDeploymentsServiceOuterClass { + private GameServerDeploymentsServiceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/gaming/v1alpha/game_serve" + + "r_deployments_service.proto\022\033google.clou" + + "d.gaming.v1alpha\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\0329google/" + + "cloud/gaming/v1alpha/game_server_deploym" + + "ents.proto\032#google/longrunning/operation" + + "s.proto2\332\023\n\034GameServerDeploymentsService" + + "\022\353\001\n\031ListGameServerDeployments\022=.google." + + "cloud.gaming.v1alpha.ListGameServerDeplo" + + "ymentsRequest\032>.google.cloud.gaming.v1al" + + "pha.ListGameServerDeploymentsResponse\"O\202" + + "\323\344\223\002@\022>/v1alpha/{parent=projects/*/locat" + + "ions/*}/gameServerDeployments\332A\006parent\022\330" + + "\001\n\027GetGameServerDeployment\022;.google.clou" + + "d.gaming.v1alpha.GetGameServerDeployment" + + "Request\0321.google.cloud.gaming.v1alpha.Ga" + + "meServerDeployment\"M\202\323\344\223\002@\022>/v1alpha/{na" + + "me=projects/*/locations/*/gameServerDepl" + + "oyments/*}\332A\004name\022\250\002\n\032CreateGameServerDe" + + "ployment\022>.google.cloud.gaming.v1alpha.C" + + "reateGameServerDeploymentRequest\032\035.googl" + + "e.longrunning.Operation\"\252\001\202\323\344\223\002X\">/v1alp" + + "ha/{parent=projects/*/locations/*}/gameS" + + "erverDeployments:\026game_server_deployment" + + "\332A\035parent,game_server_deployment\312A)\n\024Gam" + + "eServerDeployment\022\021OperationMetadata\022\366\001\n" + + "\032DeleteGameServerDeployment\022>.google.clo" + + "ud.gaming.v1alpha.DeleteGameServerDeploy" + + "mentRequest\032\035.google.longrunning.Operati" + + "on\"y\202\323\344\223\002@*>/v1alpha/{name=projects/*/lo" + + "cations/*/gameServerDeployments/*}\332A\004nam" + + "e\312A)\n\024GameServerDeployment\022\021OperationMet" + + "adata\022\304\002\n\032UpdateGameServerDeployment\022>.g" + + "oogle.cloud.gaming.v1alpha.UpdateGameSer" + + "verDeploymentRequest\032\035.google.longrunnin" + + "g.Operation\"\306\001\202\323\344\223\002o2U/v1alpha/{game_ser" + + "ver_deployment.name=projects/*/locations" + + "/*/gameServerDeployments/*}:\026game_server" + + "_deployment\332A\"game_server_deployment,upd" + + "ate_mask\312A)\n\024GameServerDeployment\022\021Opera" + + "tionMetadata\022\365\001\n\036GetGameServerDeployment" + + "Rollout\022B.google.cloud.gaming.v1alpha.Ge" + + "tGameServerDeploymentRolloutRequest\0328.go" + + "ogle.cloud.gaming.v1alpha.GameServerDepl" + + "oymentRollout\"U\202\323\344\223\002H\022F/v1alpha/{name=pr" + + "ojects/*/locations/*/gameServerDeploymen" + + "ts/*}/rollout\332A\004name\022\255\002\n!UpdateGameServe" + + "rDeploymentRollout\022E.google.cloud.gaming" + + ".v1alpha.UpdateGameServerDeploymentRollo" + + "utRequest\032\035.google.longrunning.Operation" + + "\"\241\001\202\323\344\223\002Y2N/v1alpha/{rollout.name=projec" + + "ts/*/locations/*/gameServerDeployments/*" + + "}/rollout:\007rollout\332A\023rollout,update_mask" + + "\312A)\n\024GameServerDeployment\022\021OperationMeta" + + "data\022\236\002\n\"PreviewGameServerDeploymentRoll" + + "out\022F.google.cloud.gaming.v1alpha.Previe" + + "wGameServerDeploymentRolloutRequest\032G.go" + + "ogle.cloud.gaming.v1alpha.PreviewGameSer" + + "verDeploymentRolloutResponse\"g\202\323\344\223\002a2V/v" + + "1alpha/{rollout.name=projects/*/location" + + "s/*/gameServerDeployments/*}/rollout:pre" + + "view:\007rollout\022\353\001\n\024FetchDeploymentState\0228" + + ".google.cloud.gaming.v1alpha.FetchDeploy" + + "mentStateRequest\0329.google.cloud.gaming.v" + + "1alpha.FetchDeploymentStateResponse\"^\202\323\344" + + "\223\002X\"S/v1alpha/{name=projects/*/locations" + + "/*/gameServerDeployments/*}:fetchDeploym" + + "entState:\001*\032O\312A\033gameservices.googleapis." + + "com\322A.https://www.googleapis.com/auth/cl" + + "oud-platformBf\n\037com.google.cloud.gaming." + + "v1alphaP\001ZAgoogle.golang.org/genproto/go" + + "ogleapis/cloud/gaming/v1alpha;gamingb\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.gaming.v1alpha.GameServerDeployments.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.gaming.v1alpha.GameServerDeployments.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerTemplate.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerTemplate.java deleted file mode 100644 index 313888fc..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerTemplate.java +++ /dev/null @@ -1,1528 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// 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 game server spec sent to Agones and the rollout target.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerTemplate} - */ -public final class GameServerTemplate extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GameServerTemplate) - GameServerTemplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use GameServerTemplate.newBuilder() to construct. - private GameServerTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GameServerTemplate() { - description_ = ""; - spec_ = ""; - clusterPercentageSelectors_ = java.util.Collections.emptyList(); - templateId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GameServerTemplate( - 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(); - - description_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - spec_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - clusterPercentageSelectors_ = - new java.util.ArrayList< - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector>(); - mutable_bitField0_ |= 0x00000004; - } - clusterPercentageSelectors_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.parser(), - extensionRegistry)); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - templateId_ = 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - clusterPercentageSelectors_ = - java.util.Collections.unmodifiableList(clusterPercentageSelectors_); - } - 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_GameServerTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerTemplate.class, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder.class); - } - - private int bitField0_; - public static final int DESCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object description_; - /** - * - * - *
-   * The description of the game server template.
-   * 
- * - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * The description of the game server template.
-   * 
- * - * string description = 1; - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPEC_FIELD_NUMBER = 2; - private volatile java.lang.Object spec_; - /** - * - * - *
-   * The game server spec, which is sent to Agones.
-   * 
- * - * string spec = 2; - */ - public java.lang.String getSpec() { - java.lang.Object ref = spec_; - 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(); - spec_ = s; - return s; - } - } - /** - * - * - *
-   * The game server spec, which is sent to Agones.
-   * 
- * - * string spec = 2; - */ - public com.google.protobuf.ByteString getSpecBytes() { - java.lang.Object ref = spec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - spec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_PERCENTAGE_SELECTORS_FIELD_NUMBER = 3; - private java.util.List - clusterPercentageSelectors_; - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public java.util.List - getClusterPercentageSelectorsList() { - return clusterPercentageSelectors_; - } - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public java.util.List< - ? extends com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder> - getClusterPercentageSelectorsOrBuilderList() { - return clusterPercentageSelectors_; - } - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public int getClusterPercentageSelectorsCount() { - return clusterPercentageSelectors_.size(); - } - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector getClusterPercentageSelectors( - int index) { - return clusterPercentageSelectors_.get(index); - } - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder - getClusterPercentageSelectorsOrBuilder(int index) { - return clusterPercentageSelectors_.get(index); - } - - public static final int TEMPLATE_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object templateId_; - /** - * - * - *
-   * The ID of the game server template, specified by the user.
-   * 
- * - * string template_id = 4; - */ - public java.lang.String getTemplateId() { - java.lang.Object ref = templateId_; - 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(); - templateId_ = s; - return s; - } - } - /** - * - * - *
-   * The ID of the game server template, specified by the user.
-   * 
- * - * string template_id = 4; - */ - public com.google.protobuf.ByteString getTemplateIdBytes() { - java.lang.Object ref = templateId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - templateId_ = 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 (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - if (!getSpecBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, spec_); - } - for (int i = 0; i < clusterPercentageSelectors_.size(); i++) { - output.writeMessage(3, clusterPercentageSelectors_.get(i)); - } - if (!getTemplateIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, templateId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - if (!getSpecBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spec_); - } - for (int i = 0; i < clusterPercentageSelectors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, clusterPercentageSelectors_.get(i)); - } - if (!getTemplateIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, templateId_); - } - 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.GameServerTemplate)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.GameServerTemplate other = - (com.google.cloud.gaming.v1alpha.GameServerTemplate) obj; - - if (!getDescription().equals(other.getDescription())) return false; - if (!getSpec().equals(other.getSpec())) return false; - if (!getClusterPercentageSelectorsList().equals(other.getClusterPercentageSelectorsList())) - return false; - if (!getTemplateId().equals(other.getTemplateId())) 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - if (getClusterPercentageSelectorsCount() > 0) { - hash = (37 * hash) + CLUSTER_PERCENTAGE_SELECTORS_FIELD_NUMBER; - hash = (53 * hash) + getClusterPercentageSelectorsList().hashCode(); - } - hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; - hash = (53 * hash) + getTemplateId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.GameServerTemplate parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerTemplate 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.GameServerTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerTemplate 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.GameServerTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.GameServerTemplate 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.GameServerTemplate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerTemplate 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.GameServerTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.GameServerTemplate 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.GameServerTemplate 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.GameServerTemplate 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.GameServerTemplate 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 game server spec sent to Agones and the rollout target.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.GameServerTemplate} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GameServerTemplate) - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GameServerTemplate.class, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.GameServerTemplate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getClusterPercentageSelectorsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - description_ = ""; - - spec_ = ""; - - if (clusterPercentageSelectorsBuilder_ == null) { - clusterPercentageSelectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - clusterPercentageSelectorsBuilder_.clear(); - } - templateId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_GameServerTemplate_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerTemplate getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerTemplate build() { - com.google.cloud.gaming.v1alpha.GameServerTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerTemplate buildPartial() { - com.google.cloud.gaming.v1alpha.GameServerTemplate result = - new com.google.cloud.gaming.v1alpha.GameServerTemplate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.description_ = description_; - result.spec_ = spec_; - if (clusterPercentageSelectorsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - clusterPercentageSelectors_ = - java.util.Collections.unmodifiableList(clusterPercentageSelectors_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.clusterPercentageSelectors_ = clusterPercentageSelectors_; - } else { - result.clusterPercentageSelectors_ = clusterPercentageSelectorsBuilder_.build(); - } - result.templateId_ = templateId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GameServerTemplate) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GameServerTemplate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GameServerTemplate other) { - if (other == com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance()) - return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getSpec().isEmpty()) { - spec_ = other.spec_; - onChanged(); - } - if (clusterPercentageSelectorsBuilder_ == null) { - if (!other.clusterPercentageSelectors_.isEmpty()) { - if (clusterPercentageSelectors_.isEmpty()) { - clusterPercentageSelectors_ = other.clusterPercentageSelectors_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureClusterPercentageSelectorsIsMutable(); - clusterPercentageSelectors_.addAll(other.clusterPercentageSelectors_); - } - onChanged(); - } - } else { - if (!other.clusterPercentageSelectors_.isEmpty()) { - if (clusterPercentageSelectorsBuilder_.isEmpty()) { - clusterPercentageSelectorsBuilder_.dispose(); - clusterPercentageSelectorsBuilder_ = null; - clusterPercentageSelectors_ = other.clusterPercentageSelectors_; - bitField0_ = (bitField0_ & ~0x00000004); - clusterPercentageSelectorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClusterPercentageSelectorsFieldBuilder() - : null; - } else { - clusterPercentageSelectorsBuilder_.addAllMessages(other.clusterPercentageSelectors_); - } - } - } - if (!other.getTemplateId().isEmpty()) { - templateId_ = other.templateId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GameServerTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.GameServerTemplate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * The description of the game server template.
-     * 
- * - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The description of the game server template.
-     * 
- * - * string description = 1; - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The description of the game server template.
-     * 
- * - * string description = 1; - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the game server template.
-     * 
- * - * string description = 1; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the game server template.
-     * 
- * - * string description = 1; - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object spec_ = ""; - /** - * - * - *
-     * The game server spec, which is sent to Agones.
-     * 
- * - * string spec = 2; - */ - public java.lang.String getSpec() { - java.lang.Object ref = spec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - spec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The game server spec, which is sent to Agones.
-     * 
- * - * string spec = 2; - */ - public com.google.protobuf.ByteString getSpecBytes() { - java.lang.Object ref = spec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - spec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The game server spec, which is sent to Agones.
-     * 
- * - * string spec = 2; - */ - public Builder setSpec(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - spec_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The game server spec, which is sent to Agones.
-     * 
- * - * string spec = 2; - */ - public Builder clearSpec() { - - spec_ = getDefaultInstance().getSpec(); - onChanged(); - return this; - } - /** - * - * - *
-     * The game server spec, which is sent to Agones.
-     * 
- * - * string spec = 2; - */ - public Builder setSpecBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - spec_ = value; - onChanged(); - return this; - } - - private java.util.List - clusterPercentageSelectors_ = java.util.Collections.emptyList(); - - private void ensureClusterPercentageSelectorsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - clusterPercentageSelectors_ = - new java.util.ArrayList( - clusterPercentageSelectors_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder> - clusterPercentageSelectorsBuilder_; - - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public java.util.List - getClusterPercentageSelectorsList() { - if (clusterPercentageSelectorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusterPercentageSelectors_); - } else { - return clusterPercentageSelectorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public int getClusterPercentageSelectorsCount() { - if (clusterPercentageSelectorsBuilder_ == null) { - return clusterPercentageSelectors_.size(); - } else { - return clusterPercentageSelectorsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector getClusterPercentageSelectors( - int index) { - if (clusterPercentageSelectorsBuilder_ == null) { - return clusterPercentageSelectors_.get(index); - } else { - return clusterPercentageSelectorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public Builder setClusterPercentageSelectors( - int index, com.google.cloud.gaming.v1alpha.ClusterPercentageSelector value) { - if (clusterPercentageSelectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterPercentageSelectorsIsMutable(); - clusterPercentageSelectors_.set(index, value); - onChanged(); - } else { - clusterPercentageSelectorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public Builder setClusterPercentageSelectors( - int index, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder builderForValue) { - if (clusterPercentageSelectorsBuilder_ == null) { - ensureClusterPercentageSelectorsIsMutable(); - clusterPercentageSelectors_.set(index, builderForValue.build()); - onChanged(); - } else { - clusterPercentageSelectorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public Builder addClusterPercentageSelectors( - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector value) { - if (clusterPercentageSelectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterPercentageSelectorsIsMutable(); - clusterPercentageSelectors_.add(value); - onChanged(); - } else { - clusterPercentageSelectorsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public Builder addClusterPercentageSelectors( - int index, com.google.cloud.gaming.v1alpha.ClusterPercentageSelector value) { - if (clusterPercentageSelectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterPercentageSelectorsIsMutable(); - clusterPercentageSelectors_.add(index, value); - onChanged(); - } else { - clusterPercentageSelectorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public Builder addClusterPercentageSelectors( - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder builderForValue) { - if (clusterPercentageSelectorsBuilder_ == null) { - ensureClusterPercentageSelectorsIsMutable(); - clusterPercentageSelectors_.add(builderForValue.build()); - onChanged(); - } else { - clusterPercentageSelectorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public Builder addClusterPercentageSelectors( - int index, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder builderForValue) { - if (clusterPercentageSelectorsBuilder_ == null) { - ensureClusterPercentageSelectorsIsMutable(); - clusterPercentageSelectors_.add(index, builderForValue.build()); - onChanged(); - } else { - clusterPercentageSelectorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public Builder addAllClusterPercentageSelectors( - java.lang.Iterable - values) { - if (clusterPercentageSelectorsBuilder_ == null) { - ensureClusterPercentageSelectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterPercentageSelectors_); - onChanged(); - } else { - clusterPercentageSelectorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public Builder clearClusterPercentageSelectors() { - if (clusterPercentageSelectorsBuilder_ == null) { - clusterPercentageSelectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - clusterPercentageSelectorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public Builder removeClusterPercentageSelectors(int index) { - if (clusterPercentageSelectorsBuilder_ == null) { - ensureClusterPercentageSelectorsIsMutable(); - clusterPercentageSelectors_.remove(index); - onChanged(); - } else { - clusterPercentageSelectorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder - getClusterPercentageSelectorsBuilder(int index) { - return getClusterPercentageSelectorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder - getClusterPercentageSelectorsOrBuilder(int index) { - if (clusterPercentageSelectorsBuilder_ == null) { - return clusterPercentageSelectors_.get(index); - } else { - return clusterPercentageSelectorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public java.util.List< - ? extends com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder> - getClusterPercentageSelectorsOrBuilderList() { - if (clusterPercentageSelectorsBuilder_ != null) { - return clusterPercentageSelectorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusterPercentageSelectors_); - } - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder - addClusterPercentageSelectorsBuilder() { - return getClusterPercentageSelectorsFieldBuilder() - .addBuilder( - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder - addClusterPercentageSelectorsBuilder(int index) { - return getClusterPercentageSelectorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The percentage of game servers running this game server
-     * template in the selected clusters.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - public java.util.List - getClusterPercentageSelectorsBuilderList() { - return getClusterPercentageSelectorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder> - getClusterPercentageSelectorsFieldBuilder() { - if (clusterPercentageSelectorsBuilder_ == null) { - clusterPercentageSelectorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder>( - clusterPercentageSelectors_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - clusterPercentageSelectors_ = null; - } - return clusterPercentageSelectorsBuilder_; - } - - private java.lang.Object templateId_ = ""; - /** - * - * - *
-     * The ID of the game server template, specified by the user.
-     * 
- * - * string template_id = 4; - */ - public java.lang.String getTemplateId() { - java.lang.Object ref = templateId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - templateId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The ID of the game server template, specified by the user.
-     * 
- * - * string template_id = 4; - */ - public com.google.protobuf.ByteString getTemplateIdBytes() { - java.lang.Object ref = templateId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - templateId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The ID of the game server template, specified by the user.
-     * 
- * - * string template_id = 4; - */ - public Builder setTemplateId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - templateId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the game server template, specified by the user.
-     * 
- * - * string template_id = 4; - */ - public Builder clearTemplateId() { - - templateId_ = getDefaultInstance().getTemplateId(); - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the game server template, specified by the user.
-     * 
- * - * string template_id = 4; - */ - public Builder setTemplateIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - templateId_ = 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.GameServerTemplate) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GameServerTemplate) - private static final com.google.cloud.gaming.v1alpha.GameServerTemplate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GameServerTemplate(); - } - - public static com.google.cloud.gaming.v1alpha.GameServerTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GameServerTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameServerTemplate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.GameServerTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerTemplateOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerTemplateOrBuilder.java deleted file mode 100644 index 2c04756d..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerTemplateOrBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GameServerTemplateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GameServerTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The description of the game server template.
-   * 
- * - * string description = 1; - */ - java.lang.String getDescription(); - /** - * - * - *
-   * The description of the game server template.
-   * 
- * - * string description = 1; - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * The game server spec, which is sent to Agones.
-   * 
- * - * string spec = 2; - */ - java.lang.String getSpec(); - /** - * - * - *
-   * The game server spec, which is sent to Agones.
-   * 
- * - * string spec = 2; - */ - com.google.protobuf.ByteString getSpecBytes(); - - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - java.util.List - getClusterPercentageSelectorsList(); - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector getClusterPercentageSelectors( - int index); - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - int getClusterPercentageSelectorsCount(); - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - java.util.List - getClusterPercentageSelectorsOrBuilderList(); - /** - * - * - *
-   * Output only. The percentage of game servers running this game server
-   * template in the selected clusters.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selectors = 3; - * - */ - com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder - getClusterPercentageSelectorsOrBuilder(int index); - - /** - * - * - *
-   * The ID of the game server template, specified by the user.
-   * 
- * - * string template_id = 4; - */ - java.lang.String getTemplateId(); - /** - * - * - *
-   * The ID of the game server template, specified by the user.
-   * 
- * - * string template_id = 4; - */ - com.google.protobuf.ByteString getTemplateIdBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetAllocationPolicyRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetAllocationPolicyRequestOrBuilder.java deleted file mode 100644 index a82ec4f2..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetAllocationPolicyRequestOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GetAllocationPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the allocation policy to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the allocation policy to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequest.java index 3ac027ea..405fd243 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,12 @@ private GetGameServerClusterRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGameServerClusterRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GetGameServerClusterRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -113,10 +118,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The name of the game server cluster to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,10 +143,14 @@ public java.lang.String getName() { * *
    * Required. The name of the game server cluster to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -476,10 +489,14 @@ public Builder mergeFrom( * *
      * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -497,10 +514,14 @@ public java.lang.String getName() { * *
      * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -518,10 +539,15 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -537,10 +563,14 @@ public Builder setName(java.lang.String value) { * *
      * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -553,10 +583,15 @@ public Builder clearName() { * *
      * Required. The name of the game server cluster to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequestOrBuilder.java index 695de966..34d68b5d 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface GetGameServerClusterRequestOrBuilder * *
    * Required. The name of the game server cluster to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** @@ -39,10 +43,14 @@ public interface GetGameServerClusterRequestOrBuilder * *
    * Required. The name of the game server cluster to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetAllocationPolicyRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequest.java similarity index 64% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetAllocationPolicyRequest.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequest.java index b6abeb40..f1c42027 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetAllocationPolicyRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_configs.proto package com.google.cloud.gaming.v1alpha; @@ -22,31 +22,37 @@ * * *
- * Request message for AllocationPoliciesService.GetAllocationPolicy.
+ * Request message for GameServerConfigsService.GetGameServerConfig.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.GetAllocationPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerConfigRequest} */ -public final class GetAllocationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 +public final class GetGameServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) - GetAllocationPolicyRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) + GetGameServerConfigRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GetAllocationPolicyRequest.newBuilder() to construct. - private GetAllocationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetGameServerConfigRequest.newBuilder() to construct. + private GetGameServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAllocationPolicyRequest() { + private GetGameServerConfigRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGameServerConfigRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetAllocationPolicyRequest( + private GetGameServerConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -54,7 +60,6 @@ private GetAllocationPolicyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -92,18 +97,18 @@ private GetAllocationPolicyRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest.class, - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.class, + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -112,11 +117,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The name of the allocation policy to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+   * Required. The name of the game server config to retrieve, using the
+   * form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -133,11 +143,16 @@ public java.lang.String getName() { * * *
-   * Required. The name of the allocation policy to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+   * Required. The name of the game server config to retrieve, using the
+   * form:
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -190,11 +205,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest)) { + if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest other = - (com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) obj; + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest other = + (com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) obj; if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -215,71 +230,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest 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.GetAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest 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.GetAllocationPolicyRequest parseFrom(byte[] data) + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest 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.GetAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest 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.GetAllocationPolicyRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest 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.GetAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest 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.GetAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -297,7 +312,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest prototype) { + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -315,31 +330,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for AllocationPoliciesService.GetAllocationPolicy.
+   * Request message for GameServerConfigsService.GetGameServerConfig.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.GetAllocationPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest.class, - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.class, + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.Builder.class); } - // Construct using com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest.newBuilder() + // Construct using com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -363,18 +378,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_GetAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_GetGameServerConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest.getDefaultInstance(); + public com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest build() { - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest result = buildPartial(); + public com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest build() { + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -382,9 +397,9 @@ public com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest buildPartial() { - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest result = - new com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest(this); + public com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest buildPartial() { + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest result = + new com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -425,16 +440,16 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) other); + if (other instanceof com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) { + return mergeFrom((com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest other) { - if (other == com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest other) { + if (other == com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; @@ -455,12 +470,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest parsedMessage = null; + com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) e.getUnfinishedMessage(); + (com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -475,11 +490,16 @@ public Builder mergeFrom( * * *
-     * Required. The name of the allocation policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to retrieve, using the
+     * form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -496,11 +516,16 @@ public java.lang.String getName() { * * *
-     * Required. The name of the allocation policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to retrieve, using the
+     * form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -517,11 +542,17 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the allocation policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to retrieve, using the
+     * form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -536,11 +567,16 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the allocation policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to retrieve, using the
+     * form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -552,11 +588,17 @@ public Builder clearName() { * * *
-     * Required. The name of the allocation policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}`
+     * Required. The name of the game server config to retrieve, using the
+     * form:
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -580,42 +622,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetAllocationPolicyRequest) - private static final com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) + private static final com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest(); + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest(); } - public static com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public GetAllocationPolicyRequest parsePartialFrom( + public GetGameServerConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAllocationPolicyRequest(input, extensionRegistry); + return new GetGameServerConfigRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetAllocationPolicyRequest getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.GetGameServerConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CommitRolloutRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CommitRolloutRequestOrBuilder.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequestOrBuilder.java index c856279b..168a1235 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CommitRolloutRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,37 +14,45 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto +// source: google/cloud/gaming/v1alpha/game_server_configs.proto package com.google.cloud.gaming.v1alpha; -public interface CommitRolloutRequestOrBuilder +public interface GetGameServerConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.CommitRolloutRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetGameServerConfigRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. The name of the game server deployment, using the
+   * Required. The name of the game server config to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * Required. The name of the game server deployment, using the
+   * Required. The name of the game server config to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequest.java index 402725e1..737100af 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,6 +42,12 @@ private GetGameServerDeploymentRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGameServerDeploymentRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private GetGameServerDeploymentRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -115,10 +120,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The name of the game server deployment to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -137,10 +146,14 @@ public java.lang.String getName() { *
    * Required. The name of the game server deployment to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -483,10 +496,14 @@ public Builder mergeFrom( *
      * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -505,10 +522,14 @@ public java.lang.String getName() { *
      * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -527,10 +548,15 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -547,10 +573,14 @@ public Builder setName(java.lang.String value) { *
      * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -564,10 +594,15 @@ public Builder clearName() { *
      * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequestOrBuilder.java index 603f08cb..347c3814 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,10 +29,14 @@ public interface GetGameServerDeploymentRequestOrBuilder *
    * Required. The name of the game server deployment to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** @@ -41,10 +45,14 @@ public interface GetGameServerDeploymentRequestOrBuilder *
    * Required. The name of the game server deployment to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RevertRolloutRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequest.java similarity index 61% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RevertRolloutRequest.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequest.java index dac0bcfe..9a876b17 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RevertRolloutRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,31 +22,40 @@ * * *
- * Request message for GameServerDeploymentsService.RevertRollout.
+ * Request message for
+ * GameServerDeploymentsService.GetGameServerDeploymentRollout.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.RevertRolloutRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest} */ -public final class RevertRolloutRequest extends com.google.protobuf.GeneratedMessageV3 +public final class GetGameServerDeploymentRolloutRequest + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.RevertRolloutRequest) - RevertRolloutRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) + GetGameServerDeploymentRolloutRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use RevertRolloutRequest.newBuilder() to construct. - private RevertRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetGameServerDeploymentRolloutRequest.newBuilder() to construct. + private GetGameServerDeploymentRolloutRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RevertRolloutRequest() { + private GetGameServerDeploymentRolloutRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGameServerDeploymentRolloutRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RevertRolloutRequest( + private GetGameServerDeploymentRolloutRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -54,7 +63,6 @@ private RevertRolloutRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -93,17 +101,17 @@ private RevertRolloutRequest( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_descriptor; + .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_fieldAccessorTable + .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.RevertRolloutRequest.class, - com.google.cloud.gaming.v1alpha.RevertRolloutRequest.Builder.class); + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.class, + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -112,12 +120,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The name of the game server deployment to deploy, using the
+   * Required. The name of the game server deployment to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,12 +146,16 @@ public java.lang.String getName() { * * *
-   * Required. The name of the game server deployment to deploy, using the
+   * Required. The name of the game server deployment to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -192,11 +208,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.RevertRolloutRequest)) { + if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.RevertRolloutRequest other = - (com.google.cloud.gaming.v1alpha.RevertRolloutRequest) obj; + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest other = + (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) obj; if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -217,71 +233,72 @@ public int hashCode() { return hash; } - public static com.google.cloud.gaming.v1alpha.RevertRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.RevertRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest 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.RevertRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.RevertRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest 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.RevertRolloutRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.RevertRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest 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.RevertRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.RevertRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest 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.RevertRolloutRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.RevertRolloutRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest + 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.RevertRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest 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.RevertRolloutRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -298,7 +315,8 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gaming.v1alpha.RevertRolloutRequest prototype) { + public static Builder newBuilder( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -316,31 +334,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for GameServerDeploymentsService.RevertRollout.
+   * Request message for
+   * GameServerDeploymentsService.GetGameServerDeploymentRollout.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.RevertRolloutRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.RevertRolloutRequest) - com.google.cloud.gaming.v1alpha.RevertRolloutRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_descriptor; + .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_fieldAccessorTable + .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.RevertRolloutRequest.class, - com.google.cloud.gaming.v1alpha.RevertRolloutRequest.Builder.class); + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.class, + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.Builder.class); } - // Construct using com.google.cloud.gaming.v1alpha.RevertRolloutRequest.newBuilder() + // Construct using + // com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -365,17 +385,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_RevertRolloutRequest_descriptor; + .internal_static_google_cloud_gaming_v1alpha_GetGameServerDeploymentRolloutRequest_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.RevertRolloutRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.RevertRolloutRequest.getDefaultInstance(); + public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.RevertRolloutRequest build() { - com.google.cloud.gaming.v1alpha.RevertRolloutRequest result = buildPartial(); + public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest build() { + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -383,9 +405,9 @@ public com.google.cloud.gaming.v1alpha.RevertRolloutRequest build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.RevertRolloutRequest buildPartial() { - com.google.cloud.gaming.v1alpha.RevertRolloutRequest result = - new com.google.cloud.gaming.v1alpha.RevertRolloutRequest(this); + public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest buildPartial() { + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest result = + new com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest(this); result.name_ = name_; onBuilt(); return result; @@ -426,17 +448,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.RevertRolloutRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.RevertRolloutRequest) other); + if (other instanceof com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.RevertRolloutRequest other) { - if (other == com.google.cloud.gaming.v1alpha.RevertRolloutRequest.getDefaultInstance()) - return this; + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest other) { + if (other + == com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -456,12 +481,13 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.RevertRolloutRequest parsedMessage = null; + com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.gaming.v1alpha.RevertRolloutRequest) e.getUnfinishedMessage(); + (com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -476,12 +502,16 @@ public Builder mergeFrom( * * *
-     * Required. The name of the game server deployment to deploy, using the
+     * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -498,12 +528,16 @@ public java.lang.String getName() { * * *
-     * Required. The name of the game server deployment to deploy, using the
+     * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -520,12 +554,17 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the game server deployment to deploy, using the
+     * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -540,12 +579,16 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the game server deployment to deploy, using the
+     * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -557,12 +600,17 @@ public Builder clearName() { * * *
-     * Required. The name of the game server deployment to deploy, using the
+     * Required. The name of the game server deployment to retrieve, using the
      * form:
-     * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -586,42 +634,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.RevertRolloutRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.RevertRolloutRequest) - private static final com.google.cloud.gaming.v1alpha.RevertRolloutRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) + private static final com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.RevertRolloutRequest(); + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest(); } - public static com.google.cloud.gaming.v1alpha.RevertRolloutRequest getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public RevertRolloutRequest parsePartialFrom( + public GetGameServerDeploymentRolloutRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RevertRolloutRequest(input, extensionRegistry); + return new GetGameServerDeploymentRolloutRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.RevertRolloutRequest getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RevertRolloutRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RevertRolloutRequestOrBuilder.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequestOrBuilder.java index 9cc71a5b..17e60a28 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RevertRolloutRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,33 +18,41 @@ package com.google.cloud.gaming.v1alpha; -public interface RevertRolloutRequestOrBuilder +public interface GetGameServerDeploymentRolloutRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.RevertRolloutRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetGameServerDeploymentRolloutRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. The name of the game server deployment to deploy, using the
+   * Required. The name of the game server deployment to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** * * *
-   * Required. The name of the game server deployment to deploy, using the
+   * Required. The name of the game server deployment to retrieve, using the
    * form:
-   * `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequest.java index 51a4cc19..bef0bdbc 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,12 @@ private GetRealmRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetRealmRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GetRealmRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -113,10 +118,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The name of the realm to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+   * `projects/{project}/locations/{location}/realms/{realm}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,10 +143,14 @@ public java.lang.String getName() { * *
    * Required. The name of the realm to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+   * `projects/{project}/locations/{location}/realms/{realm}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -474,10 +487,14 @@ public Builder mergeFrom( * *
      * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -495,10 +512,14 @@ public java.lang.String getName() { * *
      * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -516,10 +537,15 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -535,10 +561,14 @@ public Builder setName(java.lang.String value) { * *
      * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -551,10 +581,15 @@ public Builder clearName() { * *
      * Required. The name of the realm to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+     * `projects/{project}/locations/{location}/realms/{realm}`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequestOrBuilder.java index 7952fc1d..f5015dfe 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface GetRealmRequestOrBuilder * *
    * Required. The name of the realm to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+   * `projects/{project}/locations/{location}/realms/{realm}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. */ java.lang.String getName(); /** @@ -39,10 +43,14 @@ public interface GetRealmRequestOrBuilder * *
    * Required. The name of the realm to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`
+   * `projects/{project}/locations/{location}/realms/{realm}`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetScalingPolicyRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetScalingPolicyRequestOrBuilder.java deleted file mode 100644 index d65bacd7..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetScalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface GetScalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GetScalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the scaling policy to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the scaling policy to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReference.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReference.java index 7c9b32eb..80b0f1b5 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReference.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ * * *
- * GkeClusterReference represents a reference of a GKE cluster.
+ * GkeClusterReference represents a reference to a GKE cluster.
  * 
* * Protobuf type {@code google.cloud.gaming.v1alpha.GkeClusterReference} @@ -41,6 +41,12 @@ private GkeClusterReference() { cluster_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeClusterReference(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GkeClusterReference( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -114,18 +119,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * The full or partial name of a GKE cluster, using one of the following
    * forms:
-   * <ul>
-   *    <li>`projects/{project_id}/locations/{location}/clusters/{cluster_id}`
-   *    </li>
-   *    <li>`locations/{location}/clusters/{cluster_id}`</li>
-   *    <li>`{cluster_id}`</li>
-   * </ul>
+   *  * `projects/{project}/locations/{location}/clusters/{cluster}`
+   *  * `locations/{location}/clusters/{cluster}`
+   *  * `{cluster}`
    * If project and location are not specified, the project and location of the
    * GameServerCluster resource are used to generate the full name of the
    * GKE cluster.
    * 
* * string cluster = 1; + * + * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; @@ -144,18 +148,17 @@ public java.lang.String getCluster() { *
    * The full or partial name of a GKE cluster, using one of the following
    * forms:
-   * <ul>
-   *    <li>`projects/{project_id}/locations/{location}/clusters/{cluster_id}`
-   *    </li>
-   *    <li>`locations/{location}/clusters/{cluster_id}`</li>
-   *    <li>`{cluster_id}`</li>
-   * </ul>
+   *  * `projects/{project}/locations/{location}/clusters/{cluster}`
+   *  * `locations/{location}/clusters/{cluster}`
+   *  * `{cluster}`
    * If project and location are not specified, the project and location of the
    * GameServerCluster resource are used to generate the full name of the
    * GKE cluster.
    * 
* * string cluster = 1; + * + * @return The bytes for cluster. */ public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; @@ -332,7 +335,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * GkeClusterReference represents a reference of a GKE cluster.
+   * GkeClusterReference represents a reference to a GKE cluster.
    * 
* * Protobuf type {@code google.cloud.gaming.v1alpha.GkeClusterReference} @@ -494,18 +497,17 @@ public Builder mergeFrom( *
      * The full or partial name of a GKE cluster, using one of the following
      * forms:
-     * <ul>
-     *    <li>`projects/{project_id}/locations/{location}/clusters/{cluster_id}`
-     *    </li>
-     *    <li>`locations/{location}/clusters/{cluster_id}`</li>
-     *    <li>`{cluster_id}`</li>
-     * </ul>
+     *  * `projects/{project}/locations/{location}/clusters/{cluster}`
+     *  * `locations/{location}/clusters/{cluster}`
+     *  * `{cluster}`
      * If project and location are not specified, the project and location of the
      * GameServerCluster resource are used to generate the full name of the
      * GKE cluster.
      * 
* * string cluster = 1; + * + * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; @@ -524,18 +526,17 @@ public java.lang.String getCluster() { *
      * The full or partial name of a GKE cluster, using one of the following
      * forms:
-     * <ul>
-     *    <li>`projects/{project_id}/locations/{location}/clusters/{cluster_id}`
-     *    </li>
-     *    <li>`locations/{location}/clusters/{cluster_id}`</li>
-     *    <li>`{cluster_id}`</li>
-     * </ul>
+     *  * `projects/{project}/locations/{location}/clusters/{cluster}`
+     *  * `locations/{location}/clusters/{cluster}`
+     *  * `{cluster}`
      * If project and location are not specified, the project and location of the
      * GameServerCluster resource are used to generate the full name of the
      * GKE cluster.
      * 
* * string cluster = 1; + * + * @return The bytes for cluster. */ public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; @@ -554,18 +555,18 @@ public com.google.protobuf.ByteString getClusterBytes() { *
      * The full or partial name of a GKE cluster, using one of the following
      * forms:
-     * <ul>
-     *    <li>`projects/{project_id}/locations/{location}/clusters/{cluster_id}`
-     *    </li>
-     *    <li>`locations/{location}/clusters/{cluster_id}`</li>
-     *    <li>`{cluster_id}`</li>
-     * </ul>
+     *  * `projects/{project}/locations/{location}/clusters/{cluster}`
+     *  * `locations/{location}/clusters/{cluster}`
+     *  * `{cluster}`
      * If project and location are not specified, the project and location of the
      * GameServerCluster resource are used to generate the full name of the
      * GKE cluster.
      * 
* * string cluster = 1; + * + * @param value The cluster to set. + * @return This builder for chaining. */ public Builder setCluster(java.lang.String value) { if (value == null) { @@ -582,18 +583,17 @@ public Builder setCluster(java.lang.String value) { *
      * The full or partial name of a GKE cluster, using one of the following
      * forms:
-     * <ul>
-     *    <li>`projects/{project_id}/locations/{location}/clusters/{cluster_id}`
-     *    </li>
-     *    <li>`locations/{location}/clusters/{cluster_id}`</li>
-     *    <li>`{cluster_id}`</li>
-     * </ul>
+     *  * `projects/{project}/locations/{location}/clusters/{cluster}`
+     *  * `locations/{location}/clusters/{cluster}`
+     *  * `{cluster}`
      * If project and location are not specified, the project and location of the
      * GameServerCluster resource are used to generate the full name of the
      * GKE cluster.
      * 
* * string cluster = 1; + * + * @return This builder for chaining. */ public Builder clearCluster() { @@ -607,18 +607,18 @@ public Builder clearCluster() { *
      * The full or partial name of a GKE cluster, using one of the following
      * forms:
-     * <ul>
-     *    <li>`projects/{project_id}/locations/{location}/clusters/{cluster_id}`
-     *    </li>
-     *    <li>`locations/{location}/clusters/{cluster_id}`</li>
-     *    <li>`{cluster_id}`</li>
-     * </ul>
+     *  * `projects/{project}/locations/{location}/clusters/{cluster}`
+     *  * `locations/{location}/clusters/{cluster}`
+     *  * `{cluster}`
      * If project and location are not specified, the project and location of the
      * GameServerCluster resource are used to generate the full name of the
      * GKE cluster.
      * 
* * string cluster = 1; + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. */ public Builder setClusterBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReferenceOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReferenceOrBuilder.java index 1b5ae491..4073b629 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReferenceOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReferenceOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,18 +29,17 @@ public interface GkeClusterReferenceOrBuilder *
    * The full or partial name of a GKE cluster, using one of the following
    * forms:
-   * <ul>
-   *    <li>`projects/{project_id}/locations/{location}/clusters/{cluster_id}`
-   *    </li>
-   *    <li>`locations/{location}/clusters/{cluster_id}`</li>
-   *    <li>`{cluster_id}`</li>
-   * </ul>
+   *  * `projects/{project}/locations/{location}/clusters/{cluster}`
+   *  * `locations/{location}/clusters/{cluster}`
+   *  * `{cluster}`
    * If project and location are not specified, the project and location of the
    * GameServerCluster resource are used to generate the full name of the
    * GKE cluster.
    * 
* * string cluster = 1; + * + * @return The cluster. */ java.lang.String getCluster(); /** @@ -49,18 +48,17 @@ public interface GkeClusterReferenceOrBuilder *
    * The full or partial name of a GKE cluster, using one of the following
    * forms:
-   * <ul>
-   *    <li>`projects/{project_id}/locations/{location}/clusters/{cluster_id}`
-   *    </li>
-   *    <li>`locations/{location}/clusters/{cluster_id}`</li>
-   *    <li>`{cluster_id}`</li>
-   * </ul>
+   *  * `projects/{project}/locations/{location}/clusters/{cluster}`
+   *  * `locations/{location}/clusters/{cluster}`
+   *  * `{cluster}`
    * If project and location are not specified, the project and location of the
    * GameServerCluster resource are used to generate the full name of the
    * GKE cluster.
    * 
* * string cluster = 1; + * + * @return The bytes for cluster. */ com.google.protobuf.ByteString getClusterBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetScalingPolicyRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReference.java similarity index 53% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetScalingPolicyRequest.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReference.java index 13bf78ce..a537c9d3 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetScalingPolicyRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto package com.google.cloud.gaming.v1alpha; @@ -22,23 +22,30 @@ * * *
- * Request message for ScalingPoliciesService.GetScalingPolicy.
+ * GkeHubClusterReference represents a reference to a Kubernetes cluster
+ * registered through GKE Hub.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.GetScalingPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.GkeHubClusterReference} */ -public final class GetScalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 +public final class GkeHubClusterReference extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GetScalingPolicyRequest) - GetScalingPolicyRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.GkeHubClusterReference) + GkeHubClusterReferenceOrBuilder { private static final long serialVersionUID = 0L; - // Use GetScalingPolicyRequest.newBuilder() to construct. - private GetScalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GkeHubClusterReference.newBuilder() to construct. + private GkeHubClusterReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScalingPolicyRequest() { - name_ = ""; + private GkeHubClusterReference() { + membership_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeHubClusterReference(); } @java.lang.Override @@ -46,7 +53,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetScalingPolicyRequest( + private GkeHubClusterReference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -54,7 +61,6 @@ private GetScalingPolicyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -69,7 +75,7 @@ private GetScalingPolicyRequest( { java.lang.String s = input.readStringRequireUtf8(); - name_ = s; + membership_ = s; break; } default: @@ -92,40 +98,50 @@ private GetScalingPolicyRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest.class, - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.class, + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder.class); } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + public static final int MEMBERSHIP_FIELD_NUMBER = 1; + private volatile java.lang.Object membership_; /** * * *
-   * Required. The name of the scaling policy to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
+   * The full or partial name of a GKE Hub membership, using one of the
+   * following forms:
+   *  *
+   * `https:
+   * //gkehub.googleapis.com/v1beta1/projects
+   * // /{project_id}/locations/global/memberships/{membership_id}`
+   *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
+   *  * `{membership_id}`
+   * If project is not specified, the project of the GameServerCluster resource
+   * is used to generate the full name of the GKE Hub membership.
    * 
* - * string name = 1; + * string membership = 1; + * + * @return The membership. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getMembership() { + java.lang.Object ref = membership_; 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; + membership_ = s; return s; } } @@ -133,18 +149,28 @@ public java.lang.String getName() { * * *
-   * Required. The name of the scaling policy to retrieve, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
+   * The full or partial name of a GKE Hub membership, using one of the
+   * following forms:
+   *  *
+   * `https:
+   * //gkehub.googleapis.com/v1beta1/projects
+   * // /{project_id}/locations/global/memberships/{membership_id}`
+   *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
+   *  * `{membership_id}`
+   * If project is not specified, the project of the GameServerCluster resource
+   * is used to generate the full name of the GKE Hub membership.
    * 
* - * string name = 1; + * string membership = 1; + * + * @return The bytes for membership. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + public com.google.protobuf.ByteString getMembershipBytes() { + java.lang.Object ref = membership_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; + membership_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -165,8 +191,8 @@ public final boolean isInitialized() { @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 (!getMembershipBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membership_); } unknownFields.writeTo(output); } @@ -177,8 +203,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!getMembershipBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membership_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -190,13 +216,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest)) { + if (!(obj instanceof com.google.cloud.gaming.v1alpha.GkeHubClusterReference)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest other = - (com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest) obj; + com.google.cloud.gaming.v1alpha.GkeHubClusterReference other = + (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) obj; - if (!getName().equals(other.getName())) return false; + if (!getMembership().equals(other.getMembership())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,78 +234,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getMembership().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference 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.GetScalingPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference 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.GetScalingPolicyRequest parseFrom(byte[] data) + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference 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.GetScalingPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference 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.GetScalingPolicyRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference 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.GetScalingPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference 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.GetScalingPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -297,7 +323,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest prototype) { + com.google.cloud.gaming.v1alpha.GkeHubClusterReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -315,31 +341,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for ScalingPoliciesService.GetScalingPolicy.
+   * GkeHubClusterReference represents a reference to a Kubernetes cluster
+   * registered through GKE Hub.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.GetScalingPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.GkeHubClusterReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GetScalingPolicyRequest) - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.GkeHubClusterReference) + com.google.cloud.gaming.v1alpha.GkeHubClusterReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest.class, - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.class, + com.google.cloud.gaming.v1alpha.GkeHubClusterReference.Builder.class); } - // Construct using com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest.newBuilder() + // Construct using com.google.cloud.gaming.v1alpha.GkeHubClusterReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -356,25 +383,25 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - name_ = ""; + membership_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_GkeHubClusterReference_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest.getDefaultInstance(); + public com.google.cloud.gaming.v1alpha.GkeHubClusterReference getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest build() { - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest result = buildPartial(); + public com.google.cloud.gaming.v1alpha.GkeHubClusterReference build() { + com.google.cloud.gaming.v1alpha.GkeHubClusterReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -382,10 +409,10 @@ public com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest buildPartial() { - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest result = - new com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest(this); - result.name_ = name_; + public com.google.cloud.gaming.v1alpha.GkeHubClusterReference buildPartial() { + com.google.cloud.gaming.v1alpha.GkeHubClusterReference result = + new com.google.cloud.gaming.v1alpha.GkeHubClusterReference(this); + result.membership_ = membership_; onBuilt(); return result; } @@ -425,19 +452,19 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest) other); + if (other instanceof com.google.cloud.gaming.v1alpha.GkeHubClusterReference) { + return mergeFrom((com.google.cloud.gaming.v1alpha.GkeHubClusterReference) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest other) { - if (other == com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.GkeHubClusterReference other) { + if (other == com.google.cloud.gaming.v1alpha.GkeHubClusterReference.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; + if (!other.getMembership().isEmpty()) { + membership_ = other.membership_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -455,12 +482,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest parsedMessage = null; + com.google.cloud.gaming.v1alpha.GkeHubClusterReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest) e.getUnfinishedMessage(); + (com.google.cloud.gaming.v1alpha.GkeHubClusterReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -470,23 +497,33 @@ public Builder mergeFrom( return this; } - private java.lang.Object name_ = ""; + private java.lang.Object membership_ = ""; /** * * *
-     * Required. The name of the scaling policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
+     * The full or partial name of a GKE Hub membership, using one of the
+     * following forms:
+     *  *
+     * `https:
+     * //gkehub.googleapis.com/v1beta1/projects
+     * // /{project_id}/locations/global/memberships/{membership_id}`
+     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
+     *  * `{membership_id}`
+     * If project is not specified, the project of the GameServerCluster resource
+     * is used to generate the full name of the GKE Hub membership.
      * 
* - * string name = 1; + * string membership = 1; + * + * @return The membership. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getMembership() { + java.lang.Object ref = membership_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - name_ = s; + membership_ = s; return s; } else { return (java.lang.String) ref; @@ -496,18 +533,28 @@ public java.lang.String getName() { * * *
-     * Required. The name of the scaling policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
+     * The full or partial name of a GKE Hub membership, using one of the
+     * following forms:
+     *  *
+     * `https:
+     * //gkehub.googleapis.com/v1beta1/projects
+     * // /{project_id}/locations/global/memberships/{membership_id}`
+     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
+     *  * `{membership_id}`
+     * If project is not specified, the project of the GameServerCluster resource
+     * is used to generate the full name of the GKE Hub membership.
      * 
* - * string name = 1; + * string membership = 1; + * + * @return The bytes for membership. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + public com.google.protobuf.ByteString getMembershipBytes() { + java.lang.Object ref = membership_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; + membership_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -517,18 +564,29 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the scaling policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
+     * The full or partial name of a GKE Hub membership, using one of the
+     * following forms:
+     *  *
+     * `https:
+     * //gkehub.googleapis.com/v1beta1/projects
+     * // /{project_id}/locations/global/memberships/{membership_id}`
+     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
+     *  * `{membership_id}`
+     * If project is not specified, the project of the GameServerCluster resource
+     * is used to generate the full name of the GKE Hub membership.
      * 
* - * string name = 1; + * string membership = 1; + * + * @param value The membership to set. + * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setMembership(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + membership_ = value; onChanged(); return this; } @@ -536,15 +594,25 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the scaling policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
+     * The full or partial name of a GKE Hub membership, using one of the
+     * following forms:
+     *  *
+     * `https:
+     * //gkehub.googleapis.com/v1beta1/projects
+     * // /{project_id}/locations/global/memberships/{membership_id}`
+     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
+     *  * `{membership_id}`
+     * If project is not specified, the project of the GameServerCluster resource
+     * is used to generate the full name of the GKE Hub membership.
      * 
* - * string name = 1; + * string membership = 1; + * + * @return This builder for chaining. */ - public Builder clearName() { + public Builder clearMembership() { - name_ = getDefaultInstance().getName(); + membership_ = getDefaultInstance().getMembership(); onChanged(); return this; } @@ -552,19 +620,30 @@ public Builder clearName() { * * *
-     * Required. The name of the scaling policy to retrieve, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`
+     * The full or partial name of a GKE Hub membership, using one of the
+     * following forms:
+     *  *
+     * `https:
+     * //gkehub.googleapis.com/v1beta1/projects
+     * // /{project_id}/locations/global/memberships/{membership_id}`
+     *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
+     *  * `{membership_id}`
+     * If project is not specified, the project of the GameServerCluster resource
+     * is used to generate the full name of the GKE Hub membership.
      * 
* - * string name = 1; + * string membership = 1; + * + * @param value The bytes for membership to set. + * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setMembershipBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + membership_ = value; onChanged(); return this; } @@ -580,42 +659,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GetScalingPolicyRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.GkeHubClusterReference) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GetScalingPolicyRequest) - private static final com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.GkeHubClusterReference) + private static final com.google.cloud.gaming.v1alpha.GkeHubClusterReference DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest(); + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.GkeHubClusterReference(); } - public static com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.GkeHubClusterReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public GetScalingPolicyRequest parsePartialFrom( + public GkeHubClusterReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScalingPolicyRequest(input, extensionRegistry); + return new GkeHubClusterReference(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.GetScalingPolicyRequest getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.GkeHubClusterReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReferenceOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReferenceOrBuilder.java new file mode 100644 index 00000000..ce240f83 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReferenceOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +public interface GkeHubClusterReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.GkeHubClusterReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The full or partial name of a GKE Hub membership, using one of the
+   * following forms:
+   *  *
+   * `https:
+   * //gkehub.googleapis.com/v1beta1/projects
+   * // /{project_id}/locations/global/memberships/{membership_id}`
+   *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
+   *  * `{membership_id}`
+   * If project is not specified, the project of the GameServerCluster resource
+   * is used to generate the full name of the GKE Hub membership.
+   * 
+ * + * string membership = 1; + * + * @return The membership. + */ + java.lang.String getMembership(); + /** + * + * + *
+   * The full or partial name of a GKE Hub membership, using one of the
+   * following forms:
+   *  *
+   * `https:
+   * //gkehub.googleapis.com/v1beta1/projects
+   * // /{project_id}/locations/global/memberships/{membership_id}`
+   *  * `projects/{project_id}/locations/global/memberships/{membership_id}`
+   *  * `{membership_id}`
+   * If project is not specified, the project of the GameServerCluster resource
+   * is used to generate the full name of the GKE Hub membership.
+   * 
+ * + * string membership = 1; + * + * @return The bytes for membership. + */ + com.google.protobuf.ByteString getMembershipBytes(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelector.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelector.java index 3fcb3ace..a0ca464f 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelector.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelector.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,6 +39,12 @@ private LabelSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) private LabelSelector() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelSelector(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -146,7 +152,15 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } - /** map<string, string> labels = 1; */ + /** + * + * + *
+   * Resource labels for this selector.
+   * 
+ * + * map<string, string> labels = 1; + */ public boolean containsLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -158,11 +172,27 @@ public boolean containsLabels(java.lang.String key) { public java.util.Map getLabels() { return getLabelsMap(); } - /** map<string, string> labels = 1; */ + /** + * + * + *
+   * Resource labels for this selector.
+   * 
+ * + * map<string, string> labels = 1; + */ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } - /** map<string, string> labels = 1; */ + /** + * + * + *
+   * Resource labels for this selector.
+   * 
+ * + * map<string, string> labels = 1; + */ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); @@ -170,7 +200,15 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } - /** map<string, string> labels = 1; */ + /** + * + * + *
+   * Resource labels for this selector.
+   * 
+ * + * map<string, string> labels = 1; + */ public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -551,7 +589,15 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } - /** map<string, string> labels = 1; */ + /** + * + * + *
+     * Resource labels for this selector.
+     * 
+ * + * map<string, string> labels = 1; + */ public boolean containsLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -563,11 +609,27 @@ public boolean containsLabels(java.lang.String key) { public java.util.Map getLabels() { return getLabelsMap(); } - /** map<string, string> labels = 1; */ + /** + * + * + *
+     * Resource labels for this selector.
+     * 
+ * + * map<string, string> labels = 1; + */ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } - /** map<string, string> labels = 1; */ + /** + * + * + *
+     * Resource labels for this selector.
+     * 
+ * + * map<string, string> labels = 1; + */ public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { @@ -576,7 +638,15 @@ public java.lang.String getLabelsOrDefault( java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } - /** map<string, string> labels = 1; */ + /** + * + * + *
+     * Resource labels for this selector.
+     * 
+ * + * map<string, string> labels = 1; + */ public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -592,7 +662,15 @@ public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } - /** map<string, string> labels = 1; */ + /** + * + * + *
+     * Resource labels for this selector.
+     * 
+ * + * map<string, string> labels = 1; + */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -605,7 +683,15 @@ public Builder removeLabels(java.lang.String key) { public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } - /** map<string, string> labels = 1; */ + /** + * + * + *
+     * Resource labels for this selector.
+     * 
+ * + * map<string, string> labels = 1; + */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); @@ -616,7 +702,15 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { internalGetMutableLabels().getMutableMap().put(key, value); return this; } - /** map<string, string> labels = 1; */ + /** + * + * + *
+     * Resource labels for this selector.
+     * 
+ * + * map<string, string> labels = 1; + */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); return this; diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelectorOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelectorOrBuilder.java index 9a7f4c80..022d1226 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelectorOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelectorOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,17 +23,57 @@ public interface LabelSelectorOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.LabelSelector) com.google.protobuf.MessageOrBuilder { - /** map<string, string> labels = 1; */ + /** + * + * + *
+   * Resource labels for this selector.
+   * 
+ * + * map<string, string> labels = 1; + */ int getLabelsCount(); - /** map<string, string> labels = 1; */ + /** + * + * + *
+   * Resource labels for this selector.
+   * 
+ * + * map<string, string> labels = 1; + */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); - /** map<string, string> labels = 1; */ + /** + * + * + *
+   * Resource labels for this selector.
+   * 
+ * + * map<string, string> labels = 1; + */ java.util.Map getLabelsMap(); - /** map<string, string> labels = 1; */ + /** + * + * + *
+   * Resource labels for this selector.
+   * 
+ * + * map<string, string> labels = 1; + */ java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** map<string, string> labels = 1; */ + /** + * + * + *
+   * Resource labels for this selector.
+   * 
+ * + * map<string, string> labels = 1; + */ java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesResponse.java deleted file mode 100644 index 19540de5..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesResponse.java +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for AllocationPoliciesService.ListAllocationPolicies.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse} - */ -public final class ListAllocationPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse) - ListAllocationPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListAllocationPoliciesResponse.newBuilder() to construct. - private ListAllocationPoliciesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListAllocationPoliciesResponse() { - allocationPolicies_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListAllocationPoliciesResponse( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allocationPolicies_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - allocationPolicies_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.AllocationPolicy.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - allocationPolicies_ = java.util.Collections.unmodifiableList(allocationPolicies_); - } - 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_ListAllocationPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.class, - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.Builder.class); - } - - private int bitField0_; - public static final int ALLOCATION_POLICIES_FIELD_NUMBER = 1; - private java.util.List allocationPolicies_; - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public java.util.List - getAllocationPoliciesList() { - return allocationPolicies_; - } - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public java.util.List - getAllocationPoliciesOrBuilderList() { - return allocationPolicies_; - } - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public int getAllocationPoliciesCount() { - return allocationPolicies_.size(); - } - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicies(int index) { - return allocationPolicies_.get(index); - } - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder getAllocationPoliciesOrBuilder( - int index) { - return allocationPolicies_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - 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(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = 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 { - for (int i = 0; i < allocationPolicies_.size(); i++) { - output.writeMessage(1, allocationPolicies_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < allocationPolicies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, allocationPolicies_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.ListAllocationPoliciesResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse other = - (com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse) obj; - - if (!getAllocationPoliciesList().equals(other.getAllocationPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAllocationPoliciesCount() > 0) { - hash = (37 * hash) + ALLOCATION_POLICIES_FIELD_NUMBER; - hash = (53 * hash) + getAllocationPoliciesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse 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.ListAllocationPoliciesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse 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.ListAllocationPoliciesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse 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.ListAllocationPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse 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.ListAllocationPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse 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.ListAllocationPoliciesResponse 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.ListAllocationPoliciesResponse 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.ListAllocationPoliciesResponse 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; - } - /** - * - * - *
-   * Response message for AllocationPoliciesService.ListAllocationPolicies.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse) - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.class, - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAllocationPoliciesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (allocationPoliciesBuilder_ == null) { - allocationPolicies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - allocationPoliciesBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse - getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse build() { - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse buildPartial() { - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse result = - new com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (allocationPoliciesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - allocationPolicies_ = java.util.Collections.unmodifiableList(allocationPolicies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.allocationPolicies_ = allocationPolicies_; - } else { - result.allocationPolicies_ = allocationPoliciesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse other) { - if (other - == com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.getDefaultInstance()) - return this; - if (allocationPoliciesBuilder_ == null) { - if (!other.allocationPolicies_.isEmpty()) { - if (allocationPolicies_.isEmpty()) { - allocationPolicies_ = other.allocationPolicies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAllocationPoliciesIsMutable(); - allocationPolicies_.addAll(other.allocationPolicies_); - } - onChanged(); - } - } else { - if (!other.allocationPolicies_.isEmpty()) { - if (allocationPoliciesBuilder_.isEmpty()) { - allocationPoliciesBuilder_.dispose(); - allocationPoliciesBuilder_ = null; - allocationPolicies_ = other.allocationPolicies_; - bitField0_ = (bitField0_ & ~0x00000001); - allocationPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAllocationPoliciesFieldBuilder() - : null; - } else { - allocationPoliciesBuilder_.addAllMessages(other.allocationPolicies_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List allocationPolicies_ = - java.util.Collections.emptyList(); - - private void ensureAllocationPoliciesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - allocationPolicies_ = - new java.util.ArrayList( - allocationPolicies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.AllocationPolicy, - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder, - com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder> - allocationPoliciesBuilder_; - - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public java.util.List - getAllocationPoliciesList() { - if (allocationPoliciesBuilder_ == null) { - return java.util.Collections.unmodifiableList(allocationPolicies_); - } else { - return allocationPoliciesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public int getAllocationPoliciesCount() { - if (allocationPoliciesBuilder_ == null) { - return allocationPolicies_.size(); - } else { - return allocationPoliciesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicies(int index) { - if (allocationPoliciesBuilder_ == null) { - return allocationPolicies_.get(index); - } else { - return allocationPoliciesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public Builder setAllocationPolicies( - int index, com.google.cloud.gaming.v1alpha.AllocationPolicy value) { - if (allocationPoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllocationPoliciesIsMutable(); - allocationPolicies_.set(index, value); - onChanged(); - } else { - allocationPoliciesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public Builder setAllocationPolicies( - int index, com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder builderForValue) { - if (allocationPoliciesBuilder_ == null) { - ensureAllocationPoliciesIsMutable(); - allocationPolicies_.set(index, builderForValue.build()); - onChanged(); - } else { - allocationPoliciesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public Builder addAllocationPolicies(com.google.cloud.gaming.v1alpha.AllocationPolicy value) { - if (allocationPoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllocationPoliciesIsMutable(); - allocationPolicies_.add(value); - onChanged(); - } else { - allocationPoliciesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public Builder addAllocationPolicies( - int index, com.google.cloud.gaming.v1alpha.AllocationPolicy value) { - if (allocationPoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllocationPoliciesIsMutable(); - allocationPolicies_.add(index, value); - onChanged(); - } else { - allocationPoliciesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public Builder addAllocationPolicies( - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder builderForValue) { - if (allocationPoliciesBuilder_ == null) { - ensureAllocationPoliciesIsMutable(); - allocationPolicies_.add(builderForValue.build()); - onChanged(); - } else { - allocationPoliciesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public Builder addAllocationPolicies( - int index, com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder builderForValue) { - if (allocationPoliciesBuilder_ == null) { - ensureAllocationPoliciesIsMutable(); - allocationPolicies_.add(index, builderForValue.build()); - onChanged(); - } else { - allocationPoliciesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public Builder addAllAllocationPolicies( - java.lang.Iterable values) { - if (allocationPoliciesBuilder_ == null) { - ensureAllocationPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allocationPolicies_); - onChanged(); - } else { - allocationPoliciesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public Builder clearAllocationPolicies() { - if (allocationPoliciesBuilder_ == null) { - allocationPolicies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - allocationPoliciesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public Builder removeAllocationPolicies(int index) { - if (allocationPoliciesBuilder_ == null) { - ensureAllocationPoliciesIsMutable(); - allocationPolicies_.remove(index); - onChanged(); - } else { - allocationPoliciesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder getAllocationPoliciesBuilder( - int index) { - return getAllocationPoliciesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder getAllocationPoliciesOrBuilder( - int index) { - if (allocationPoliciesBuilder_ == null) { - return allocationPolicies_.get(index); - } else { - return allocationPoliciesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public java.util.List - getAllocationPoliciesOrBuilderList() { - if (allocationPoliciesBuilder_ != null) { - return allocationPoliciesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(allocationPolicies_); - } - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder addAllocationPoliciesBuilder() { - return getAllocationPoliciesFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance()); - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder addAllocationPoliciesBuilder( - int index) { - return getAllocationPoliciesFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance()); - } - /** - * - * - *
-     * The list of allocation policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - public java.util.List - getAllocationPoliciesBuilderList() { - return getAllocationPoliciesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.AllocationPolicy, - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder, - com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder> - getAllocationPoliciesFieldBuilder() { - if (allocationPoliciesBuilder_ == null) { - allocationPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.AllocationPolicy, - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder, - com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder>( - allocationPolicies_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - allocationPolicies_ = null; - } - return allocationPoliciesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = 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.ListAllocationPoliciesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse) - private static final com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse(); - } - - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAllocationPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAllocationPoliciesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesResponseOrBuilder.java deleted file mode 100644 index 8435f6e7..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesResponseOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListAllocationPoliciesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - java.util.List getAllocationPoliciesList(); - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicies(int index); - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - int getAllocationPoliciesCount(); - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - java.util.List - getAllocationPoliciesOrBuilderList(); - /** - * - * - *
-   * The list of allocation policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policies = 1; - */ - com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder getAllocationPoliciesOrBuilder( - int index); - - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequest.java index 26c5fbc2..9432e3d5 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,6 +44,12 @@ private ListGameServerClustersRequest() { orderBy_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGameServerClustersRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private ListGameServerClustersRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -142,10 +147,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource name, using the form:
-   * "projects/{project_id}/locations/{location}/realms/{realm-id}".
+   * "projects/{project}/locations/{location}/realms/{realm-id}".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -163,10 +172,14 @@ public java.lang.String getParent() { * *
    * Required. The parent resource name, using the form:
-   * "projects/{project_id}/locations/{location}/realms/{realm-id}".
+   * "projects/{project}/locations/{location}/realms/{realm-id}".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -193,7 +206,9 @@ public com.google.protobuf.ByteString getParentBytes() { * determine if there are more GameServerClusters left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -209,7 +224,9 @@ public int getPageSize() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -230,7 +247,9 @@ public java.lang.String getPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -253,7 +272,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -273,7 +294,9 @@ public java.lang.String getFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -297,7 +320,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -318,7 +343,9 @@ public java.lang.String getOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -723,10 +750,14 @@ public Builder mergeFrom( * *
      * Required. The parent resource name, using the form:
-     * "projects/{project_id}/locations/{location}/realms/{realm-id}".
+     * "projects/{project}/locations/{location}/realms/{realm-id}".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -744,10 +775,14 @@ public java.lang.String getParent() { * *
      * Required. The parent resource name, using the form:
-     * "projects/{project_id}/locations/{location}/realms/{realm-id}".
+     * "projects/{project}/locations/{location}/realms/{realm-id}".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -765,10 +800,15 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource name, using the form:
-     * "projects/{project_id}/locations/{location}/realms/{realm-id}".
+     * "projects/{project}/locations/{location}/realms/{realm-id}".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -784,10 +824,14 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource name, using the form:
-     * "projects/{project_id}/locations/{location}/realms/{realm-id}".
+     * "projects/{project}/locations/{location}/realms/{realm-id}".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -800,10 +844,15 @@ public Builder clearParent() { * *
      * Required. The parent resource name, using the form:
-     * "projects/{project_id}/locations/{location}/realms/{realm-id}".
+     * "projects/{project}/locations/{location}/realms/{realm-id}".
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -828,7 +877,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * determine if there are more GameServerClusters left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -844,7 +895,10 @@ public int getPageSize() { * determine if there are more GameServerClusters left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -863,7 +917,9 @@ public Builder setPageSize(int value) { * determine if there are more GameServerClusters left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -881,7 +937,9 @@ public Builder clearPageSize() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -902,7 +960,9 @@ public java.lang.String getPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -923,7 +983,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -942,7 +1005,9 @@ public Builder setPageToken(java.lang.String value) { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -958,7 +1023,10 @@ public Builder clearPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -979,7 +1047,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -999,7 +1069,9 @@ public java.lang.String getFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1019,7 +1091,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1037,7 +1112,9 @@ public Builder setFilter(java.lang.String value) { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1052,7 +1129,10 @@ public Builder clearFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1074,7 +1154,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -1095,7 +1177,9 @@ public java.lang.String getOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -1116,7 +1200,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. */ public Builder setOrderBy(java.lang.String value) { if (value == null) { @@ -1135,7 +1222,9 @@ public Builder setOrderBy(java.lang.String value) { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1151,7 +1240,10 @@ public Builder clearOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. */ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequestOrBuilder.java index 5a6be6d2..8d522125 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface ListGameServerClustersRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * "projects/{project_id}/locations/{location}/realms/{realm-id}".
+   * "projects/{project}/locations/{location}/realms/{realm-id}".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -39,10 +43,14 @@ public interface ListGameServerClustersRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * "projects/{project_id}/locations/{location}/realms/{realm-id}".
+   * "projects/{project}/locations/{location}/realms/{realm-id}".
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -57,7 +65,9 @@ public interface ListGameServerClustersRequestOrBuilder * determine if there are more GameServerClusters left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ int getPageSize(); @@ -69,7 +79,9 @@ public interface ListGameServerClustersRequestOrBuilder * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -80,7 +92,9 @@ public interface ListGameServerClustersRequestOrBuilder * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -91,7 +105,9 @@ public interface ListGameServerClustersRequestOrBuilder * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -101,7 +117,9 @@ public interface ListGameServerClustersRequestOrBuilder * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -113,7 +131,9 @@ public interface ListGameServerClustersRequestOrBuilder * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ java.lang.String getOrderBy(); /** @@ -124,7 +144,9 @@ public interface ListGameServerClustersRequestOrBuilder * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponse.java index 1962b745..ed7f2f9a 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponse.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,14 @@ private ListGameServerClustersResponse( private ListGameServerClustersResponse() { gameServerClusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGameServerClustersResponse(); } @java.lang.Override @@ -87,6 +95,26 @@ private ListGameServerClustersResponse( nextPageToken_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachableLocations_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + unreachable_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -104,6 +132,12 @@ private ListGameServerClustersResponse( if (((mutable_bitField0_ & 0x00000001) != 0)) { gameServerClusters_ = java.util.Collections.unmodifiableList(gameServerClusters_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -124,7 +158,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse.Builder.class); } - private int bitField0_; public static final int GAME_SERVER_CLUSTERS_FIELD_NUMBER = 1; private java.util.List gameServerClusters_; /** @@ -202,6 +235,8 @@ public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerC * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -223,6 +258,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -236,6 +273,132 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } + public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachableLocations_; + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return A list containing the unreachableLocations. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + return unreachableLocations_; + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return The count of unreachableLocations. + */ + @java.lang.Deprecated + public int getUnreachableLocationsCount() { + return unreachableLocations_.size(); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The unreachableLocations at the given index. + */ + @java.lang.Deprecated + public java.lang.String getUnreachableLocations(int index) { + return unreachableLocations_.get(index); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachableLocations at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + return unreachableLocations_.getByteString(index); + } + + public static final int UNREACHABLE_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -256,6 +419,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } + for (int i = 0; i < unreachableLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, unreachableLocations_.getRaw(i)); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, unreachable_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -272,6 +442,22 @@ public int getSerializedSize() { if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } + { + int dataSize = 0; + for (int i = 0; i < unreachableLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachableLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableLocationsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -290,6 +476,8 @@ public boolean equals(final java.lang.Object obj) { if (!getGameServerClustersList().equals(other.getGameServerClustersList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -307,6 +495,14 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableLocationsCount() > 0) { + hash = (37 * hash) + UNREACHABLE_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableLocationsList().hashCode(); + } + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -463,6 +659,10 @@ public Builder clear() { } nextPageToken_ = ""; + unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -492,7 +692,6 @@ public com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse buildParti com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse result = new com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (gameServerClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { gameServerClusters_ = java.util.Collections.unmodifiableList(gameServerClusters_); @@ -503,7 +702,16 @@ public com.google.cloud.gaming.v1alpha.ListGameServerClustersResponse buildParti result.gameServerClusters_ = gameServerClustersBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachableLocations_ = unreachableLocations_; + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; onBuilt(); return result; } @@ -586,6 +794,26 @@ public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListGameServerClustersR nextPageToken_ = other.nextPageToken_; onChanged(); } + if (!other.unreachableLocations_.isEmpty()) { + if (unreachableLocations_.isEmpty()) { + unreachableLocations_ = other.unreachableLocations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.addAll(other.unreachableLocations_); + } + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1010,6 +1238,8 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder addGameServerCl * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1031,6 +1261,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1052,6 +1284,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1071,6 +1306,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1087,6 +1324,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1099,6 +1339,351 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList unreachableLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return A list containing the unreachableLocations. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + return unreachableLocations_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return The count of unreachableLocations. + */ + @java.lang.Deprecated + public int getUnreachableLocationsCount() { + return unreachableLocations_.size(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The unreachableLocations at the given index. + */ + @java.lang.Deprecated + public java.lang.String getUnreachableLocations(int index) { + return unreachableLocations_.get(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachableLocations at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + return unreachableLocations_.getByteString(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index to set the value at. + * @param value The unreachableLocations to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setUnreachableLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param value The unreachableLocations to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addUnreachableLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param values The unreachableLocations to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllUnreachableLocations(java.lang.Iterable values) { + ensureUnreachableLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearUnreachableLocations() { + unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param value The bytes of the unreachableLocations to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 4; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 4; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 4; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponseOrBuilder.java index 6d728f0a..0ca80ab9 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponseOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -85,6 +85,8 @@ com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusters * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -96,6 +98,114 @@ com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusters * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return A list containing the unreachableLocations. + */ + @java.lang.Deprecated + java.util.List getUnreachableLocationsList(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return The count of unreachableLocations. + */ + @java.lang.Deprecated + int getUnreachableLocationsCount(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The unreachableLocations at the given index. + */ + @java.lang.Deprecated + java.lang.String getUnreachableLocations(int index); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachableLocations at the given index. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); + + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequest.java similarity index 70% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesRequest.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequest.java index 06559aaa..cf3905d4 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_configs.proto package com.google.cloud.gaming.v1alpha; @@ -22,34 +22,40 @@ * * *
- * Request message for AllocationPoliciesService.ListAllocationPolicies.
+ * Request message for GameServerConfigsService.ListGameServerConfigs.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerConfigsRequest} */ -public final class ListAllocationPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 +public final class ListGameServerConfigsRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) - ListAllocationPoliciesRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) + ListGameServerConfigsRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ListAllocationPoliciesRequest.newBuilder() to construct. - private ListAllocationPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ListGameServerConfigsRequest.newBuilder() to construct. + private ListGameServerConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAllocationPoliciesRequest() { + private ListGameServerConfigsRequest() { parent_ = ""; pageToken_ = ""; filter_ = ""; orderBy_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGameServerConfigsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListAllocationPoliciesRequest( + private ListGameServerConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -57,7 +63,6 @@ private ListAllocationPoliciesRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -121,18 +126,18 @@ private ListAllocationPoliciesRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest.class, - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest.Builder.class); + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.class, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; @@ -142,10 +147,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -163,10 +172,14 @@ public java.lang.String getParent() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -189,11 +202,13 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.next_page_token] to - * determine if there are more AllocationPolicies left to be queried. + * [next_page_token][google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.next_page_token] to + * determine if there are more GameServerConfigs left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -209,7 +224,9 @@ public int getPageSize() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -230,7 +247,9 @@ public java.lang.String getPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -253,7 +272,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -273,7 +294,9 @@ public java.lang.String getFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -297,7 +320,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -318,7 +343,9 @@ public java.lang.String getOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -395,11 +422,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest)) { + if (!(obj instanceof com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest other = - (com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) obj; + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest other = + (com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) obj; if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; @@ -432,71 +459,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest 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.ListAllocationPoliciesRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest 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.ListAllocationPoliciesRequest parseFrom(byte[] data) + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest 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.ListAllocationPoliciesRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest 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.ListAllocationPoliciesRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest parseDelimitedFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest 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.ListAllocationPoliciesRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest 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.ListAllocationPoliciesRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -514,7 +541,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest prototype) { + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -532,31 +559,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for AllocationPoliciesService.ListAllocationPolicies.
+   * Request message for GameServerConfigsService.ListGameServerConfigs.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerConfigsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest.class, - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest.Builder.class); + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.class, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.Builder.class); } - // Construct using com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest.newBuilder() + // Construct using com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -588,19 +615,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_ListAllocationPoliciesRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest + public com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest.getDefaultInstance(); + return com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest build() { - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest result = buildPartial(); + public com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest build() { + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -608,9 +635,9 @@ public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest buildPartial() { - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest result = - new com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest(this); + public com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest buildPartial() { + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest result = + new com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -655,17 +682,17 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) other); + if (other instanceof com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) { + return mergeFrom((com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest other) { + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest other) { if (other - == com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest.getDefaultInstance()) + == com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; @@ -701,13 +728,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest parsedMessage = null; + com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) - e.getUnfinishedMessage(); + (com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -723,10 +749,14 @@ public Builder mergeFrom( * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -744,10 +774,14 @@ public java.lang.String getParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -765,10 +799,15 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -784,10 +823,14 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -800,10 +843,15 @@ public Builder clearParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -824,11 +872,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.next_page_token] to - * determine if there are more AllocationPolicies left to be queried. + * [next_page_token][google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.next_page_token] to + * determine if there are more GameServerConfigs left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -840,11 +890,14 @@ public int getPageSize() { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.next_page_token] to - * determine if there are more AllocationPolicies left to be queried. + * [next_page_token][google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.next_page_token] to + * determine if there are more GameServerConfigs left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -859,11 +912,13 @@ public Builder setPageSize(int value) { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.next_page_token] to - * determine if there are more AllocationPolicies left to be queried. + * [next_page_token][google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.next_page_token] to + * determine if there are more GameServerConfigs left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -881,7 +936,9 @@ public Builder clearPageSize() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -902,7 +959,9 @@ public java.lang.String getPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -923,7 +982,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -942,7 +1004,9 @@ public Builder setPageToken(java.lang.String value) { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -958,7 +1022,10 @@ public Builder clearPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -979,7 +1046,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -999,7 +1068,9 @@ public java.lang.String getFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1019,7 +1090,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1037,7 +1111,9 @@ public Builder setFilter(java.lang.String value) { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1052,7 +1128,10 @@ public Builder clearFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1074,7 +1153,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -1095,7 +1176,9 @@ public java.lang.String getOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -1116,7 +1199,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. */ public Builder setOrderBy(java.lang.String value) { if (value == null) { @@ -1135,7 +1221,9 @@ public Builder setOrderBy(java.lang.String value) { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1151,7 +1239,10 @@ public Builder clearOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. */ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1175,43 +1266,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) - private static final com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) + private static final com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest(); } - public static com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ListAllocationPoliciesRequest parsePartialFrom( + public ListGameServerConfigsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAllocationPoliciesRequest(input, extensionRegistry); + return new ListGameServerConfigsRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.ListGameServerConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesRequestOrBuilder.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequestOrBuilder.java index 7ac137c1..cac4d1aa 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListAllocationPoliciesRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,13 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_configs.proto package com.google.cloud.gaming.v1alpha; -public interface ListAllocationPoliciesRequestOrBuilder +public interface ListGameServerConfigsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListAllocationPoliciesRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListGameServerConfigsRequest) com.google.protobuf.MessageOrBuilder { /** @@ -28,10 +28,14 @@ public interface ListAllocationPoliciesRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -39,10 +43,14 @@ public interface ListAllocationPoliciesRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -53,11 +61,13 @@ public interface ListAllocationPoliciesRequestOrBuilder * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.next_page_token] to - * determine if there are more AllocationPolicies left to be queried. + * [next_page_token][google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.next_page_token] to + * determine if there are more GameServerConfigs left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ int getPageSize(); @@ -69,7 +79,9 @@ public interface ListAllocationPoliciesRequestOrBuilder * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -80,7 +92,9 @@ public interface ListAllocationPoliciesRequestOrBuilder * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -91,7 +105,9 @@ public interface ListAllocationPoliciesRequestOrBuilder * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -101,7 +117,9 @@ public interface ListAllocationPoliciesRequestOrBuilder * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -113,7 +131,9 @@ public interface ListAllocationPoliciesRequestOrBuilder * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ java.lang.String getOrderBy(); /** @@ -124,7 +144,9 @@ public interface ListAllocationPoliciesRequestOrBuilder * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponse.java new file mode 100644 index 00000000..a2730b5a --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponse.java @@ -0,0 +1,1718 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_configs.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Response message for
+ * GameServerConfigsService.ListGameServerConfigs.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerConfigsResponse} + */ +public final class ListGameServerConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) + ListGameServerConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListGameServerConfigsResponse.newBuilder() to construct. + private ListGameServerConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGameServerConfigsResponse() { + gameServerConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGameServerConfigsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListGameServerConfigsResponse( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + gameServerConfigs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + gameServerConfigs_.add( + input.readMessage( + com.google.cloud.gaming.v1alpha.GameServerConfig.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachableLocations_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + unreachable_.add(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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + gameServerConfigs_ = java.util.Collections.unmodifiableList(gameServerConfigs_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.class, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.Builder.class); + } + + public static final int GAME_SERVER_CONFIGS_FIELD_NUMBER = 1; + private java.util.List gameServerConfigs_; + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public java.util.List + getGameServerConfigsList() { + return gameServerConfigs_; + } + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public java.util.List + getGameServerConfigsOrBuilderList() { + return gameServerConfigs_; + } + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public int getGameServerConfigsCount() { + return gameServerConfigs_.size(); + } + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfigs(int index) { + return gameServerConfigs_.get(index); + } + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigsOrBuilder( + int index) { + return gameServerConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachableLocations_; + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return A list containing the unreachableLocations. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + return unreachableLocations_; + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return The count of unreachableLocations. + */ + @java.lang.Deprecated + public int getUnreachableLocationsCount() { + return unreachableLocations_.size(); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The unreachableLocations at the given index. + */ + @java.lang.Deprecated + public java.lang.String getUnreachableLocations(int index) { + return unreachableLocations_.get(index); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachableLocations at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + return unreachableLocations_.getByteString(index); + } + + public static final int UNREACHABLE_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(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 { + for (int i = 0; i < gameServerConfigs_.size(); i++) { + output.writeMessage(1, gameServerConfigs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachableLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, unreachableLocations_.getRaw(i)); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, unreachable_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < gameServerConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, gameServerConfigs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachableLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachableLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableLocationsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + 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.ListGameServerConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse other = + (com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) obj; + + if (!getGameServerConfigsList().equals(other.getGameServerConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) 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 (getGameServerConfigsCount() > 0) { + hash = (37 * hash) + GAME_SERVER_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getGameServerConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableLocationsCount() > 0) { + hash = (37 * hash) + UNREACHABLE_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableLocationsList().hashCode(); + } + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse 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.ListGameServerConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse 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.ListGameServerConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse 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.ListGameServerConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse 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.ListGameServerConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse 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.ListGameServerConfigsResponse 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.ListGameServerConfigsResponse 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.ListGameServerConfigsResponse 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; + } + /** + * + * + *
+   * Response message for
+   * GameServerConfigsService.ListGameServerConfigs.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.ListGameServerConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.class, + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGameServerConfigsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (gameServerConfigsBuilder_ == null) { + gameServerConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + gameServerConfigsBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ListGameServerConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse build() { + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse buildPartial() { + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse result = + new com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse(this); + int from_bitField0_ = bitField0_; + if (gameServerConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + gameServerConfigs_ = java.util.Collections.unmodifiableList(gameServerConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.gameServerConfigs_ = gameServerConfigs_; + } else { + result.gameServerConfigs_ = gameServerConfigsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachableLocations_ = unreachableLocations_; + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) { + return mergeFrom((com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse other) { + if (other + == com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.getDefaultInstance()) + return this; + if (gameServerConfigsBuilder_ == null) { + if (!other.gameServerConfigs_.isEmpty()) { + if (gameServerConfigs_.isEmpty()) { + gameServerConfigs_ = other.gameServerConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGameServerConfigsIsMutable(); + gameServerConfigs_.addAll(other.gameServerConfigs_); + } + onChanged(); + } + } else { + if (!other.gameServerConfigs_.isEmpty()) { + if (gameServerConfigsBuilder_.isEmpty()) { + gameServerConfigsBuilder_.dispose(); + gameServerConfigsBuilder_ = null; + gameServerConfigs_ = other.gameServerConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + gameServerConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGameServerConfigsFieldBuilder() + : null; + } else { + gameServerConfigsBuilder_.addAllMessages(other.gameServerConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachableLocations_.isEmpty()) { + if (unreachableLocations_.isEmpty()) { + unreachableLocations_ = other.unreachableLocations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.addAll(other.unreachableLocations_); + } + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List gameServerConfigs_ = + java.util.Collections.emptyList(); + + private void ensureGameServerConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gameServerConfigs_ = + new java.util.ArrayList( + gameServerConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerConfig, + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, + com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder> + gameServerConfigsBuilder_; + + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public java.util.List + getGameServerConfigsList() { + if (gameServerConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(gameServerConfigs_); + } else { + return gameServerConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public int getGameServerConfigsCount() { + if (gameServerConfigsBuilder_ == null) { + return gameServerConfigs_.size(); + } else { + return gameServerConfigsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfigs(int index) { + if (gameServerConfigsBuilder_ == null) { + return gameServerConfigs_.get(index); + } else { + return gameServerConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public Builder setGameServerConfigs( + int index, com.google.cloud.gaming.v1alpha.GameServerConfig value) { + if (gameServerConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGameServerConfigsIsMutable(); + gameServerConfigs_.set(index, value); + onChanged(); + } else { + gameServerConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public Builder setGameServerConfigs( + int index, com.google.cloud.gaming.v1alpha.GameServerConfig.Builder builderForValue) { + if (gameServerConfigsBuilder_ == null) { + ensureGameServerConfigsIsMutable(); + gameServerConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + gameServerConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public Builder addGameServerConfigs(com.google.cloud.gaming.v1alpha.GameServerConfig value) { + if (gameServerConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGameServerConfigsIsMutable(); + gameServerConfigs_.add(value); + onChanged(); + } else { + gameServerConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public Builder addGameServerConfigs( + int index, com.google.cloud.gaming.v1alpha.GameServerConfig value) { + if (gameServerConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGameServerConfigsIsMutable(); + gameServerConfigs_.add(index, value); + onChanged(); + } else { + gameServerConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public Builder addGameServerConfigs( + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder builderForValue) { + if (gameServerConfigsBuilder_ == null) { + ensureGameServerConfigsIsMutable(); + gameServerConfigs_.add(builderForValue.build()); + onChanged(); + } else { + gameServerConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public Builder addGameServerConfigs( + int index, com.google.cloud.gaming.v1alpha.GameServerConfig.Builder builderForValue) { + if (gameServerConfigsBuilder_ == null) { + ensureGameServerConfigsIsMutable(); + gameServerConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + gameServerConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public Builder addAllGameServerConfigs( + java.lang.Iterable values) { + if (gameServerConfigsBuilder_ == null) { + ensureGameServerConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gameServerConfigs_); + onChanged(); + } else { + gameServerConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public Builder clearGameServerConfigs() { + if (gameServerConfigsBuilder_ == null) { + gameServerConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gameServerConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public Builder removeGameServerConfigs(int index) { + if (gameServerConfigsBuilder_ == null) { + ensureGameServerConfigsIsMutable(); + gameServerConfigs_.remove(index); + onChanged(); + } else { + gameServerConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public com.google.cloud.gaming.v1alpha.GameServerConfig.Builder getGameServerConfigsBuilder( + int index) { + return getGameServerConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigsOrBuilder( + int index) { + if (gameServerConfigsBuilder_ == null) { + return gameServerConfigs_.get(index); + } else { + return gameServerConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public java.util.List + getGameServerConfigsOrBuilderList() { + if (gameServerConfigsBuilder_ != null) { + return gameServerConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gameServerConfigs_); + } + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public com.google.cloud.gaming.v1alpha.GameServerConfig.Builder addGameServerConfigsBuilder() { + return getGameServerConfigsFieldBuilder() + .addBuilder(com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance()); + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public com.google.cloud.gaming.v1alpha.GameServerConfig.Builder addGameServerConfigsBuilder( + int index) { + return getGameServerConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.gaming.v1alpha.GameServerConfig.getDefaultInstance()); + } + /** + * + * + *
+     * The list of game server configs.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + public java.util.List + getGameServerConfigsBuilderList() { + return getGameServerConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerConfig, + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, + com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder> + getGameServerConfigsFieldBuilder() { + if (gameServerConfigsBuilder_ == null) { + gameServerConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerConfig, + com.google.cloud.gaming.v1alpha.GameServerConfig.Builder, + com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder>( + gameServerConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + gameServerConfigs_ = null; + } + return gameServerConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachableLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return A list containing the unreachableLocations. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + return unreachableLocations_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return The count of unreachableLocations. + */ + @java.lang.Deprecated + public int getUnreachableLocationsCount() { + return unreachableLocations_.size(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The unreachableLocations at the given index. + */ + @java.lang.Deprecated + public java.lang.String getUnreachableLocations(int index) { + return unreachableLocations_.get(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachableLocations at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + return unreachableLocations_.getByteString(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index to set the value at. + * @param value The unreachableLocations to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setUnreachableLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param value The unreachableLocations to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addUnreachableLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param values The unreachableLocations to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllUnreachableLocations(java.lang.Iterable values) { + ensureUnreachableLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearUnreachableLocations() { + unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param value The bytes of the unreachableLocations to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.ListGameServerConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) + private static final com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse(); + } + + public static com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGameServerConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListGameServerConfigsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.ListGameServerConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponseOrBuilder.java new file mode 100644 index 00000000..34cdee9c --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponseOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_configs.proto + +package com.google.cloud.gaming.v1alpha; + +public interface ListGameServerConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListGameServerConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + java.util.List getGameServerConfigsList(); + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + com.google.cloud.gaming.v1alpha.GameServerConfig getGameServerConfigs(int index); + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + int getGameServerConfigsCount(); + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + java.util.List + getGameServerConfigsOrBuilderList(); + /** + * + * + *
+   * The list of game server configs.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.GameServerConfig game_server_configs = 1; + */ + com.google.cloud.gaming.v1alpha.GameServerConfigOrBuilder getGameServerConfigsOrBuilder( + int index); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return A list containing the unreachableLocations. + */ + @java.lang.Deprecated + java.util.List getUnreachableLocationsList(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return The count of unreachableLocations. + */ + @java.lang.Deprecated + int getUnreachableLocationsCount(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The unreachableLocations at the given index. + */ + @java.lang.Deprecated + java.lang.String getUnreachableLocations(int index); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachableLocations at the given index. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); + + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequest.java index 44537f50..c17c684c 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,6 +45,12 @@ private ListGameServerDeploymentsRequest() { orderBy_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGameServerDeploymentsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -58,7 +64,6 @@ private ListGameServerDeploymentsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -143,10 +148,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -164,10 +173,14 @@ public java.lang.String getParent() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -194,7 +207,9 @@ public com.google.protobuf.ByteString getParentBytes() { * determine if there are more GameServerDeployments left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -210,7 +225,9 @@ public int getPageSize() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -231,7 +248,9 @@ public java.lang.String getPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -254,7 +273,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -274,7 +295,9 @@ public java.lang.String getFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -298,7 +321,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -319,7 +344,9 @@ public java.lang.String getOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -725,10 +752,14 @@ public Builder mergeFrom( * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -746,10 +777,14 @@ public java.lang.String getParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -767,10 +802,15 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -786,10 +826,14 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -802,10 +846,15 @@ public Builder clearParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -830,7 +879,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * determine if there are more GameServerDeployments left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -846,7 +897,10 @@ public int getPageSize() { * determine if there are more GameServerDeployments left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -865,7 +919,9 @@ public Builder setPageSize(int value) { * determine if there are more GameServerDeployments left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -883,7 +939,9 @@ public Builder clearPageSize() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -904,7 +962,9 @@ public java.lang.String getPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -925,7 +985,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -944,7 +1007,9 @@ public Builder setPageToken(java.lang.String value) { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -960,7 +1025,10 @@ public Builder clearPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -981,7 +1049,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -1001,7 +1071,9 @@ public java.lang.String getFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1021,7 +1093,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1039,7 +1114,9 @@ public Builder setFilter(java.lang.String value) { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1054,7 +1131,10 @@ public Builder clearFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1076,7 +1156,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -1097,7 +1179,9 @@ public java.lang.String getOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -1118,7 +1202,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. */ public Builder setOrderBy(java.lang.String value) { if (value == null) { @@ -1137,7 +1224,9 @@ public Builder setOrderBy(java.lang.String value) { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1153,7 +1242,10 @@ public Builder clearOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. */ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequestOrBuilder.java index 2b3af9b4..c022df51 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface ListGameServerDeploymentsRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -39,10 +43,14 @@ public interface ListGameServerDeploymentsRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -57,7 +65,9 @@ public interface ListGameServerDeploymentsRequestOrBuilder * determine if there are more GameServerDeployments left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ int getPageSize(); @@ -69,7 +79,9 @@ public interface ListGameServerDeploymentsRequestOrBuilder * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -80,7 +92,9 @@ public interface ListGameServerDeploymentsRequestOrBuilder * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -91,7 +105,9 @@ public interface ListGameServerDeploymentsRequestOrBuilder * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -101,7 +117,9 @@ public interface ListGameServerDeploymentsRequestOrBuilder * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -113,7 +131,9 @@ public interface ListGameServerDeploymentsRequestOrBuilder * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ java.lang.String getOrderBy(); /** @@ -124,7 +144,9 @@ public interface ListGameServerDeploymentsRequestOrBuilder * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponse.java index 958f5bd6..7024f27a 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponse.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,14 @@ private ListGameServerDeploymentsResponse( private ListGameServerDeploymentsResponse() { gameServerDeployments_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGameServerDeploymentsResponse(); } @java.lang.Override @@ -87,6 +95,26 @@ private ListGameServerDeploymentsResponse( nextPageToken_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachableLocations_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + unreachable_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -104,6 +132,12 @@ private ListGameServerDeploymentsResponse( if (((mutable_bitField0_ & 0x00000001) != 0)) { gameServerDeployments_ = java.util.Collections.unmodifiableList(gameServerDeployments_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -124,7 +158,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse.Builder.class); } - private int bitField0_; public static final int GAME_SERVER_DEPLOYMENTS_FIELD_NUMBER = 1; private java.util.List gameServerDeployments_; @@ -208,6 +241,8 @@ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeploym * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -229,6 +264,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -242,6 +279,132 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } + public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachableLocations_; + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return A list containing the unreachableLocations. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + return unreachableLocations_; + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return The count of unreachableLocations. + */ + @java.lang.Deprecated + public int getUnreachableLocationsCount() { + return unreachableLocations_.size(); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The unreachableLocations at the given index. + */ + @java.lang.Deprecated + public java.lang.String getUnreachableLocations(int index) { + return unreachableLocations_.get(index); + } + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachableLocations at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + return unreachableLocations_.getByteString(index); + } + + public static final int UNREACHABLE_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -262,6 +425,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } + for (int i = 0; i < unreachableLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, unreachableLocations_.getRaw(i)); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, unreachable_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -279,6 +449,22 @@ public int getSerializedSize() { if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } + { + int dataSize = 0; + for (int i = 0; i < unreachableLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachableLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableLocationsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -297,6 +483,8 @@ public boolean equals(final java.lang.Object obj) { if (!getGameServerDeploymentsList().equals(other.getGameServerDeploymentsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -314,6 +502,14 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableLocationsCount() > 0) { + hash = (37 * hash) + UNREACHABLE_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableLocationsList().hashCode(); + } + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -472,6 +668,10 @@ public Builder clear() { } nextPageToken_ = ""; + unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -501,7 +701,6 @@ public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse buildPa com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse result = new com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (gameServerDeploymentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { gameServerDeployments_ = java.util.Collections.unmodifiableList(gameServerDeployments_); @@ -512,7 +711,16 @@ public com.google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse buildPa result.gameServerDeployments_ = gameServerDeploymentsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = unreachableLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachableLocations_ = unreachableLocations_; + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; onBuilt(); return result; } @@ -596,6 +804,26 @@ public Builder mergeFrom( nextPageToken_ = other.nextPageToken_; onChanged(); } + if (!other.unreachableLocations_.isEmpty()) { + if (unreachableLocations_.isEmpty()) { + unreachableLocations_ = other.unreachableLocations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.addAll(other.unreachableLocations_); + } + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1022,6 +1250,8 @@ public Builder removeGameServerDeployments(int index) { * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -1043,6 +1273,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1064,6 +1296,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1083,6 +1318,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1099,6 +1336,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1111,6 +1351,351 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList unreachableLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return A list containing the unreachableLocations. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + return unreachableLocations_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return The count of unreachableLocations. + */ + @java.lang.Deprecated + public int getUnreachableLocationsCount() { + return unreachableLocations_.size(); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The unreachableLocations at the given index. + */ + @java.lang.Deprecated + public java.lang.String getUnreachableLocations(int index) { + return unreachableLocations_.get(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachableLocations at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + return unreachableLocations_.getByteString(index); + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index to set the value at. + * @param value The unreachableLocations to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setUnreachableLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param value The unreachableLocations to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addUnreachableLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param values The unreachableLocations to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllUnreachableLocations(java.lang.Iterable values) { + ensureUnreachableLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearUnreachableLocations() { + unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param value The bytes of the unreachableLocations to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableLocationsIsMutable(); + unreachableLocations_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 4; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponseOrBuilder.java index 99a5c9b0..be5a6b11 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponseOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -91,6 +91,8 @@ com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeplo * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -102,6 +104,114 @@ com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeplo * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return A list containing the unreachableLocations. + */ + @java.lang.Deprecated + java.util.List getUnreachableLocationsList(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @return The count of unreachableLocations. + */ + @java.lang.Deprecated + int getUnreachableLocationsCount(); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The unreachableLocations at the given index. + */ + @java.lang.Deprecated + java.lang.String getUnreachableLocations(int index); + /** + * + * + *
+   * List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable_locations = 3 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachableLocations at the given index. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); + + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 4; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequest.java index b1a5d9fa..d0d7f861 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,6 +44,12 @@ private ListRealmsRequest() { orderBy_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRealmsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private ListRealmsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -142,10 +147,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -163,10 +172,14 @@ public java.lang.String getParent() { * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -193,7 +206,9 @@ public com.google.protobuf.ByteString getParentBytes() { * determine if there are more Realms left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -209,7 +224,9 @@ public int getPageSize() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -230,7 +247,9 @@ public java.lang.String getPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -253,7 +272,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -273,7 +294,9 @@ public java.lang.String getFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -297,7 +320,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -318,7 +343,9 @@ public java.lang.String getOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -719,10 +746,14 @@ public Builder mergeFrom( * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -740,10 +771,14 @@ public java.lang.String getParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -761,10 +796,15 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -780,10 +820,14 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -796,10 +840,15 @@ public Builder clearParent() { * *
      * Required. The parent resource name, using the form:
-     * `projects/{project_id}/locations/{location}`.
+     * `projects/{project}/locations/{location}`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -824,7 +873,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * determine if there are more Realms left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -840,7 +891,10 @@ public int getPageSize() { * determine if there are more Realms left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -859,7 +913,9 @@ public Builder setPageSize(int value) { * determine if there are more Realms left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -877,7 +933,9 @@ public Builder clearPageSize() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -898,7 +956,9 @@ public java.lang.String getPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -919,7 +979,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -938,7 +1001,9 @@ public Builder setPageToken(java.lang.String value) { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -954,7 +1019,10 @@ public Builder clearPageToken() { * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -975,7 +1043,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -995,7 +1065,9 @@ public java.lang.String getFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -1015,7 +1087,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -1033,7 +1108,9 @@ public Builder setFilter(java.lang.String value) { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearFilter() { @@ -1048,7 +1125,10 @@ public Builder clearFilter() { * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1070,7 +1150,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; @@ -1091,7 +1173,9 @@ public java.lang.String getOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; @@ -1112,7 +1196,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. */ public Builder setOrderBy(java.lang.String value) { if (value == null) { @@ -1131,7 +1218,9 @@ public Builder setOrderBy(java.lang.String value) { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1147,7 +1236,10 @@ public Builder clearOrderBy() { * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. */ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequestOrBuilder.java index 73cc746d..a5d78859 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ public interface ListRealmsRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -39,10 +43,14 @@ public interface ListRealmsRequestOrBuilder * *
    * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
+   * `projects/{project}/locations/{location}`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -57,7 +65,9 @@ public interface ListRealmsRequestOrBuilder * determine if there are more Realms left to be queried. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ int getPageSize(); @@ -69,7 +79,9 @@ public interface ListRealmsRequestOrBuilder * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -80,7 +92,9 @@ public interface ListRealmsRequestOrBuilder * if any. * * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); @@ -91,7 +105,9 @@ public interface ListRealmsRequestOrBuilder * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. */ java.lang.String getFilter(); /** @@ -101,7 +117,9 @@ public interface ListRealmsRequestOrBuilder * Optional. The filter to apply to list results. * * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); @@ -113,7 +131,9 @@ public interface ListRealmsRequestOrBuilder * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. */ java.lang.String getOrderBy(); /** @@ -124,7 +144,9 @@ public interface ListRealmsRequestOrBuilder * https://cloud.google.com/apis/design/design_patterns#sorting_order. * * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponse.java index b8ecf752..5a0c53da 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponse.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +40,13 @@ private ListRealmsResponse(com.google.protobuf.GeneratedMessageV3.Builder bui private ListRealmsResponse() { realms_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRealmsResponse(); } @java.lang.Override @@ -84,6 +91,16 @@ private ListRealmsResponse( nextPageToken_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -101,6 +118,9 @@ private ListRealmsResponse( if (((mutable_bitField0_ & 0x00000001) != 0)) { realms_ = java.util.Collections.unmodifiableList(realms_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -121,7 +141,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.gaming.v1alpha.ListRealmsResponse.Builder.class); } - private int bitField0_; public static final int REALMS_FIELD_NUMBER = 1; private java.util.List realms_; /** @@ -197,6 +216,8 @@ public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmsOrBuilder(int ind * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -218,6 +239,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -231,6 +254,67 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -251,6 +335,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -266,6 +353,14 @@ public int getSerializedSize() { if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -284,6 +379,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRealmsList().equals(other.getRealmsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,6 +397,10 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -456,6 +556,8 @@ public Builder clear() { } nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -484,7 +586,6 @@ public com.google.cloud.gaming.v1alpha.ListRealmsResponse buildPartial() { com.google.cloud.gaming.v1alpha.ListRealmsResponse result = new com.google.cloud.gaming.v1alpha.ListRealmsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (realmsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { realms_ = java.util.Collections.unmodifiableList(realms_); @@ -495,7 +596,11 @@ public com.google.cloud.gaming.v1alpha.ListRealmsResponse buildPartial() { result.realms_ = realmsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; onBuilt(); return result; } @@ -577,6 +682,16 @@ public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListRealmsResponse othe nextPageToken_ = other.nextPageToken_; onChanged(); } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -967,6 +1082,8 @@ public java.util.List getRealmsBu * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -988,6 +1105,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1009,6 +1128,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1028,6 +1150,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1044,6 +1168,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1056,6 +1183,174 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * List of locations that were not reachable.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponseOrBuilder.java index 23fb8759..d2219688 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponseOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,6 +83,8 @@ public interface ListRealmsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -94,6 +96,59 @@ public interface ListRealmsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * List of locations that were not reachable.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesRequest.java deleted file mode 100644 index f110b4cf..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesRequest.java +++ /dev/null @@ -1,1213 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for ScalingPoliciesService.ListScalingPolicies.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListScalingPoliciesRequest} - */ -public final class ListScalingPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListScalingPoliciesRequest) - ListScalingPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListScalingPoliciesRequest.newBuilder() to construct. - private ListScalingPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListScalingPoliciesRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListScalingPoliciesRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = 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.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest.class, - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest.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 PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * / Optional. The maximum number of items to return.  If unspecified, server
-   * will pick an appropriate default. Server may return fewer items than
-   * requested. A caller should only rely on response's
-   * [next_page_token][google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.next_page_token] to
-   * determine if there are more ScalingPolicies left to be queried.
-   * 
- * - * int32 page_size = 2; - */ - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3; - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - 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(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3; - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4; - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - 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(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4; - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5; - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - 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(); - orderBy_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5; - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = 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 (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - 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 (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (!getOrderByBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - 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.ListScalingPoliciesRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest other = - (com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) 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) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest 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.ListScalingPoliciesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest 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.ListScalingPoliciesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest 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.ListScalingPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest 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.ListScalingPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest 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.ListScalingPoliciesRequest 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.ListScalingPoliciesRequest 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.ListScalingPoliciesRequest 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 ScalingPoliciesService.ListScalingPolicies.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListScalingPoliciesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListScalingPoliciesRequest) - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest.class, - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - orderBy_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest build() { - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest buildPartial() { - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest result = - new com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest other) { - if (other == com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private 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)) { - 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 int pageSize_; - /** - * - * - *
-     * / Optional. The maximum number of items to return.  If unspecified, server
-     * will pick an appropriate default. Server may return fewer items than
-     * requested. A caller should only rely on response's
-     * [next_page_token][google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.next_page_token] to
-     * determine if there are more ScalingPolicies left to be queried.
-     * 
- * - * int32 page_size = 2; - */ - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * / Optional. The maximum number of items to return.  If unspecified, server
-     * will pick an appropriate default. Server may return fewer items than
-     * requested. A caller should only rely on response's
-     * [next_page_token][google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.next_page_token] to
-     * determine if there are more ScalingPolicies left to be queried.
-     * 
- * - * int32 page_size = 2; - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * / Optional. The maximum number of items to return.  If unspecified, server
-     * will pick an appropriate default. Server may return fewer items than
-     * requested. A caller should only rely on response's
-     * [next_page_token][google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.next_page_token] to
-     * determine if there are more ScalingPolicies left to be queried.
-     * 
- * - * int32 page_size = 2; - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3; - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3; - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3; - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3; - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The next_page_token value returned from a previous List request,
-     * if any.
-     * 
- * - * string page_token = 3; - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4; - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4; - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4; - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4; - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The filter to apply to list results.
-     * 
- * - * string filter = 4; - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5; - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5; - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5; - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5; - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the ordering of results following syntax at
-     * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-     * 
- * - * string order_by = 5; - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = 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.ListScalingPoliciesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListScalingPoliciesRequest) - private static final com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest(); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScalingPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScalingPoliciesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListScalingPoliciesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesRequestOrBuilder.java deleted file mode 100644 index 4d4c372e..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesRequestOrBuilder.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListScalingPoliciesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListScalingPoliciesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
-   * 
- * - * string parent = 1; - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, using the form:
-   * `projects/{project_id}/locations/{location}`.
-   * 
- * - * string parent = 1; - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * / Optional. The maximum number of items to return.  If unspecified, server
-   * will pick an appropriate default. Server may return fewer items than
-   * requested. A caller should only rely on response's
-   * [next_page_token][google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.next_page_token] to
-   * determine if there are more ScalingPolicies left to be queried.
-   * 
- * - * int32 page_size = 2; - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3; - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The next_page_token value returned from a previous List request,
-   * if any.
-   * 
- * - * string page_token = 3; - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4; - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Optional. The filter to apply to list results.
-   * 
- * - * string filter = 4; - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5; - */ - java.lang.String getOrderBy(); - /** - * - * - *
-   * Optional. Specifies the ordering of results following syntax at
-   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
-   * 
- * - * string order_by = 5; - */ - com.google.protobuf.ByteString getOrderByBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesResponse.java deleted file mode 100644 index 479fc462..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesResponse.java +++ /dev/null @@ -1,1123 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Response message for ScalingPoliciesService.ListScalingPolicies.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListScalingPoliciesResponse} - */ -public final class ListScalingPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ListScalingPoliciesResponse) - ListScalingPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListScalingPoliciesResponse.newBuilder() to construct. - private ListScalingPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListScalingPoliciesResponse() { - scalingPolicies_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListScalingPoliciesResponse( - 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: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scalingPolicies_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scalingPolicies_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.ScalingPolicy.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - scalingPolicies_ = java.util.Collections.unmodifiableList(scalingPolicies_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.class, - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.Builder.class); - } - - private int bitField0_; - public static final int SCALING_POLICIES_FIELD_NUMBER = 1; - private java.util.List scalingPolicies_; - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public java.util.List getScalingPoliciesList() { - return scalingPolicies_; - } - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public java.util.List - getScalingPoliciesOrBuilderList() { - return scalingPolicies_; - } - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public int getScalingPoliciesCount() { - return scalingPolicies_.size(); - } - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicies(int index) { - return scalingPolicies_.get(index); - } - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder getScalingPoliciesOrBuilder( - int index) { - return scalingPolicies_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - 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(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = 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 { - for (int i = 0; i < scalingPolicies_.size(); i++) { - output.writeMessage(1, scalingPolicies_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < scalingPolicies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scalingPolicies_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.ListScalingPoliciesResponse)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse other = - (com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse) obj; - - if (!getScalingPoliciesList().equals(other.getScalingPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getScalingPoliciesCount() > 0) { - hash = (37 * hash) + SCALING_POLICIES_FIELD_NUMBER; - hash = (53 * hash) + getScalingPoliciesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse 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.ListScalingPoliciesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse 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.ListScalingPoliciesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse 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.ListScalingPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse 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.ListScalingPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse 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.ListScalingPoliciesResponse 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.ListScalingPoliciesResponse 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.ListScalingPoliciesResponse 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; - } - /** - * - * - *
-   * Response message for ScalingPoliciesService.ListScalingPolicies.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ListScalingPoliciesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ListScalingPoliciesResponse) - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.class, - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getScalingPoliciesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (scalingPoliciesBuilder_ == null) { - scalingPolicies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - scalingPoliciesBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse build() { - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse buildPartial() { - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse result = - new com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (scalingPoliciesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - scalingPolicies_ = java.util.Collections.unmodifiableList(scalingPolicies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.scalingPolicies_ = scalingPolicies_; - } else { - result.scalingPolicies_ = scalingPoliciesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse other) { - if (other == com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.getDefaultInstance()) - return this; - if (scalingPoliciesBuilder_ == null) { - if (!other.scalingPolicies_.isEmpty()) { - if (scalingPolicies_.isEmpty()) { - scalingPolicies_ = other.scalingPolicies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureScalingPoliciesIsMutable(); - scalingPolicies_.addAll(other.scalingPolicies_); - } - onChanged(); - } - } else { - if (!other.scalingPolicies_.isEmpty()) { - if (scalingPoliciesBuilder_.isEmpty()) { - scalingPoliciesBuilder_.dispose(); - scalingPoliciesBuilder_ = null; - scalingPolicies_ = other.scalingPolicies_; - bitField0_ = (bitField0_ & ~0x00000001); - scalingPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScalingPoliciesFieldBuilder() - : null; - } else { - scalingPoliciesBuilder_.addAllMessages(other.scalingPolicies_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List scalingPolicies_ = - java.util.Collections.emptyList(); - - private void ensureScalingPoliciesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - scalingPolicies_ = - new java.util.ArrayList( - scalingPolicies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingPolicy, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder, - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder> - scalingPoliciesBuilder_; - - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public java.util.List getScalingPoliciesList() { - if (scalingPoliciesBuilder_ == null) { - return java.util.Collections.unmodifiableList(scalingPolicies_); - } else { - return scalingPoliciesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public int getScalingPoliciesCount() { - if (scalingPoliciesBuilder_ == null) { - return scalingPolicies_.size(); - } else { - return scalingPoliciesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicies(int index) { - if (scalingPoliciesBuilder_ == null) { - return scalingPolicies_.get(index); - } else { - return scalingPoliciesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public Builder setScalingPolicies( - int index, com.google.cloud.gaming.v1alpha.ScalingPolicy value) { - if (scalingPoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureScalingPoliciesIsMutable(); - scalingPolicies_.set(index, value); - onChanged(); - } else { - scalingPoliciesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public Builder setScalingPolicies( - int index, com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder builderForValue) { - if (scalingPoliciesBuilder_ == null) { - ensureScalingPoliciesIsMutable(); - scalingPolicies_.set(index, builderForValue.build()); - onChanged(); - } else { - scalingPoliciesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public Builder addScalingPolicies(com.google.cloud.gaming.v1alpha.ScalingPolicy value) { - if (scalingPoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureScalingPoliciesIsMutable(); - scalingPolicies_.add(value); - onChanged(); - } else { - scalingPoliciesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public Builder addScalingPolicies( - int index, com.google.cloud.gaming.v1alpha.ScalingPolicy value) { - if (scalingPoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureScalingPoliciesIsMutable(); - scalingPolicies_.add(index, value); - onChanged(); - } else { - scalingPoliciesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public Builder addScalingPolicies( - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder builderForValue) { - if (scalingPoliciesBuilder_ == null) { - ensureScalingPoliciesIsMutable(); - scalingPolicies_.add(builderForValue.build()); - onChanged(); - } else { - scalingPoliciesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public Builder addScalingPolicies( - int index, com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder builderForValue) { - if (scalingPoliciesBuilder_ == null) { - ensureScalingPoliciesIsMutable(); - scalingPolicies_.add(index, builderForValue.build()); - onChanged(); - } else { - scalingPoliciesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public Builder addAllScalingPolicies( - java.lang.Iterable values) { - if (scalingPoliciesBuilder_ == null) { - ensureScalingPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scalingPolicies_); - onChanged(); - } else { - scalingPoliciesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public Builder clearScalingPolicies() { - if (scalingPoliciesBuilder_ == null) { - scalingPolicies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - scalingPoliciesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public Builder removeScalingPolicies(int index) { - if (scalingPoliciesBuilder_ == null) { - ensureScalingPoliciesIsMutable(); - scalingPolicies_.remove(index); - onChanged(); - } else { - scalingPoliciesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder getScalingPoliciesBuilder( - int index) { - return getScalingPoliciesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder getScalingPoliciesOrBuilder( - int index) { - if (scalingPoliciesBuilder_ == null) { - return scalingPolicies_.get(index); - } else { - return scalingPoliciesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public java.util.List - getScalingPoliciesOrBuilderList() { - if (scalingPoliciesBuilder_ != null) { - return scalingPoliciesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(scalingPolicies_); - } - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder addScalingPoliciesBuilder() { - return getScalingPoliciesFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance()); - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder addScalingPoliciesBuilder( - int index) { - return getScalingPoliciesFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance()); - } - /** - * - * - *
-     * The list of scaling policies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - public java.util.List - getScalingPoliciesBuilderList() { - return getScalingPoliciesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingPolicy, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder, - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder> - getScalingPoliciesFieldBuilder() { - if (scalingPoliciesBuilder_ == null) { - scalingPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingPolicy, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder, - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder>( - scalingPolicies_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - scalingPolicies_ = null; - } - return scalingPoliciesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = 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.ListScalingPoliciesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ListScalingPoliciesResponse) - private static final com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse(); - } - - public static com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScalingPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScalingPoliciesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ListScalingPoliciesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesResponseOrBuilder.java deleted file mode 100644 index ffa54a63..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListScalingPoliciesResponseOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ListScalingPoliciesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ListScalingPoliciesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - java.util.List getScalingPoliciesList(); - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicies(int index); - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - int getScalingPoliciesCount(); - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - java.util.List - getScalingPoliciesOrBuilderList(); - /** - * - * - *
-   * The list of scaling policies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policies = 1; - */ - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder getScalingPoliciesOrBuilder(int index); - - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LocationName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LocationName.java index 25d585a1..13f6330e 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LocationName.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class LocationName implements ResourceName { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadata.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadata.java index f80bdf88..5d1a72e2 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadata.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,6 +42,13 @@ private OperationMetadata() { verb_ = ""; statusMessage_ = ""; apiVersion_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationMetadata(); } @java.lang.Override @@ -131,6 +138,35 @@ private OperationMetadata( apiVersion_ = s; break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + unreachable_.add(s); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + operationStatus_ = + com.google.protobuf.MapField.newMapField( + OperationStatusDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> + operationStatus__ = + input.readMessage( + OperationStatusDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + operationStatus_ + .getMutableMap() + .put(operationStatus__.getKey(), operationStatus__.getValue()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -145,6 +181,9 @@ private OperationMetadata( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -155,6 +194,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 9: + return internalGetOperationStatus(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -174,7 +224,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -186,7 +239,10 @@ public boolean hasCreateTime() { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -198,7 +254,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); @@ -213,7 +270,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTime_ != null; @@ -225,7 +285,10 @@ public boolean hasEndTime() { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; @@ -237,7 +300,8 @@ public com.google.protobuf.Timestamp getEndTime() { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return getEndTime(); @@ -252,7 +316,9 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * Output only. Server-defined resource path for the target of the operation. * * - * string target = 3; + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; @@ -272,7 +338,9 @@ public java.lang.String getTarget() { * Output only. Server-defined resource path for the target of the operation. * * - * string target = 3; + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. */ public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; @@ -295,7 +363,9 @@ public com.google.protobuf.ByteString getTargetBytes() { * Output only. Name of the verb executed by the operation. * * - * string verb = 4; + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; @@ -315,7 +385,9 @@ public java.lang.String getVerb() { * Output only. Name of the verb executed by the operation. * * - * string verb = 4; + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. */ public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; @@ -338,7 +410,9 @@ public com.google.protobuf.ByteString getVerbBytes() { * Output only. Human-readable status of the operation, if any. * * - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; @@ -358,7 +432,9 @@ public java.lang.String getStatusMessage() { * Output only. Human-readable status of the operation, if any. * * - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; @@ -384,7 +460,9 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * corresponding to `Code.CANCELLED`. * * - * bool requested_cancellation = 6; + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. */ public boolean getRequestedCancellation() { return requestedCancellation_; @@ -399,7 +477,9 @@ public boolean getRequestedCancellation() { * Output only. API version used to start the operation. * * - * string api_version = 7; + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; @@ -419,7 +499,9 @@ public java.lang.String getApiVersion() { * Output only. API version used to start the operation. * * - * string api_version = 7; + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. */ public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; @@ -433,6 +515,195 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } + public static final int UNREACHABLE_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Output only. List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Output only. List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Output only. List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Output only. List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + public static final int OPERATION_STATUS_FIELD_NUMBER = 9; + + private static final class OperationStatusDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_OperationMetadata_OperationStatusEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gaming.v1alpha.OperationStatus.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> + operationStatus_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> + internalGetOperationStatus() { + if (operationStatus_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OperationStatusDefaultEntryHolder.defaultEntry); + } + return operationStatus_; + } + + public int getOperationStatusCount() { + return internalGetOperationStatus().getMap().size(); + } + /** + * + * + *
+   * Output only. Operation status for game services operations. Operation status is in the
+   * form of key-value pairs where keys are resource IDs and the values show the
+   * status of the operation. In case of failures, the value includes an error
+   * code and error message.
+   * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public boolean containsOperationStatus(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetOperationStatus().getMap().containsKey(key); + } + /** Use {@link #getOperationStatusMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getOperationStatus() { + return getOperationStatusMap(); + } + /** + * + * + *
+   * Output only. Operation status for game services operations. Operation status is in the
+   * form of key-value pairs where keys are resource IDs and the values show the
+   * status of the operation. In case of failures, the value includes an error
+   * code and error message.
+   * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.Map + getOperationStatusMap() { + return internalGetOperationStatus().getMap(); + } + /** + * + * + *
+   * Output only. Operation status for game services operations. Operation status is in the
+   * form of key-value pairs where keys are resource IDs and the values show the
+   * status of the operation. In case of failures, the value includes an error
+   * code and error message.
+   * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrDefault( + java.lang.String key, com.google.cloud.gaming.v1alpha.OperationStatus defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetOperationStatus().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Output only. Operation status for game services operations. Operation status is in the
+   * form of key-value pairs where keys are resource IDs and the values show the
+   * status of the operation. In case of failures, the value includes an error
+   * code and error message.
+   * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetOperationStatus().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -468,6 +739,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getApiVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, unreachable_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetOperationStatus(), OperationStatusDefaultEntryHolder.defaultEntry, 9); unknownFields.writeTo(output); } @@ -498,6 +774,26 @@ public int getSerializedSize() { if (!getApiVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + for (java.util.Map.Entry + entry : internalGetOperationStatus().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> + operationStatus__ = + OperationStatusDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, operationStatus__); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -527,6 +823,8 @@ public boolean equals(final java.lang.Object obj) { if (!getStatusMessage().equals(other.getStatusMessage())) return false; if (getRequestedCancellation() != other.getRequestedCancellation()) return false; if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!internalGetOperationStatus().equals(other.internalGetOperationStatus())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -556,6 +854,14 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + if (!internalGetOperationStatus().getMap().isEmpty()) { + hash = (37 * hash) + OPERATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOperationStatus().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -674,6 +980,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_gaming_v1alpha_OperationMetadata_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 9: + return internalGetOperationStatus(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 9: + return internalGetMutableOperationStatus(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -723,6 +1049,9 @@ public Builder clear() { apiVersion_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableOperationStatus().clear(); return this; } @@ -750,6 +1079,7 @@ public com.google.cloud.gaming.v1alpha.OperationMetadata build() { public com.google.cloud.gaming.v1alpha.OperationMetadata buildPartial() { com.google.cloud.gaming.v1alpha.OperationMetadata result = new com.google.cloud.gaming.v1alpha.OperationMetadata(this); + int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -765,6 +1095,13 @@ public com.google.cloud.gaming.v1alpha.OperationMetadata buildPartial() { result.statusMessage_ = statusMessage_; result.requestedCancellation_ = requestedCancellation_; result.apiVersion_ = apiVersion_; + if (((bitField0_ & 0x00000001) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.unreachable_ = unreachable_; + result.operationStatus_ = internalGetOperationStatus(); + result.operationStatus_.makeImmutable(); onBuilt(); return result; } @@ -840,6 +1177,17 @@ public Builder mergeFrom(com.google.cloud.gaming.v1alpha.OperationMetadata other apiVersion_ = other.apiVersion_; onChanged(); } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + internalGetMutableOperationStatus().mergeFrom(other.internalGetOperationStatus()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -870,6 +1218,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -883,7 +1233,11 @@ public Builder mergeFrom( * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -895,7 +1249,11 @@ public boolean hasCreateTime() { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { @@ -913,7 +1271,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -935,7 +1295,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { @@ -954,7 +1316,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -978,7 +1342,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -998,7 +1364,9 @@ public Builder clearCreateTime() { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { @@ -1012,7 +1380,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { @@ -1030,7 +1400,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1062,7 +1434,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; @@ -1074,7 +1449,10 @@ public boolean hasEndTime() { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { if (endTimeBuilder_ == null) { @@ -1090,7 +1468,8 @@ public com.google.protobuf.Timestamp getEndTime() { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1112,7 +1491,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { @@ -1131,7 +1511,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1155,7 +1536,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1175,7 +1557,8 @@ public Builder clearEndTime() { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { @@ -1189,7 +1572,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { @@ -1205,7 +1589,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1232,7 +1617,9 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * Output only. Server-defined resource path for the target of the operation. * * - * string target = 3; + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; @@ -1252,7 +1639,9 @@ public java.lang.String getTarget() { * Output only. Server-defined resource path for the target of the operation. * * - * string target = 3; + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. */ public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; @@ -1272,7 +1661,10 @@ public com.google.protobuf.ByteString getTargetBytes() { * Output only. Server-defined resource path for the target of the operation. * * - * string target = 3; + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. */ public Builder setTarget(java.lang.String value) { if (value == null) { @@ -1290,7 +1682,9 @@ public Builder setTarget(java.lang.String value) { * Output only. Server-defined resource path for the target of the operation. * * - * string target = 3; + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearTarget() { @@ -1305,7 +1699,10 @@ public Builder clearTarget() { * Output only. Server-defined resource path for the target of the operation. * * - * string target = 3; + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. */ public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1326,7 +1723,9 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { * Output only. Name of the verb executed by the operation. * * - * string verb = 4; + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; @@ -1346,7 +1745,9 @@ public java.lang.String getVerb() { * Output only. Name of the verb executed by the operation. * * - * string verb = 4; + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. */ public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; @@ -1366,7 +1767,10 @@ public com.google.protobuf.ByteString getVerbBytes() { * Output only. Name of the verb executed by the operation. * * - * string verb = 4; + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. */ public Builder setVerb(java.lang.String value) { if (value == null) { @@ -1384,7 +1788,9 @@ public Builder setVerb(java.lang.String value) { * Output only. Name of the verb executed by the operation. * * - * string verb = 4; + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearVerb() { @@ -1399,7 +1805,10 @@ public Builder clearVerb() { * Output only. Name of the verb executed by the operation. * * - * string verb = 4; + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. */ public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1420,7 +1829,9 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { * Output only. Human-readable status of the operation, if any. * * - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; @@ -1440,7 +1851,9 @@ public java.lang.String getStatusMessage() { * Output only. Human-readable status of the operation, if any. * * - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; @@ -1460,7 +1873,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * Output only. Human-readable status of the operation, if any. * * - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. */ public Builder setStatusMessage(java.lang.String value) { if (value == null) { @@ -1478,7 +1894,9 @@ public Builder setStatusMessage(java.lang.String value) { * Output only. Human-readable status of the operation, if any. * * - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1493,7 +1911,10 @@ public Builder clearStatusMessage() { * Output only. Human-readable status of the operation, if any. * * - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. */ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1517,7 +1938,9 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { * corresponding to `Code.CANCELLED`. * * - * bool requested_cancellation = 6; + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. */ public boolean getRequestedCancellation() { return requestedCancellation_; @@ -1532,7 +1955,10 @@ public boolean getRequestedCancellation() { * corresponding to `Code.CANCELLED`. * * - * bool requested_cancellation = 6; + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { @@ -1550,7 +1976,9 @@ public Builder setRequestedCancellation(boolean value) { * corresponding to `Code.CANCELLED`. * * - * bool requested_cancellation = 6; + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1567,7 +1995,9 @@ public Builder clearRequestedCancellation() { * Output only. API version used to start the operation. * * - * string api_version = 7; + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; @@ -1587,7 +2017,9 @@ public java.lang.String getApiVersion() { * Output only. API version used to start the operation. * * - * string api_version = 7; + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. */ public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; @@ -1607,7 +2039,10 @@ public com.google.protobuf.ByteString getApiVersionBytes() { * Output only. API version used to start the operation. * * - * string api_version = 7; + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apiVersion to set. + * @return This builder for chaining. */ public Builder setApiVersion(java.lang.String value) { if (value == null) { @@ -1625,7 +2060,9 @@ public Builder setApiVersion(java.lang.String value) { * Output only. API version used to start the operation. * * - * string api_version = 7; + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1640,7 +2077,10 @@ public Builder clearApiVersion() { * Output only. API version used to start the operation. * * - * string api_version = 7; + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. */ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1653,6 +2093,377 @@ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Output only. List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Output only. List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Output only. List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Output only. List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Output only. List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. List of locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> + operationStatus_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> + internalGetOperationStatus() { + if (operationStatus_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OperationStatusDefaultEntryHolder.defaultEntry); + } + return operationStatus_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gaming.v1alpha.OperationStatus> + internalGetMutableOperationStatus() { + onChanged(); + ; + if (operationStatus_ == null) { + operationStatus_ = + com.google.protobuf.MapField.newMapField( + OperationStatusDefaultEntryHolder.defaultEntry); + } + if (!operationStatus_.isMutable()) { + operationStatus_ = operationStatus_.copy(); + } + return operationStatus_; + } + + public int getOperationStatusCount() { + return internalGetOperationStatus().getMap().size(); + } + /** + * + * + *
+     * Output only. Operation status for game services operations. Operation status is in the
+     * form of key-value pairs where keys are resource IDs and the values show the
+     * status of the operation. In case of failures, the value includes an error
+     * code and error message.
+     * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public boolean containsOperationStatus(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetOperationStatus().getMap().containsKey(key); + } + /** Use {@link #getOperationStatusMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getOperationStatus() { + return getOperationStatusMap(); + } + /** + * + * + *
+     * Output only. Operation status for game services operations. Operation status is in the
+     * form of key-value pairs where keys are resource IDs and the values show the
+     * status of the operation. In case of failures, the value includes an error
+     * code and error message.
+     * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.Map + getOperationStatusMap() { + return internalGetOperationStatus().getMap(); + } + /** + * + * + *
+     * Output only. Operation status for game services operations. Operation status is in the
+     * form of key-value pairs where keys are resource IDs and the values show the
+     * status of the operation. In case of failures, the value includes an error
+     * code and error message.
+     * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrDefault( + java.lang.String key, com.google.cloud.gaming.v1alpha.OperationStatus defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetOperationStatus().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Output only. Operation status for game services operations. Operation status is in the
+     * form of key-value pairs where keys are resource IDs and the values show the
+     * status of the operation. In case of failures, the value includes an error
+     * code and error message.
+     * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetOperationStatus().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOperationStatus() { + internalGetMutableOperationStatus().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Output only. Operation status for game services operations. Operation status is in the
+     * form of key-value pairs where keys are resource IDs and the values show the
+     * status of the operation. In case of failures, the value includes an error
+     * code and error message.
+     * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeOperationStatus(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableOperationStatus().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableOperationStatus() { + return internalGetMutableOperationStatus().getMutableMap(); + } + /** + * + * + *
+     * Output only. Operation status for game services operations. Operation status is in the
+     * form of key-value pairs where keys are resource IDs and the values show the
+     * status of the operation. In case of failures, the value includes an error
+     * code and error message.
+     * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putOperationStatus( + java.lang.String key, com.google.cloud.gaming.v1alpha.OperationStatus value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableOperationStatus().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Output only. Operation status for game services operations. Operation status is in the
+     * form of key-value pairs where keys are resource IDs and the values show the
+     * status of the operation. In case of failures, the value includes an error
+     * code and error message.
+     * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllOperationStatus( + java.util.Map values) { + internalGetMutableOperationStatus().getMutableMap().putAll(values); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadataOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadataOrBuilder.java index ded0e3b8..56a582e4 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadataOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,10 @@ public interface OperationMetadataOrBuilder * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** @@ -40,7 +43,10 @@ public interface OperationMetadataOrBuilder * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** @@ -50,7 +56,8 @@ public interface OperationMetadataOrBuilder * Output only. The time the operation was created. * * - * .google.protobuf.Timestamp create_time = 1; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); @@ -61,7 +68,10 @@ public interface OperationMetadataOrBuilder * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. */ boolean hasEndTime(); /** @@ -71,7 +81,10 @@ public interface OperationMetadataOrBuilder * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** @@ -81,7 +94,8 @@ public interface OperationMetadataOrBuilder * Output only. The time the operation finished running. * * - * .google.protobuf.Timestamp end_time = 2; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); @@ -92,7 +106,9 @@ public interface OperationMetadataOrBuilder * Output only. Server-defined resource path for the target of the operation. * * - * string target = 3; + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. */ java.lang.String getTarget(); /** @@ -102,7 +118,9 @@ public interface OperationMetadataOrBuilder * Output only. Server-defined resource path for the target of the operation. * * - * string target = 3; + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. */ com.google.protobuf.ByteString getTargetBytes(); @@ -113,7 +131,9 @@ public interface OperationMetadataOrBuilder * Output only. Name of the verb executed by the operation. * * - * string verb = 4; + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. */ java.lang.String getVerb(); /** @@ -123,7 +143,9 @@ public interface OperationMetadataOrBuilder * Output only. Name of the verb executed by the operation. * * - * string verb = 4; + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. */ com.google.protobuf.ByteString getVerbBytes(); @@ -134,7 +156,9 @@ public interface OperationMetadataOrBuilder * Output only. Human-readable status of the operation, if any. * * - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. */ java.lang.String getStatusMessage(); /** @@ -144,7 +168,9 @@ public interface OperationMetadataOrBuilder * Output only. Human-readable status of the operation, if any. * * - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. */ com.google.protobuf.ByteString getStatusMessageBytes(); @@ -158,7 +184,9 @@ public interface OperationMetadataOrBuilder * corresponding to `Code.CANCELLED`. * * - * bool requested_cancellation = 6; + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. */ boolean getRequestedCancellation(); @@ -169,7 +197,9 @@ public interface OperationMetadataOrBuilder * Output only. API version used to start the operation. * * - * string api_version = 7; + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. */ java.lang.String getApiVersion(); /** @@ -179,7 +209,142 @@ public interface OperationMetadataOrBuilder * Output only. API version used to start the operation. * * - * string api_version = 7; + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. */ com.google.protobuf.ByteString getApiVersionBytes(); + + /** + * + * + *
+   * Output only. List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Output only. List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Output only. List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Output only. List of locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); + + /** + * + * + *
+   * Output only. Operation status for game services operations. Operation status is in the
+   * form of key-value pairs where keys are resource IDs and the values show the
+   * status of the operation. In case of failures, the value includes an error
+   * code and error message.
+   * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getOperationStatusCount(); + /** + * + * + *
+   * Output only. Operation status for game services operations. Operation status is in the
+   * form of key-value pairs where keys are resource IDs and the values show the
+   * status of the operation. In case of failures, the value includes an error
+   * code and error message.
+   * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsOperationStatus(java.lang.String key); + /** Use {@link #getOperationStatusMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getOperationStatus(); + /** + * + * + *
+   * Output only. Operation status for game services operations. Operation status is in the
+   * form of key-value pairs where keys are resource IDs and the values show the
+   * status of the operation. In case of failures, the value includes an error
+   * code and error message.
+   * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getOperationStatusMap(); + /** + * + * + *
+   * Output only. Operation status for game services operations. Operation status is in the
+   * form of key-value pairs where keys are resource IDs and the values show the
+   * status of the operation. In case of failures, the value includes an error
+   * code and error message.
+   * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrDefault( + java.lang.String key, com.google.cloud.gaming.v1alpha.OperationStatus defaultValue); + /** + * + * + *
+   * Output only. Operation status for game services operations. Operation status is in the
+   * form of key-value pairs where keys are resource IDs and the values show the
+   * status of the operation. In case of failures, the value includes an error
+   * code and error message.
+   * 
+ * + * + * map<string, .google.cloud.gaming.v1alpha.OperationStatus> operation_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gaming.v1alpha.OperationStatus getOperationStatusOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatus.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatus.java new file mode 100644 index 00000000..bbcfac53 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatus.java @@ -0,0 +1,961 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +/** Protobuf type {@code google.cloud.gaming.v1alpha.OperationStatus} */ +public final class OperationStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.OperationStatus) + OperationStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use OperationStatus.newBuilder() to construct. + private OperationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperationStatus() { + errorCode_ = 0; + errorMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OperationStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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 8: + { + done_ = input.readBool(); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + errorCode_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + errorMessage_ = 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.Common + .internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_OperationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.OperationStatus.class, + com.google.cloud.gaming.v1alpha.OperationStatus.Builder.class); + } + + /** Protobuf enum {@code google.cloud.gaming.v1alpha.OperationStatus.ErrorCode} */ + public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { + /** ERROR_CODE_UNSPECIFIED = 0; */ + ERROR_CODE_UNSPECIFIED(0), + /** INTERNAL_ERROR = 1; */ + INTERNAL_ERROR(1), + /** PERMISSION_DENIED = 2; */ + PERMISSION_DENIED(2), + /** CLUSTER_CONNECTION = 3; */ + CLUSTER_CONNECTION(3), + UNRECOGNIZED(-1), + ; + + /** ERROR_CODE_UNSPECIFIED = 0; */ + public static final int ERROR_CODE_UNSPECIFIED_VALUE = 0; + /** INTERNAL_ERROR = 1; */ + public static final int INTERNAL_ERROR_VALUE = 1; + /** PERMISSION_DENIED = 2; */ + public static final int PERMISSION_DENIED_VALUE = 2; + /** CLUSTER_CONNECTION = 3; */ + public static final int CLUSTER_CONNECTION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ErrorCode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ErrorCode forNumber(int value) { + switch (value) { + case 0: + return ERROR_CODE_UNSPECIFIED; + case 1: + return INTERNAL_ERROR; + case 2: + return PERMISSION_DENIED; + case 3: + return CLUSTER_CONNECTION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorCode findValueByNumber(int number) { + return ErrorCode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.OperationStatus.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorCode[] VALUES = values(); + + public static ErrorCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ErrorCode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gaming.v1alpha.OperationStatus.ErrorCode) + } + + public static final int DONE_FIELD_NUMBER = 1; + private boolean done_; + /** + * + * + *
+   * Output only. Whether the operation is done or still in progress.
+   * 
+ * + * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The done. + */ + public boolean getDone() { + return done_; + } + + public static final int ERROR_CODE_FIELD_NUMBER = 2; + private int errorCode_; + /** + * + * + *
+   * The error code in case of failures.
+   * 
+ * + * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; + * + * @return The enum numeric value on the wire for errorCode. + */ + public int getErrorCodeValue() { + return errorCode_; + } + /** + * + * + *
+   * The error code in case of failures.
+   * 
+ * + * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; + * + * @return The errorCode. + */ + public com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode getErrorCode() { + @SuppressWarnings("deprecation") + com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode result = + com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.valueOf(errorCode_); + return result == null + ? com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.UNRECOGNIZED + : result; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 3; + private volatile java.lang.Object errorMessage_; + /** + * + * + *
+   * The human-readable error message.
+   * 
+ * + * string error_message = 3; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + /** + * + * + *
+   * The human-readable error message.
+   * 
+ * + * string error_message = 3; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = 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 (done_ != false) { + output.writeBool(1, done_); + } + if (errorCode_ + != com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.ERROR_CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, errorCode_); + } + if (!getErrorMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorMessage_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (done_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, done_); + } + if (errorCode_ + != com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.ERROR_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, errorCode_); + } + if (!getErrorMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorMessage_); + } + 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.OperationStatus)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.OperationStatus other = + (com.google.cloud.gaming.v1alpha.OperationStatus) obj; + + if (getDone() != other.getDone()) return false; + if (errorCode_ != other.errorCode_) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) 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) + DONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); + hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER; + hash = (53 * hash) + errorCode_; + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.OperationStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.OperationStatus 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.OperationStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.OperationStatus 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.OperationStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.OperationStatus 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.OperationStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.OperationStatus 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.OperationStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.OperationStatus 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.OperationStatus 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.OperationStatus 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.OperationStatus 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; + } + /** Protobuf type {@code google.cloud.gaming.v1alpha.OperationStatus} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.OperationStatus) + com.google.cloud.gaming.v1alpha.OperationStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_OperationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.OperationStatus.class, + com.google.cloud.gaming.v1alpha.OperationStatus.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.OperationStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + done_ = false; + + errorCode_ = 0; + + errorMessage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_OperationStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.OperationStatus getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.OperationStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.OperationStatus build() { + com.google.cloud.gaming.v1alpha.OperationStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.OperationStatus buildPartial() { + com.google.cloud.gaming.v1alpha.OperationStatus result = + new com.google.cloud.gaming.v1alpha.OperationStatus(this); + result.done_ = done_; + result.errorCode_ = errorCode_; + result.errorMessage_ = errorMessage_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.OperationStatus) { + return mergeFrom((com.google.cloud.gaming.v1alpha.OperationStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.OperationStatus other) { + if (other == com.google.cloud.gaming.v1alpha.OperationStatus.getDefaultInstance()) + return this; + if (other.getDone() != false) { + setDone(other.getDone()); + } + if (other.errorCode_ != 0) { + setErrorCodeValue(other.getErrorCodeValue()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.OperationStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gaming.v1alpha.OperationStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean done_; + /** + * + * + *
+     * Output only. Whether the operation is done or still in progress.
+     * 
+ * + * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The done. + */ + public boolean getDone() { + return done_; + } + /** + * + * + *
+     * Output only. Whether the operation is done or still in progress.
+     * 
+ * + * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The done to set. + * @return This builder for chaining. + */ + public Builder setDone(boolean value) { + + done_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Whether the operation is done or still in progress.
+     * 
+ * + * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDone() { + + done_ = false; + onChanged(); + return this; + } + + private int errorCode_ = 0; + /** + * + * + *
+     * The error code in case of failures.
+     * 
+ * + * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; + * + * @return The enum numeric value on the wire for errorCode. + */ + public int getErrorCodeValue() { + return errorCode_; + } + /** + * + * + *
+     * The error code in case of failures.
+     * 
+ * + * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; + * + * @param value The enum numeric value on the wire for errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCodeValue(int value) { + errorCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The error code in case of failures.
+     * 
+ * + * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; + * + * @return The errorCode. + */ + public com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode getErrorCode() { + @SuppressWarnings("deprecation") + com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode result = + com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.valueOf(errorCode_); + return result == null + ? com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The error code in case of failures.
+     * 
+ * + * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; + * + * @param value The errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCode(com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode value) { + if (value == null) { + throw new NullPointerException(); + } + + errorCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The error code in case of failures.
+     * 
+ * + * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearErrorCode() { + + errorCode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + * + * + *
+     * The human-readable error message.
+     * 
+ * + * string error_message = 3; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The human-readable error message.
+     * 
+ * + * string error_message = 3; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The human-readable error message.
+     * 
+ * + * string error_message = 3; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The human-readable error message.
+     * 
+ * + * string error_message = 3; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + + errorMessage_ = getDefaultInstance().getErrorMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * The human-readable error message.
+     * 
+ * + * string error_message = 3; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorMessage_ = 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.OperationStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.OperationStatus) + private static final com.google.cloud.gaming.v1alpha.OperationStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.OperationStatus(); + } + + public static com.google.cloud.gaming.v1alpha.OperationStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.OperationStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatusOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatusOrBuilder.java new file mode 100644 index 00000000..cef89095 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatusOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +public interface OperationStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.OperationStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Whether the operation is done or still in progress.
+   * 
+ * + * bool done = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The done. + */ + boolean getDone(); + + /** + * + * + *
+   * The error code in case of failures.
+   * 
+ * + * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; + * + * @return The enum numeric value on the wire for errorCode. + */ + int getErrorCodeValue(); + /** + * + * + *
+   * The error code in case of failures.
+   * 
+ * + * .google.cloud.gaming.v1alpha.OperationStatus.ErrorCode error_code = 2; + * + * @return The errorCode. + */ + com.google.cloud.gaming.v1alpha.OperationStatus.ErrorCode getErrorCode(); + + /** + * + * + *
+   * The human-readable error message.
+   * 
+ * + * string error_message = 3; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + * + * + *
+   * The human-readable error message.
+   * 
+ * + * string error_message = 3; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequest.java new file mode 100644 index 00000000..e3a2269f --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequest.java @@ -0,0 +1,1417 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Request message for GameServerClustersService.PreviewCreateGameServerCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest} + */ +public final class PreviewCreateGameServerClusterRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) + PreviewCreateGameServerClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewCreateGameServerClusterRequest.newBuilder() to construct. + private PreviewCreateGameServerClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewCreateGameServerClusterRequest() { + parent_ = ""; + gameServerClusterId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewCreateGameServerClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewCreateGameServerClusterRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + gameServerClusterId_ = s; + break; + } + case 26: + { + com.google.cloud.gaming.v1alpha.GameServerCluster.Builder subBuilder = null; + if (gameServerCluster_ != null) { + subBuilder = gameServerCluster_.toBuilder(); + } + gameServerCluster_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.GameServerCluster.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gameServerCluster_); + gameServerCluster_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (previewTime_ != null) { + subBuilder = previewTime_.toBuilder(); + } + previewTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(previewTime_); + previewTime_ = 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.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.class, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.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}/locations/{location}/realms/{realm-id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + 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}/locations/{location}/realms/{realm-id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + 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 GAME_SERVER_CLUSTER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object gameServerClusterId_; + /** + * + * + *
+   * Required. The ID of the game server cluster resource to be created.
+   * 
+ * + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gameServerClusterId. + */ + public java.lang.String getGameServerClusterId() { + java.lang.Object ref = gameServerClusterId_; + 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(); + gameServerClusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the game server cluster resource to be created.
+   * 
+ * + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gameServerClusterId. + */ + public com.google.protobuf.ByteString getGameServerClusterIdBytes() { + java.lang.Object ref = gameServerClusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GAME_SERVER_CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; + /** + * + * + *
+   * Required. The game server cluster resource to be created.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. + */ + public boolean hasGameServerCluster() { + return gameServerCluster_ != null; + } + /** + * + * + *
+   * Required. The game server cluster resource to be created.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. + */ + public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { + return gameServerCluster_ == null + ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() + : gameServerCluster_; + } + /** + * + * + *
+   * Required. The game server cluster resource to be created.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder + getGameServerClusterOrBuilder() { + return getGameServerCluster(); + } + + public static final int PREVIEW_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp previewTime_; + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTime_ != null; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + return getPreviewTime(); + } + + 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 (!getGameServerClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gameServerClusterId_); + } + if (gameServerCluster_ != null) { + output.writeMessage(3, getGameServerCluster()); + } + if (previewTime_ != null) { + output.writeMessage(4, getPreviewTime()); + } + 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 (!getGameServerClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gameServerClusterId_); + } + if (gameServerCluster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGameServerCluster()); + } + if (previewTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPreviewTime()); + } + 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.PreviewCreateGameServerClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest other = + (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getGameServerClusterId().equals(other.getGameServerClusterId())) return false; + if (hasGameServerCluster() != other.hasGameServerCluster()) return false; + if (hasGameServerCluster()) { + if (!getGameServerCluster().equals(other.getGameServerCluster())) return false; + } + if (hasPreviewTime() != other.hasPreviewTime()) return false; + if (hasPreviewTime()) { + if (!getPreviewTime().equals(other.getPreviewTime())) 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) + GAME_SERVER_CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getGameServerClusterId().hashCode(); + if (hasGameServerCluster()) { + hash = (37 * hash) + GAME_SERVER_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getGameServerCluster().hashCode(); + } + if (hasPreviewTime()) { + hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPreviewTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest 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.PreviewCreateGameServerClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest 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.PreviewCreateGameServerClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest 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.PreviewCreateGameServerClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest 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.PreviewCreateGameServerClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest + 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.PreviewCreateGameServerClusterRequest 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.PreviewCreateGameServerClusterRequest 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.PreviewCreateGameServerClusterRequest 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 GameServerClustersService.PreviewCreateGameServerCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.class, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + gameServerClusterId_ = ""; + + if (gameServerClusterBuilder_ == null) { + gameServerCluster_ = null; + } else { + gameServerCluster_ = null; + gameServerClusterBuilder_ = null; + } + if (previewTimeBuilder_ == null) { + previewTime_ = null; + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest build() { + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest result = + new com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest(this); + result.parent_ = parent_; + result.gameServerClusterId_ = gameServerClusterId_; + if (gameServerClusterBuilder_ == null) { + result.gameServerCluster_ = gameServerCluster_; + } else { + result.gameServerCluster_ = gameServerClusterBuilder_.build(); + } + if (previewTimeBuilder_ == null) { + result.previewTime_ = previewTime_; + } else { + result.previewTime_ = previewTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest other) { + if (other + == com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getGameServerClusterId().isEmpty()) { + gameServerClusterId_ = other.gameServerClusterId_; + onChanged(); + } + if (other.hasGameServerCluster()) { + mergeGameServerCluster(other.getGameServerCluster()); + } + if (other.hasPreviewTime()) { + mergePreviewTime(other.getPreviewTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource name, using the form:
+     * `projects/{project}/locations/{location}/realms/{realm-id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + 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}/locations/{location}/realms/{realm-id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + 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}/locations/{location}/realms/{realm-id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + 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}/locations/{location}/realms/{realm-id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource name, using the form:
+     * `projects/{project}/locations/{location}/realms/{realm-id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + 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 gameServerClusterId_ = ""; + /** + * + * + *
+     * Required. The ID of the game server cluster resource to be created.
+     * 
+ * + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gameServerClusterId. + */ + public java.lang.String getGameServerClusterId() { + java.lang.Object ref = gameServerClusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gameServerClusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the game server cluster resource to be created.
+     * 
+ * + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gameServerClusterId. + */ + public com.google.protobuf.ByteString getGameServerClusterIdBytes() { + java.lang.Object ref = gameServerClusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the game server cluster resource to be created.
+     * 
+ * + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gameServerClusterId to set. + * @return This builder for chaining. + */ + public Builder setGameServerClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gameServerClusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the game server cluster resource to be created.
+     * 
+ * + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGameServerClusterId() { + + gameServerClusterId_ = getDefaultInstance().getGameServerClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the game server cluster resource to be created.
+     * 
+ * + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gameServerClusterId to set. + * @return This builder for chaining. + */ + public Builder setGameServerClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gameServerClusterId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerCluster, + com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, + com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> + gameServerClusterBuilder_; + /** + * + * + *
+     * Required. The game server cluster resource to be created.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. + */ + public boolean hasGameServerCluster() { + return gameServerClusterBuilder_ != null || gameServerCluster_ != null; + } + /** + * + * + *
+     * Required. The game server cluster resource to be created.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. + */ + public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { + if (gameServerClusterBuilder_ == null) { + return gameServerCluster_ == null + ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() + : gameServerCluster_; + } else { + return gameServerClusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The game server cluster resource to be created.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { + if (gameServerClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameServerCluster_ = value; + onChanged(); + } else { + gameServerClusterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The game server cluster resource to be created.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGameServerCluster( + com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { + if (gameServerClusterBuilder_ == null) { + gameServerCluster_ = builderForValue.build(); + onChanged(); + } else { + gameServerClusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The game server cluster resource to be created.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { + if (gameServerClusterBuilder_ == null) { + if (gameServerCluster_ != null) { + gameServerCluster_ = + com.google.cloud.gaming.v1alpha.GameServerCluster.newBuilder(gameServerCluster_) + .mergeFrom(value) + .buildPartial(); + } else { + gameServerCluster_ = value; + } + onChanged(); + } else { + gameServerClusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The game server cluster resource to be created.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGameServerCluster() { + if (gameServerClusterBuilder_ == null) { + gameServerCluster_ = null; + onChanged(); + } else { + gameServerCluster_ = null; + gameServerClusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The game server cluster resource to be created.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerClusterBuilder() { + + onChanged(); + return getGameServerClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The game server cluster resource to be created.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder + getGameServerClusterOrBuilder() { + if (gameServerClusterBuilder_ != null) { + return gameServerClusterBuilder_.getMessageOrBuilder(); + } else { + return gameServerCluster_ == null + ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() + : gameServerCluster_; + } + } + /** + * + * + *
+     * Required. The game server cluster resource to be created.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerCluster, + com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, + com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> + getGameServerClusterFieldBuilder() { + if (gameServerClusterBuilder_ == null) { + gameServerClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerCluster, + com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, + com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder>( + getGameServerCluster(), getParentForChildren(), isClean()); + gameServerCluster_ = null; + } + return gameServerClusterBuilder_; + } + + private com.google.protobuf.Timestamp previewTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + previewTimeBuilder_; + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTimeBuilder_ != null || previewTime_ != null; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + if (previewTimeBuilder_ == null) { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } else { + return previewTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + previewTime_ = value; + onChanged(); + } else { + previewTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (previewTimeBuilder_ == null) { + previewTime_ = builderForValue.build(); + onChanged(); + } else { + previewTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (previewTime_ != null) { + previewTime_ = + com.google.protobuf.Timestamp.newBuilder(previewTime_) + .mergeFrom(value) + .buildPartial(); + } else { + previewTime_ = value; + } + onChanged(); + } else { + previewTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPreviewTime() { + if (previewTimeBuilder_ == null) { + previewTime_ = null; + onChanged(); + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { + + onChanged(); + return getPreviewTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + if (previewTimeBuilder_ != null) { + return previewTimeBuilder_.getMessageOrBuilder(); + } else { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPreviewTimeFieldBuilder() { + if (previewTimeBuilder_ == null) { + previewTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPreviewTime(), getParentForChildren(), isClean()); + previewTime_ = null; + } + return previewTimeBuilder_; + } + + @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.PreviewCreateGameServerClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) + private static final com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewCreateGameServerClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewCreateGameServerClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequestOrBuilder.java new file mode 100644 index 00000000..2fe11d2c --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequestOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewCreateGameServerClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name, using the form:
+   * `projects/{project}/locations/{location}/realms/{realm-id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource name, using the form:
+   * `projects/{project}/locations/{location}/realms/{realm-id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the game server cluster resource to be created.
+   * 
+ * + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gameServerClusterId. + */ + java.lang.String getGameServerClusterId(); + /** + * + * + *
+   * Required. The ID of the game server cluster resource to be created.
+   * 
+ * + * string game_server_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gameServerClusterId. + */ + com.google.protobuf.ByteString getGameServerClusterIdBytes(); + + /** + * + * + *
+   * Required. The game server cluster resource to be created.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. + */ + boolean hasGameServerCluster(); + /** + * + * + *
+   * Required. The game server cluster resource to be created.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. + */ + com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster(); + /** + * + * + *
+   * Required. The game server cluster resource to be created.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder(); + + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + boolean hasPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + com.google.protobuf.Timestamp getPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponse.java new file mode 100644 index 00000000..ba82a27b --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponse.java @@ -0,0 +1,1221 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Response message for
+ * GameServerClustersService.PreviewCreateGameServerCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse} + */ +public final class PreviewCreateGameServerClusterResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) + PreviewCreateGameServerClusterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewCreateGameServerClusterResponse.newBuilder() to construct. + private PreviewCreateGameServerClusterResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewCreateGameServerClusterResponse() { + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewCreateGameServerClusterResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewCreateGameServerClusterResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.DeployedState.Builder subBuilder = null; + if (deployedState_ != null) { + subBuilder = deployedState_.toBuilder(); + } + deployedState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployedState_); + deployedState_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 26: + { + com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; + if (targetState_ != null) { + subBuilder = targetState_.toBuilder(); + } + targetState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetState_); + targetState_ = 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.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.class, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.Builder.class); + } + + public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedState_ != null; + } + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + return getDeployedState(); + } + + public static final int ETAG_FIELD_NUMBER = 2; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_STATE_FIELD_NUMBER = 3; + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetState_ != null; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + return getTargetState(); + } + + 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 (deployedState_ != null) { + output.writeMessage(1, getDeployedState()); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); + } + if (targetState_ != null) { + output.writeMessage(3, getTargetState()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deployedState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); + } + if (targetState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetState()); + } + 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.PreviewCreateGameServerClusterResponse)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse other = + (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) obj; + + if (hasDeployedState() != other.hasDeployedState()) return false; + if (hasDeployedState()) { + if (!getDeployedState().equals(other.getDeployedState())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (hasTargetState() != other.hasTargetState()) return false; + if (hasTargetState()) { + if (!getTargetState().equals(other.getTargetState())) 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 (hasDeployedState()) { + hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; + hash = (53 * hash) + getDeployedState().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasTargetState()) { + hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; + hash = (53 * hash) + getTargetState().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse 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.PreviewCreateGameServerClusterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse 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.PreviewCreateGameServerClusterResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse 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.PreviewCreateGameServerClusterResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse 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.PreviewCreateGameServerClusterResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse + 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.PreviewCreateGameServerClusterResponse 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.PreviewCreateGameServerClusterResponse 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.PreviewCreateGameServerClusterResponse 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; + } + /** + * + * + *
+   * Response message for
+   * GameServerClustersService.PreviewCreateGameServerCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.class, + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (deployedStateBuilder_ == null) { + deployedState_ = null; + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + etag_ = ""; + + if (targetStateBuilder_ == null) { + targetState_ = null; + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewCreateGameServerClusterResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse build() { + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse result = + new com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse(this); + if (deployedStateBuilder_ == null) { + result.deployedState_ = deployedState_; + } else { + result.deployedState_ = deployedStateBuilder_.build(); + } + result.etag_ = etag_; + if (targetStateBuilder_ == null) { + result.targetState_ = targetState_; + } else { + result.targetState_ = targetStateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse other) { + if (other + == com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse + .getDefaultInstance()) return this; + if (other.hasDeployedState()) { + mergeDeployedState(other.getDeployedState()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.hasTargetState()) { + mergeTargetState(other.getTargetState()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + deployedStateBuilder_; + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedStateBuilder_ != null || deployedState_ != null; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + if (deployedStateBuilder_ == null) { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } else { + return deployedStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedState_ = value; + onChanged(); + } else { + deployedStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState( + com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { + if (deployedStateBuilder_ == null) { + deployedState_ = builderForValue.build(); + onChanged(); + } else { + deployedStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (deployedState_ != null) { + deployedState_ = + com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) + .mergeFrom(value) + .buildPartial(); + } else { + deployedState_ = value; + } + onChanged(); + } else { + deployedStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearDeployedState() { + if (deployedStateBuilder_ == null) { + deployedState_ = null; + onChanged(); + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { + + onChanged(); + return getDeployedStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + if (deployedStateBuilder_ != null) { + return deployedStateBuilder_.getMessageOrBuilder(); + } else { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + getDeployedStateFieldBuilder() { + if (deployedStateBuilder_ == null) { + deployedStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( + getDeployedState(), getParentForChildren(), isClean()); + deployedState_ = null; + } + return deployedStateBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + targetStateBuilder_; + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetStateBuilder_ != null || targetState_ != null; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + if (targetStateBuilder_ == null) { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } else { + return targetStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetState_ = value; + onChanged(); + } else { + targetStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder setTargetState( + com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { + if (targetStateBuilder_ == null) { + targetState_ = builderForValue.build(); + onChanged(); + } else { + targetStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (targetState_ != null) { + targetState_ = + com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) + .mergeFrom(value) + .buildPartial(); + } else { + targetState_ = value; + } + onChanged(); + } else { + targetStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder clearTargetState() { + if (targetStateBuilder_ == null) { + targetState_ = null; + onChanged(); + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { + + onChanged(); + return getTargetStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + if (targetStateBuilder_ != null) { + return targetStateBuilder_.getMessageOrBuilder(); + } else { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + getTargetStateFieldBuilder() { + if (targetStateBuilder_ == null) { + targetStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( + getTargetState(), getParentForChildren(), isClean()); + targetState_ = null; + } + return targetStateBuilder_; + } + + @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.PreviewCreateGameServerClusterResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) + private static final com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewCreateGameServerClusterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewCreateGameServerClusterResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponseOrBuilder.java new file mode 100644 index 00000000..b35e136c --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponseOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewCreateGameServerClusterResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewCreateGameServerClusterResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + boolean hasDeployedState(); + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); + + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + boolean hasTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + com.google.cloud.gaming.v1alpha.TargetState getTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequest.java new file mode 100644 index 00000000..c8bb1565 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequest.java @@ -0,0 +1,938 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Request message for GameServerClustersService.PreviewDeleteGameServerCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest} + */ +public final class PreviewDeleteGameServerClusterRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) + PreviewDeleteGameServerClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewDeleteGameServerClusterRequest.newBuilder() to construct. + private PreviewDeleteGameServerClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewDeleteGameServerClusterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewDeleteGameServerClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewDeleteGameServerClusterRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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 (previewTime_ != null) { + subBuilder = previewTime_.toBuilder(); + } + previewTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(previewTime_); + previewTime_ = 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.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.class, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the game server cluster to delete, using the form:
+   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + 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 cluster to delete, using the form:
+   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + 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 PREVIEW_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp previewTime_; + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTime_ != null; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + return getPreviewTime(); + } + + 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 (previewTime_ != null) { + output.writeMessage(2, getPreviewTime()); + } + 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 (previewTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPreviewTime()); + } + 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.PreviewDeleteGameServerClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest other = + (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasPreviewTime() != other.hasPreviewTime()) return false; + if (hasPreviewTime()) { + if (!getPreviewTime().equals(other.getPreviewTime())) 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(); + if (hasPreviewTime()) { + hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPreviewTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest 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.PreviewDeleteGameServerClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest 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.PreviewDeleteGameServerClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest 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.PreviewDeleteGameServerClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest 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.PreviewDeleteGameServerClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest + 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.PreviewDeleteGameServerClusterRequest 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.PreviewDeleteGameServerClusterRequest 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.PreviewDeleteGameServerClusterRequest 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 GameServerClustersService.PreviewDeleteGameServerCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.class, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (previewTimeBuilder_ == null) { + previewTime_ = null; + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest build() { + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest result = + new com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest(this); + result.name_ = name_; + if (previewTimeBuilder_ == null) { + result.previewTime_ = previewTime_; + } else { + result.previewTime_ = previewTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest other) { + if (other + == com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasPreviewTime()) { + mergePreviewTime(other.getPreviewTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the game server cluster to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + 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 cluster to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + 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 cluster to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + 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 cluster to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the game server cluster to delete, using the form:
+     * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + 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 previewTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + previewTimeBuilder_; + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTimeBuilder_ != null || previewTime_ != null; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + if (previewTimeBuilder_ == null) { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } else { + return previewTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + previewTime_ = value; + onChanged(); + } else { + previewTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (previewTimeBuilder_ == null) { + previewTime_ = builderForValue.build(); + onChanged(); + } else { + previewTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (previewTime_ != null) { + previewTime_ = + com.google.protobuf.Timestamp.newBuilder(previewTime_) + .mergeFrom(value) + .buildPartial(); + } else { + previewTime_ = value; + } + onChanged(); + } else { + previewTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPreviewTime() { + if (previewTimeBuilder_ == null) { + previewTime_ = null; + onChanged(); + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { + + onChanged(); + return getPreviewTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + if (previewTimeBuilder_ != null) { + return previewTimeBuilder_.getMessageOrBuilder(); + } else { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPreviewTimeFieldBuilder() { + if (previewTimeBuilder_ == null) { + previewTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPreviewTime(), getParentForChildren(), isClean()); + previewTime_ = null; + } + return previewTimeBuilder_; + } + + @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.PreviewDeleteGameServerClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) + private static final com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewDeleteGameServerClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewDeleteGameServerClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequestOrBuilder.java new file mode 100644 index 00000000..74343b68 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewDeleteGameServerClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the game server cluster to delete, using the form:
+   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the game server cluster to delete, using the form:
+   * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + boolean hasPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + com.google.protobuf.Timestamp getPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponse.java new file mode 100644 index 00000000..a4bb73b9 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponse.java @@ -0,0 +1,1221 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Response message for
+ * GameServerClustersService.PreviewDeleteGameServerCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse} + */ +public final class PreviewDeleteGameServerClusterResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) + PreviewDeleteGameServerClusterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewDeleteGameServerClusterResponse.newBuilder() to construct. + private PreviewDeleteGameServerClusterResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewDeleteGameServerClusterResponse() { + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewDeleteGameServerClusterResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewDeleteGameServerClusterResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.DeployedState.Builder subBuilder = null; + if (deployedState_ != null) { + subBuilder = deployedState_.toBuilder(); + } + deployedState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployedState_); + deployedState_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 26: + { + com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; + if (targetState_ != null) { + subBuilder = targetState_.toBuilder(); + } + targetState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetState_); + targetState_ = 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.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.class, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.Builder.class); + } + + public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedState_ != null; + } + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + return getDeployedState(); + } + + public static final int ETAG_FIELD_NUMBER = 2; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_STATE_FIELD_NUMBER = 3; + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetState_ != null; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + return getTargetState(); + } + + 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 (deployedState_ != null) { + output.writeMessage(1, getDeployedState()); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); + } + if (targetState_ != null) { + output.writeMessage(3, getTargetState()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deployedState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); + } + if (targetState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetState()); + } + 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.PreviewDeleteGameServerClusterResponse)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse other = + (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) obj; + + if (hasDeployedState() != other.hasDeployedState()) return false; + if (hasDeployedState()) { + if (!getDeployedState().equals(other.getDeployedState())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (hasTargetState() != other.hasTargetState()) return false; + if (hasTargetState()) { + if (!getTargetState().equals(other.getTargetState())) 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 (hasDeployedState()) { + hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; + hash = (53 * hash) + getDeployedState().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasTargetState()) { + hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; + hash = (53 * hash) + getTargetState().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse 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.PreviewDeleteGameServerClusterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse 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.PreviewDeleteGameServerClusterResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse 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.PreviewDeleteGameServerClusterResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse 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.PreviewDeleteGameServerClusterResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse + 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.PreviewDeleteGameServerClusterResponse 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.PreviewDeleteGameServerClusterResponse 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.PreviewDeleteGameServerClusterResponse 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; + } + /** + * + * + *
+   * Response message for
+   * GameServerClustersService.PreviewDeleteGameServerCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.class, + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (deployedStateBuilder_ == null) { + deployedState_ = null; + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + etag_ = ""; + + if (targetStateBuilder_ == null) { + targetState_ = null; + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewDeleteGameServerClusterResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse build() { + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse result = + new com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse(this); + if (deployedStateBuilder_ == null) { + result.deployedState_ = deployedState_; + } else { + result.deployedState_ = deployedStateBuilder_.build(); + } + result.etag_ = etag_; + if (targetStateBuilder_ == null) { + result.targetState_ = targetState_; + } else { + result.targetState_ = targetStateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse other) { + if (other + == com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse + .getDefaultInstance()) return this; + if (other.hasDeployedState()) { + mergeDeployedState(other.getDeployedState()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.hasTargetState()) { + mergeTargetState(other.getTargetState()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + deployedStateBuilder_; + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedStateBuilder_ != null || deployedState_ != null; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + if (deployedStateBuilder_ == null) { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } else { + return deployedStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedState_ = value; + onChanged(); + } else { + deployedStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState( + com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { + if (deployedStateBuilder_ == null) { + deployedState_ = builderForValue.build(); + onChanged(); + } else { + deployedStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (deployedState_ != null) { + deployedState_ = + com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) + .mergeFrom(value) + .buildPartial(); + } else { + deployedState_ = value; + } + onChanged(); + } else { + deployedStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearDeployedState() { + if (deployedStateBuilder_ == null) { + deployedState_ = null; + onChanged(); + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { + + onChanged(); + return getDeployedStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + if (deployedStateBuilder_ != null) { + return deployedStateBuilder_.getMessageOrBuilder(); + } else { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + getDeployedStateFieldBuilder() { + if (deployedStateBuilder_ == null) { + deployedStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( + getDeployedState(), getParentForChildren(), isClean()); + deployedState_ = null; + } + return deployedStateBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + targetStateBuilder_; + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetStateBuilder_ != null || targetState_ != null; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + if (targetStateBuilder_ == null) { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } else { + return targetStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetState_ = value; + onChanged(); + } else { + targetStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder setTargetState( + com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { + if (targetStateBuilder_ == null) { + targetState_ = builderForValue.build(); + onChanged(); + } else { + targetStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (targetState_ != null) { + targetState_ = + com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) + .mergeFrom(value) + .buildPartial(); + } else { + targetState_ = value; + } + onChanged(); + } else { + targetStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder clearTargetState() { + if (targetStateBuilder_ == null) { + targetState_ = null; + onChanged(); + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { + + onChanged(); + return getTargetStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + if (targetStateBuilder_ != null) { + return targetStateBuilder_.getMessageOrBuilder(); + } else { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + getTargetStateFieldBuilder() { + if (targetStateBuilder_ == null) { + targetStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( + getTargetState(), getParentForChildren(), isClean()); + targetState_ = null; + } + return targetStateBuilder_; + } + + @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.PreviewDeleteGameServerClusterResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) + private static final com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewDeleteGameServerClusterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewDeleteGameServerClusterResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponseOrBuilder.java new file mode 100644 index 00000000..488f4f49 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponseOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewDeleteGameServerClusterResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewDeleteGameServerClusterResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + boolean hasDeployedState(); + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); + + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + boolean hasTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + com.google.cloud.gaming.v1alpha.TargetState getTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequest.java new file mode 100644 index 00000000..4190566d --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequest.java @@ -0,0 +1,1417 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// 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 PreviewGameServerDeploymentRollout.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest} + */ +public final class PreviewGameServerDeploymentRolloutRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) + PreviewGameServerDeploymentRolloutRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewGameServerDeploymentRolloutRequest.newBuilder() to construct. + private PreviewGameServerDeploymentRolloutRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewGameServerDeploymentRolloutRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewGameServerDeploymentRolloutRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewGameServerDeploymentRolloutRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.GameServerDeploymentRollout.Builder subBuilder = null; + if (rollout_ != null) { + subBuilder = rollout_.toBuilder(); + } + rollout_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rollout_); + rollout_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (previewTime_ != null) { + subBuilder = previewTime_.toBuilder(); + } + previewTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(previewTime_); + previewTime_ = 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.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.class, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.Builder + .class); + } + + public static final int ROLLOUT_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout_; + /** + * + * + *
+   * Required. The game server deployment rollout to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. + */ + public boolean hasRollout() { + return rollout_ != null; + } + /** + * + * + *
+   * Required. The game server deployment rollout to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. + */ + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout() { + return rollout_ == null + ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() + : rollout_; + } + /** + * + * + *
+   * Required. The game server deployment rollout to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder + getRolloutOrBuilder() { + return getRollout(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int PREVIEW_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp previewTime_; + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed. If
+   * unspecified, defaults to the time after the suggested rollout finishes.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTime_ != null; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed. If
+   * unspecified, defaults to the time after the suggested rollout finishes.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed. If
+   * unspecified, defaults to the time after the suggested rollout finishes.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + return getPreviewTime(); + } + + 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 (rollout_ != null) { + output.writeMessage(1, getRollout()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (previewTime_ != null) { + output.writeMessage(3, getPreviewTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rollout_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRollout()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (previewTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreviewTime()); + } + 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.PreviewGameServerDeploymentRolloutRequest)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest other = + (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) obj; + + if (hasRollout() != other.hasRollout()) return false; + if (hasRollout()) { + if (!getRollout().equals(other.getRollout())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasPreviewTime() != other.hasPreviewTime()) return false; + if (hasPreviewTime()) { + if (!getPreviewTime().equals(other.getPreviewTime())) 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 (hasRollout()) { + hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; + hash = (53 * hash) + getRollout().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasPreviewTime()) { + hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPreviewTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest 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.PreviewGameServerDeploymentRolloutRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest 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.PreviewGameServerDeploymentRolloutRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest 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.PreviewGameServerDeploymentRolloutRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest 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.PreviewGameServerDeploymentRolloutRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest + 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.PreviewGameServerDeploymentRolloutRequest 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.PreviewGameServerDeploymentRolloutRequest 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.PreviewGameServerDeploymentRolloutRequest 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 PreviewGameServerDeploymentRollout.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.class, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (rolloutBuilder_ == null) { + rollout_ = null; + } else { + rollout_ = null; + rolloutBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (previewTimeBuilder_ == null) { + previewTime_ = null; + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest build() { + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest + buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest result = + new com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest(this); + if (rolloutBuilder_ == null) { + result.rollout_ = rollout_; + } else { + result.rollout_ = rolloutBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (previewTimeBuilder_ == null) { + result.previewTime_ = previewTime_; + } else { + result.previewTime_ = previewTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest other) { + if (other + == com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest + .getDefaultInstance()) return this; + if (other.hasRollout()) { + mergeRollout(other.getRollout()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasPreviewTime()) { + mergePreviewTime(other.getPreviewTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder> + rolloutBuilder_; + /** + * + * + *
+     * Required. The game server deployment rollout to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. + */ + public boolean hasRollout() { + return rolloutBuilder_ != null || rollout_ != null; + } + /** + * + * + *
+     * Required. The game server deployment rollout to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. + */ + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout() { + if (rolloutBuilder_ == null) { + return rollout_ == null + ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() + : rollout_; + } else { + return rolloutBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The game server deployment rollout to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollout(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout value) { + if (rolloutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rollout_ = value; + onChanged(); + } else { + rolloutBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The game server deployment rollout to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollout( + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder builderForValue) { + if (rolloutBuilder_ == null) { + rollout_ = builderForValue.build(); + onChanged(); + } else { + rolloutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The game server deployment rollout to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRollout(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout value) { + if (rolloutBuilder_ == null) { + if (rollout_ != null) { + rollout_ = + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.newBuilder(rollout_) + .mergeFrom(value) + .buildPartial(); + } else { + rollout_ = value; + } + onChanged(); + } else { + rolloutBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The game server deployment rollout to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRollout() { + if (rolloutBuilder_ == null) { + rollout_ = null; + onChanged(); + } else { + rollout_ = null; + rolloutBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The game server deployment rollout to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder getRolloutBuilder() { + + onChanged(); + return getRolloutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The game server deployment rollout to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder + getRolloutOrBuilder() { + if (rolloutBuilder_ != null) { + return rolloutBuilder_.getMessageOrBuilder(); + } else { + return rollout_ == null + ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() + : rollout_; + } + } + /** + * + * + *
+     * Required. The game server deployment rollout to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder> + getRolloutFieldBuilder() { + if (rolloutBuilder_ == null) { + rolloutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder>( + getRollout(), getParentForChildren(), isClean()); + rollout_ = null; + } + return rolloutBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.protobuf.Timestamp previewTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + previewTimeBuilder_; + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed. If
+     * unspecified, defaults to the time after the suggested rollout finishes.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTimeBuilder_ != null || previewTime_ != null; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed. If
+     * unspecified, defaults to the time after the suggested rollout finishes.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + if (previewTimeBuilder_ == null) { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } else { + return previewTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed. If
+     * unspecified, defaults to the time after the suggested rollout finishes.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + previewTime_ = value; + onChanged(); + } else { + previewTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed. If
+     * unspecified, defaults to the time after the suggested rollout finishes.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (previewTimeBuilder_ == null) { + previewTime_ = builderForValue.build(); + onChanged(); + } else { + previewTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed. If
+     * unspecified, defaults to the time after the suggested rollout finishes.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (previewTime_ != null) { + previewTime_ = + com.google.protobuf.Timestamp.newBuilder(previewTime_) + .mergeFrom(value) + .buildPartial(); + } else { + previewTime_ = value; + } + onChanged(); + } else { + previewTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed. If
+     * unspecified, defaults to the time after the suggested rollout finishes.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPreviewTime() { + if (previewTimeBuilder_ == null) { + previewTime_ = null; + onChanged(); + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed. If
+     * unspecified, defaults to the time after the suggested rollout finishes.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { + + onChanged(); + return getPreviewTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed. If
+     * unspecified, defaults to the time after the suggested rollout finishes.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + if (previewTimeBuilder_ != null) { + return previewTimeBuilder_.getMessageOrBuilder(); + } else { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed. If
+     * unspecified, defaults to the time after the suggested rollout finishes.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPreviewTimeFieldBuilder() { + if (previewTimeBuilder_ == null) { + previewTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPreviewTime(), getParentForChildren(), isClean()); + previewTime_ = null; + } + return previewTimeBuilder_; + } + + @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.PreviewGameServerDeploymentRolloutRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) + private static final com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewGameServerDeploymentRolloutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewGameServerDeploymentRolloutRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequestOrBuilder.java new file mode 100644 index 00000000..9d83a01e --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewGameServerDeploymentRolloutRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The game server deployment rollout to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. + */ + boolean hasRollout(); + /** + * + * + *
+   * Required. The game server deployment rollout to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. + */ + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout(); + /** + * + * + *
+   * Required. The game server deployment rollout to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder getRolloutOrBuilder(); + + /** + * + * + *
+   * Optional. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed. If
+   * unspecified, defaults to the time after the suggested rollout finishes.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + boolean hasPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed. If
+   * unspecified, defaults to the time after the suggested rollout finishes.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + com.google.protobuf.Timestamp getPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed. If
+   * unspecified, defaults to the time after the suggested rollout finishes.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponse.java new file mode 100644 index 00000000..894a482a --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponse.java @@ -0,0 +1,1514 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Response message for PreviewGameServerDeploymentRollout.
+ * This has details about the fleet and the autoscaler.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse} + */ +public final class PreviewGameServerDeploymentRolloutResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) + PreviewGameServerDeploymentRolloutResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewGameServerDeploymentRolloutResponse.newBuilder() to construct. + private PreviewGameServerDeploymentRolloutResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewGameServerDeploymentRolloutResponse() { + unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewGameServerDeploymentRolloutResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewGameServerDeploymentRolloutResponse( + 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.DeployedState.Builder subBuilder = null; + if (deployedState_ != null) { + subBuilder = deployedState_.toBuilder(); + } + deployedState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployedState_); + deployedState_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + unavailable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + unavailable_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 34: + { + com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; + if (targetState_ != null) { + subBuilder = targetState_.toBuilder(); + } + targetState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetState_); + targetState_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + unavailable_ = unavailable_.getUnmodifiableView(); + } + 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_PreviewGameServerDeploymentRolloutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.class, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.Builder + .class); + } + + public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedState_ != null; + } + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + return getDeployedState(); + } + + public static final int UNAVAILABLE_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList unavailable_; + /** + * + * + *
+   * Locations that could not be reached on this request.
+   * 
+ * + * repeated string unavailable = 2; + * + * @return A list containing the unavailable. + */ + public com.google.protobuf.ProtocolStringList getUnavailableList() { + return unavailable_; + } + /** + * + * + *
+   * Locations that could not be reached on this request.
+   * 
+ * + * repeated string unavailable = 2; + * + * @return The count of unavailable. + */ + public int getUnavailableCount() { + return unavailable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached on this request.
+   * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the element to return. + * @return The unavailable at the given index. + */ + public java.lang.String getUnavailable(int index) { + return unavailable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached on this request.
+   * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the value to return. + * @return The bytes of the unavailable at the given index. + */ + public com.google.protobuf.ByteString getUnavailableBytes(int index) { + return unavailable_.getByteString(index); + } + + public static final int ETAG_FIELD_NUMBER = 3; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * ETag of the game server deployment.
+   * 
+ * + * string etag = 3; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * ETag of the game server deployment.
+   * 
+ * + * string etag = 3; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_STATE_FIELD_NUMBER = 4; + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetState_ != null; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + return getTargetState(); + } + + 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 (deployedState_ != null) { + output.writeMessage(1, getDeployedState()); + } + for (int i = 0; i < unavailable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unavailable_.getRaw(i)); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + if (targetState_ != null) { + output.writeMessage(4, getTargetState()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deployedState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); + } + { + int dataSize = 0; + for (int i = 0; i < unavailable_.size(); i++) { + dataSize += computeStringSizeNoTag(unavailable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnavailableList().size(); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + if (targetState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTargetState()); + } + 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.PreviewGameServerDeploymentRolloutResponse)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse other = + (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) obj; + + if (hasDeployedState() != other.hasDeployedState()) return false; + if (hasDeployedState()) { + if (!getDeployedState().equals(other.getDeployedState())) return false; + } + if (!getUnavailableList().equals(other.getUnavailableList())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (hasTargetState() != other.hasTargetState()) return false; + if (hasTargetState()) { + if (!getTargetState().equals(other.getTargetState())) 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 (hasDeployedState()) { + hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; + hash = (53 * hash) + getDeployedState().hashCode(); + } + if (getUnavailableCount() > 0) { + hash = (37 * hash) + UNAVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnavailableList().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasTargetState()) { + hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; + hash = (53 * hash) + getTargetState().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + 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.PreviewGameServerDeploymentRolloutResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + 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.PreviewGameServerDeploymentRolloutResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + 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.PreviewGameServerDeploymentRolloutResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + 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.PreviewGameServerDeploymentRolloutResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + 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.PreviewGameServerDeploymentRolloutResponse + 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.PreviewGameServerDeploymentRolloutResponse + 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.PreviewGameServerDeploymentRolloutResponse 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; + } + /** + * + * + *
+   * Response message for PreviewGameServerDeploymentRollout.
+   * This has details about the fleet and the autoscaler.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.class, + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (deployedStateBuilder_ == null) { + deployedState_ = null; + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + etag_ = ""; + + if (targetStateBuilder_ == null) { + targetState_ = null; + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_PreviewGameServerDeploymentRolloutResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse build() { + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse result = + new com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse(this); + int from_bitField0_ = bitField0_; + if (deployedStateBuilder_ == null) { + result.deployedState_ = deployedState_; + } else { + result.deployedState_ = deployedStateBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + unavailable_ = unavailable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.unavailable_ = unavailable_; + result.etag_ = etag_; + if (targetStateBuilder_ == null) { + result.targetState_ = targetState_; + } else { + result.targetState_ = targetStateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse other) { + if (other + == com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + .getDefaultInstance()) return this; + if (other.hasDeployedState()) { + mergeDeployedState(other.getDeployedState()); + } + if (!other.unavailable_.isEmpty()) { + if (unavailable_.isEmpty()) { + unavailable_ = other.unavailable_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUnavailableIsMutable(); + unavailable_.addAll(other.unavailable_); + } + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.hasTargetState()) { + mergeTargetState(other.getTargetState()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + deployedStateBuilder_; + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedStateBuilder_ != null || deployedState_ != null; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + if (deployedStateBuilder_ == null) { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } else { + return deployedStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedState_ = value; + onChanged(); + } else { + deployedStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState( + com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { + if (deployedStateBuilder_ == null) { + deployedState_ = builderForValue.build(); + onChanged(); + } else { + deployedStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (deployedState_ != null) { + deployedState_ = + com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) + .mergeFrom(value) + .buildPartial(); + } else { + deployedState_ = value; + } + onChanged(); + } else { + deployedStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearDeployedState() { + if (deployedStateBuilder_ == null) { + deployedState_ = null; + onChanged(); + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { + + onChanged(); + return getDeployedStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + if (deployedStateBuilder_ != null) { + return deployedStateBuilder_.getMessageOrBuilder(); + } else { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + getDeployedStateFieldBuilder() { + if (deployedStateBuilder_ == null) { + deployedStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( + getDeployedState(), getParentForChildren(), isClean()); + deployedState_ = null; + } + return deployedStateBuilder_; + } + + private com.google.protobuf.LazyStringList unavailable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnavailableIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + unavailable_ = new com.google.protobuf.LazyStringArrayList(unavailable_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Locations that could not be reached on this request.
+     * 
+ * + * repeated string unavailable = 2; + * + * @return A list containing the unavailable. + */ + public com.google.protobuf.ProtocolStringList getUnavailableList() { + return unavailable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached on this request.
+     * 
+ * + * repeated string unavailable = 2; + * + * @return The count of unavailable. + */ + public int getUnavailableCount() { + return unavailable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached on this request.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the element to return. + * @return The unavailable at the given index. + */ + public java.lang.String getUnavailable(int index) { + return unavailable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached on this request.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the value to return. + * @return The bytes of the unavailable at the given index. + */ + public com.google.protobuf.ByteString getUnavailableBytes(int index) { + return unavailable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached on this request.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param index The index to set the value at. + * @param value The unavailable to set. + * @return This builder for chaining. + */ + public Builder setUnavailable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnavailableIsMutable(); + unavailable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached on this request.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param value The unavailable to add. + * @return This builder for chaining. + */ + public Builder addUnavailable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnavailableIsMutable(); + unavailable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached on this request.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param values The unavailable to add. + * @return This builder for chaining. + */ + public Builder addAllUnavailable(java.lang.Iterable values) { + ensureUnavailableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unavailable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached on this request.
+     * 
+ * + * repeated string unavailable = 2; + * + * @return This builder for chaining. + */ + public Builder clearUnavailable() { + unavailable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached on this request.
+     * 
+ * + * repeated string unavailable = 2; + * + * @param value The bytes of the unavailable to add. + * @return This builder for chaining. + */ + public Builder addUnavailableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnavailableIsMutable(); + unavailable_.add(value); + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * ETag of the game server deployment.
+     * 
+ * + * string etag = 3; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * ETag of the game server deployment.
+     * 
+ * + * string etag = 3; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * ETag of the game server deployment.
+     * 
+ * + * string etag = 3; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the game server deployment.
+     * 
+ * + * string etag = 3; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the game server deployment.
+     * 
+ * + * string etag = 3; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + targetStateBuilder_; + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetStateBuilder_ != null || targetState_ != null; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + if (targetStateBuilder_ == null) { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } else { + return targetStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + */ + public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetState_ = value; + onChanged(); + } else { + targetStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + */ + public Builder setTargetState( + com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { + if (targetStateBuilder_ == null) { + targetState_ = builderForValue.build(); + onChanged(); + } else { + targetStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + */ + public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (targetState_ != null) { + targetState_ = + com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) + .mergeFrom(value) + .buildPartial(); + } else { + targetState_ = value; + } + onChanged(); + } else { + targetStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + */ + public Builder clearTargetState() { + if (targetStateBuilder_ == null) { + targetState_ = null; + onChanged(); + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + */ + public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { + + onChanged(); + return getTargetStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + if (targetStateBuilder_ != null) { + return targetStateBuilder_.getMessageOrBuilder(); + } else { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + getTargetStateFieldBuilder() { + if (targetStateBuilder_ == null) { + targetStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( + getTargetState(), getParentForChildren(), isClean()); + targetState_ = null; + } + return targetStateBuilder_; + } + + @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.PreviewGameServerDeploymentRolloutResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) + private static final com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewGameServerDeploymentRolloutResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewGameServerDeploymentRolloutResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponseOrBuilder.java new file mode 100644 index 00000000..366a943d --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponseOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewGameServerDeploymentRolloutResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewGameServerDeploymentRolloutResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + boolean hasDeployedState(); + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); + + /** + * + * + *
+   * Locations that could not be reached on this request.
+   * 
+ * + * repeated string unavailable = 2; + * + * @return A list containing the unavailable. + */ + java.util.List getUnavailableList(); + /** + * + * + *
+   * Locations that could not be reached on this request.
+   * 
+ * + * repeated string unavailable = 2; + * + * @return The count of unavailable. + */ + int getUnavailableCount(); + /** + * + * + *
+   * Locations that could not be reached on this request.
+   * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the element to return. + * @return The unavailable at the given index. + */ + java.lang.String getUnavailable(int index); + /** + * + * + *
+   * Locations that could not be reached on this request.
+   * 
+ * + * repeated string unavailable = 2; + * + * @param index The index of the value to return. + * @return The bytes of the unavailable at the given index. + */ + com.google.protobuf.ByteString getUnavailableBytes(int index); + + /** + * + * + *
+   * ETag of the game server deployment.
+   * 
+ * + * string etag = 3; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * ETag of the game server deployment.
+   * 
+ * + * string etag = 3; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + * + * @return Whether the targetState field is set. + */ + boolean hasTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + * + * @return The targetState. + */ + com.google.cloud.gaming.v1alpha.TargetState getTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 4; + */ + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequest.java new file mode 100644 index 00000000..1380bba2 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequest.java @@ -0,0 +1,1361 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/realms.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Request message for RealmsService.PreviewRealmUpdate.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest} + */ +public final class PreviewRealmUpdateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) + PreviewRealmUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewRealmUpdateRequest.newBuilder() to construct. + private PreviewRealmUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewRealmUpdateRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewRealmUpdateRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewRealmUpdateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.Realm.Builder subBuilder = null; + if (realm_ != null) { + subBuilder = realm_.toBuilder(); + } + realm_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.Realm.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(realm_); + realm_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (previewTime_ != null) { + subBuilder = previewTime_.toBuilder(); + } + previewTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(previewTime_); + previewTime_ = 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.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.class, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.Builder.class); + } + + public static final int REALM_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.Realm realm_; + /** + * + * + *
+   * Required. The realm to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the realm field is set. + */ + public boolean hasRealm() { + return realm_ != null; + } + /** + * + * + *
+   * Required. The realm to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The realm. + */ + public com.google.cloud.gaming.v1alpha.Realm getRealm() { + return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; + } + /** + * + * + *
+   * Required. The realm to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { + return getRealm(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int PREVIEW_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp previewTime_; + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTime_ != null; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + return getPreviewTime(); + } + + 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 (realm_ != null) { + output.writeMessage(1, getRealm()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (previewTime_ != null) { + output.writeMessage(3, getPreviewTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (realm_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRealm()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (previewTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreviewTime()); + } + 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.PreviewRealmUpdateRequest)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest other = + (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) obj; + + if (hasRealm() != other.hasRealm()) return false; + if (hasRealm()) { + if (!getRealm().equals(other.getRealm())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasPreviewTime() != other.hasPreviewTime()) return false; + if (hasPreviewTime()) { + if (!getPreviewTime().equals(other.getPreviewTime())) 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 (hasRealm()) { + hash = (37 * hash) + REALM_FIELD_NUMBER; + hash = (53 * hash) + getRealm().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasPreviewTime()) { + hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPreviewTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest 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.PreviewRealmUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest 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.PreviewRealmUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest 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.PreviewRealmUpdateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest 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.PreviewRealmUpdateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest 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.PreviewRealmUpdateRequest 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.PreviewRealmUpdateRequest 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.PreviewRealmUpdateRequest 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 RealmsService.PreviewRealmUpdate.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.class, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (realmBuilder_ == null) { + realm_ = null; + } else { + realm_ = null; + realmBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (previewTimeBuilder_ == null) { + previewTime_ = null; + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest build() { + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest result = + new com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest(this); + if (realmBuilder_ == null) { + result.realm_ = realm_; + } else { + result.realm_ = realmBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (previewTimeBuilder_ == null) { + result.previewTime_ = previewTime_; + } else { + result.previewTime_ = previewTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) { + return mergeFrom((com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest other) { + if (other == com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest.getDefaultInstance()) + return this; + if (other.hasRealm()) { + mergeRealm(other.getRealm()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasPreviewTime()) { + mergePreviewTime(other.getPreviewTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gaming.v1alpha.Realm realm_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.Realm, + com.google.cloud.gaming.v1alpha.Realm.Builder, + com.google.cloud.gaming.v1alpha.RealmOrBuilder> + realmBuilder_; + /** + * + * + *
+     * Required. The realm to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the realm field is set. + */ + public boolean hasRealm() { + return realmBuilder_ != null || realm_ != null; + } + /** + * + * + *
+     * Required. The realm to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The realm. + */ + public com.google.cloud.gaming.v1alpha.Realm getRealm() { + if (realmBuilder_ == null) { + return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; + } else { + return realmBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The realm to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm value) { + if (realmBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + realm_ = value; + onChanged(); + } else { + realmBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The realm to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm.Builder builderForValue) { + if (realmBuilder_ == null) { + realm_ = builderForValue.build(); + onChanged(); + } else { + realmBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The realm to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRealm(com.google.cloud.gaming.v1alpha.Realm value) { + if (realmBuilder_ == null) { + if (realm_ != null) { + realm_ = + com.google.cloud.gaming.v1alpha.Realm.newBuilder(realm_) + .mergeFrom(value) + .buildPartial(); + } else { + realm_ = value; + } + onChanged(); + } else { + realmBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The realm to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRealm() { + if (realmBuilder_ == null) { + realm_ = null; + onChanged(); + } else { + realm_ = null; + realmBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The realm to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.Realm.Builder getRealmBuilder() { + + onChanged(); + return getRealmFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The realm to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { + if (realmBuilder_ != null) { + return realmBuilder_.getMessageOrBuilder(); + } else { + return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; + } + } + /** + * + * + *
+     * Required. The realm to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.Realm, + com.google.cloud.gaming.v1alpha.Realm.Builder, + com.google.cloud.gaming.v1alpha.RealmOrBuilder> + getRealmFieldBuilder() { + if (realmBuilder_ == null) { + realmBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.Realm, + com.google.cloud.gaming.v1alpha.Realm.Builder, + com.google.cloud.gaming.v1alpha.RealmOrBuilder>( + getRealm(), getParentForChildren(), isClean()); + realm_ = null; + } + return realmBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.protobuf.Timestamp previewTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + previewTimeBuilder_; + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTimeBuilder_ != null || previewTime_ != null; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + if (previewTimeBuilder_ == null) { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } else { + return previewTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + previewTime_ = value; + onChanged(); + } else { + previewTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (previewTimeBuilder_ == null) { + previewTime_ = builderForValue.build(); + onChanged(); + } else { + previewTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (previewTime_ != null) { + previewTime_ = + com.google.protobuf.Timestamp.newBuilder(previewTime_) + .mergeFrom(value) + .buildPartial(); + } else { + previewTime_ = value; + } + onChanged(); + } else { + previewTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPreviewTime() { + if (previewTimeBuilder_ == null) { + previewTime_ = null; + onChanged(); + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { + + onChanged(); + return getPreviewTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + if (previewTimeBuilder_ != null) { + return previewTimeBuilder_.getMessageOrBuilder(); + } else { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPreviewTimeFieldBuilder() { + if (previewTimeBuilder_ == null) { + previewTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPreviewTime(), getParentForChildren(), isClean()); + previewTime_ = null; + } + return previewTimeBuilder_; + } + + @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.PreviewRealmUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) + private static final com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewRealmUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewRealmUpdateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequestOrBuilder.java new file mode 100644 index 00000000..8aac8cdb --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequestOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/realms.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewRealmUpdateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewRealmUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The realm to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the realm field is set. + */ + boolean hasRealm(); + /** + * + * + *
+   * Required. The realm to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The realm. + */ + com.google.cloud.gaming.v1alpha.Realm getRealm(); + /** + * + * + *
+   * Required. The realm to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder(); + + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + boolean hasPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + com.google.protobuf.Timestamp getPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponse.java new file mode 100644 index 00000000..b1a5ea1c --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponse.java @@ -0,0 +1,1205 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/realms.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Response message for RealmsService.PreviewRealmUpdate.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse} + */ +public final class PreviewRealmUpdateResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) + PreviewRealmUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewRealmUpdateResponse.newBuilder() to construct. + private PreviewRealmUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewRealmUpdateResponse() { + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewRealmUpdateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewRealmUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.DeployedState.Builder subBuilder = null; + if (deployedState_ != null) { + subBuilder = deployedState_.toBuilder(); + } + deployedState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployedState_); + deployedState_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 26: + { + com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; + if (targetState_ != null) { + subBuilder = targetState_.toBuilder(); + } + targetState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetState_); + targetState_ = 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.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.class, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.Builder.class); + } + + public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + /** + * + * + *
+   * The deployment state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedState_ != null; + } + /** + * + * + *
+   * The deployment state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + /** + * + * + *
+   * The deployment state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + return getDeployedState(); + } + + public static final int ETAG_FIELD_NUMBER = 2; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * ETag of the realm.
+   * 
+ * + * string etag = 2; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * ETag of the realm.
+   * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_STATE_FIELD_NUMBER = 3; + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetState_ != null; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + return getTargetState(); + } + + 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 (deployedState_ != null) { + output.writeMessage(1, getDeployedState()); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); + } + if (targetState_ != null) { + output.writeMessage(3, getTargetState()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deployedState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); + } + if (targetState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetState()); + } + 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.PreviewRealmUpdateResponse)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse other = + (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) obj; + + if (hasDeployedState() != other.hasDeployedState()) return false; + if (hasDeployedState()) { + if (!getDeployedState().equals(other.getDeployedState())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (hasTargetState() != other.hasTargetState()) return false; + if (hasTargetState()) { + if (!getTargetState().equals(other.getTargetState())) 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 (hasDeployedState()) { + hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; + hash = (53 * hash) + getDeployedState().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasTargetState()) { + hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; + hash = (53 * hash) + getTargetState().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse 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.PreviewRealmUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse 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.PreviewRealmUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse 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.PreviewRealmUpdateResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse 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.PreviewRealmUpdateResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse 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.PreviewRealmUpdateResponse 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.PreviewRealmUpdateResponse 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.PreviewRealmUpdateResponse 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; + } + /** + * + * + *
+   * Response message for RealmsService.PreviewRealmUpdate.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.class, + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (deployedStateBuilder_ == null) { + deployedState_ = null; + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + etag_ = ""; + + if (targetStateBuilder_ == null) { + targetState_ = null; + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Realms + .internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse build() { + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse result = + new com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse(this); + if (deployedStateBuilder_ == null) { + result.deployedState_ = deployedState_; + } else { + result.deployedState_ = deployedStateBuilder_.build(); + } + result.etag_ = etag_; + if (targetStateBuilder_ == null) { + result.targetState_ = targetState_; + } else { + result.targetState_ = targetStateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) { + return mergeFrom((com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse other) { + if (other == com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse.getDefaultInstance()) + return this; + if (other.hasDeployedState()) { + mergeDeployedState(other.getDeployedState()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.hasTargetState()) { + mergeTargetState(other.getTargetState()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + deployedStateBuilder_; + /** + * + * + *
+     * The deployment state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedStateBuilder_ != null || deployedState_ != null; + } + /** + * + * + *
+     * The deployment state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + if (deployedStateBuilder_ == null) { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } else { + return deployedStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The deployment state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedState_ = value; + onChanged(); + } else { + deployedStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The deployment state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState( + com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { + if (deployedStateBuilder_ == null) { + deployedState_ = builderForValue.build(); + onChanged(); + } else { + deployedStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The deployment state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (deployedState_ != null) { + deployedState_ = + com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) + .mergeFrom(value) + .buildPartial(); + } else { + deployedState_ = value; + } + onChanged(); + } else { + deployedStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The deployment state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearDeployedState() { + if (deployedStateBuilder_ == null) { + deployedState_ = null; + onChanged(); + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The deployment state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { + + onChanged(); + return getDeployedStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The deployment state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + if (deployedStateBuilder_ != null) { + return deployedStateBuilder_.getMessageOrBuilder(); + } else { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + } + /** + * + * + *
+     * The deployment state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + getDeployedStateFieldBuilder() { + if (deployedStateBuilder_ == null) { + deployedStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( + getDeployedState(), getParentForChildren(), isClean()); + deployedState_ = null; + } + return deployedStateBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * ETag of the realm.
+     * 
+ * + * string etag = 2; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * ETag of the realm.
+     * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * ETag of the realm.
+     * 
+ * + * string etag = 2; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the realm.
+     * 
+ * + * string etag = 2; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the realm.
+     * 
+ * + * string etag = 2; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + targetStateBuilder_; + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetStateBuilder_ != null || targetState_ != null; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + if (targetStateBuilder_ == null) { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } else { + return targetStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetState_ = value; + onChanged(); + } else { + targetStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder setTargetState( + com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { + if (targetStateBuilder_ == null) { + targetState_ = builderForValue.build(); + onChanged(); + } else { + targetStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (targetState_ != null) { + targetState_ = + com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) + .mergeFrom(value) + .buildPartial(); + } else { + targetState_ = value; + } + onChanged(); + } else { + targetStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder clearTargetState() { + if (targetStateBuilder_ == null) { + targetState_ = null; + onChanged(); + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { + + onChanged(); + return getTargetStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + if (targetStateBuilder_ != null) { + return targetStateBuilder_.getMessageOrBuilder(); + } else { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + getTargetStateFieldBuilder() { + if (targetStateBuilder_ == null) { + targetStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( + getTargetState(), getParentForChildren(), isClean()); + targetState_ = null; + } + return targetStateBuilder_; + } + + @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.PreviewRealmUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) + private static final com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewRealmUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewRealmUpdateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponseOrBuilder.java new file mode 100644 index 00000000..a9c46130 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponseOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/realms.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewRealmUpdateResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewRealmUpdateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The deployment state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + boolean hasDeployedState(); + /** + * + * + *
+   * The deployment state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); + /** + * + * + *
+   * The deployment state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); + + /** + * + * + *
+   * ETag of the realm.
+   * 
+ * + * string etag = 2; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * ETag of the realm.
+   * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + boolean hasTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + com.google.cloud.gaming.v1alpha.TargetState getTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequest.java new file mode 100644 index 00000000..2d5ce0c3 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequest.java @@ -0,0 +1,1396 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Request message for GameServerClustersService.UpdateGameServerCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest} + */ +public final class PreviewUpdateGameServerClusterRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) + PreviewUpdateGameServerClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewUpdateGameServerClusterRequest.newBuilder() to construct. + private PreviewUpdateGameServerClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewUpdateGameServerClusterRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewUpdateGameServerClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewUpdateGameServerClusterRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.GameServerCluster.Builder subBuilder = null; + if (gameServerCluster_ != null) { + subBuilder = gameServerCluster_.toBuilder(); + } + gameServerCluster_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.GameServerCluster.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gameServerCluster_); + gameServerCluster_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (previewTime_ != null) { + subBuilder = previewTime_.toBuilder(); + } + previewTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(previewTime_); + previewTime_ = 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.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.class, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.Builder.class); + } + + public static final int GAME_SERVER_CLUSTER_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; + /** + * + * + *
+   * Required. The game server cluster to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. + */ + public boolean hasGameServerCluster() { + return gameServerCluster_ != null; + } + /** + * + * + *
+   * Required. The game server cluster to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. + */ + public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { + return gameServerCluster_ == null + ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() + : gameServerCluster_; + } + /** + * + * + *
+   * Required. The game server cluster to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder + getGameServerClusterOrBuilder() { + return getGameServerCluster(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int PREVIEW_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp previewTime_; + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTime_ != null; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + return previewTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : previewTime_; + } + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + return getPreviewTime(); + } + + 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 (gameServerCluster_ != null) { + output.writeMessage(1, getGameServerCluster()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (previewTime_ != null) { + output.writeMessage(3, getPreviewTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gameServerCluster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGameServerCluster()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (previewTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPreviewTime()); + } + 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.PreviewUpdateGameServerClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest other = + (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) obj; + + if (hasGameServerCluster() != other.hasGameServerCluster()) return false; + if (hasGameServerCluster()) { + if (!getGameServerCluster().equals(other.getGameServerCluster())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasPreviewTime() != other.hasPreviewTime()) return false; + if (hasPreviewTime()) { + if (!getPreviewTime().equals(other.getPreviewTime())) 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 (hasGameServerCluster()) { + hash = (37 * hash) + GAME_SERVER_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getGameServerCluster().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasPreviewTime()) { + hash = (37 * hash) + PREVIEW_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPreviewTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest 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.PreviewUpdateGameServerClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest 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.PreviewUpdateGameServerClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest 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.PreviewUpdateGameServerClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest 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.PreviewUpdateGameServerClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest + 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.PreviewUpdateGameServerClusterRequest 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.PreviewUpdateGameServerClusterRequest 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.PreviewUpdateGameServerClusterRequest 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 GameServerClustersService.UpdateGameServerCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.class, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (gameServerClusterBuilder_ == null) { + gameServerCluster_ = null; + } else { + gameServerCluster_ = null; + gameServerClusterBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (previewTimeBuilder_ == null) { + previewTime_ = null; + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest build() { + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest result = + new com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest(this); + if (gameServerClusterBuilder_ == null) { + result.gameServerCluster_ = gameServerCluster_; + } else { + result.gameServerCluster_ = gameServerClusterBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (previewTimeBuilder_ == null) { + result.previewTime_ = previewTime_; + } else { + result.previewTime_ = previewTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest other) { + if (other + == com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest + .getDefaultInstance()) return this; + if (other.hasGameServerCluster()) { + mergeGameServerCluster(other.getGameServerCluster()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasPreviewTime()) { + mergePreviewTime(other.getPreviewTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gaming.v1alpha.GameServerCluster gameServerCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerCluster, + com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, + com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> + gameServerClusterBuilder_; + /** + * + * + *
+     * Required. The game server cluster to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. + */ + public boolean hasGameServerCluster() { + return gameServerClusterBuilder_ != null || gameServerCluster_ != null; + } + /** + * + * + *
+     * Required. The game server cluster to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. + */ + public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { + if (gameServerClusterBuilder_ == null) { + return gameServerCluster_ == null + ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() + : gameServerCluster_; + } else { + return gameServerClusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The game server cluster to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { + if (gameServerClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameServerCluster_ = value; + onChanged(); + } else { + gameServerClusterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The game server cluster to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGameServerCluster( + com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { + if (gameServerClusterBuilder_ == null) { + gameServerCluster_ = builderForValue.build(); + onChanged(); + } else { + gameServerClusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The game server cluster to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { + if (gameServerClusterBuilder_ == null) { + if (gameServerCluster_ != null) { + gameServerCluster_ = + com.google.cloud.gaming.v1alpha.GameServerCluster.newBuilder(gameServerCluster_) + .mergeFrom(value) + .buildPartial(); + } else { + gameServerCluster_ = value; + } + onChanged(); + } else { + gameServerClusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The game server cluster to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGameServerCluster() { + if (gameServerClusterBuilder_ == null) { + gameServerCluster_ = null; + onChanged(); + } else { + gameServerCluster_ = null; + gameServerClusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The game server cluster to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerClusterBuilder() { + + onChanged(); + return getGameServerClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The game server cluster to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder + getGameServerClusterOrBuilder() { + if (gameServerClusterBuilder_ != null) { + return gameServerClusterBuilder_.getMessageOrBuilder(); + } else { + return gameServerCluster_ == null + ? com.google.cloud.gaming.v1alpha.GameServerCluster.getDefaultInstance() + : gameServerCluster_; + } + } + /** + * + * + *
+     * Required. The game server cluster to be updated.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerCluster, + com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, + com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder> + getGameServerClusterFieldBuilder() { + if (gameServerClusterBuilder_ == null) { + gameServerClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.GameServerCluster, + com.google.cloud.gaming.v1alpha.GameServerCluster.Builder, + com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder>( + getGameServerCluster(), getParentForChildren(), isClean()); + gameServerCluster_ = null; + } + return gameServerClusterBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. For the `FieldMask` definition, see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.protobuf.Timestamp previewTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + previewTimeBuilder_; + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + public boolean hasPreviewTime() { + return previewTimeBuilder_ != null || previewTime_ != null; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + public com.google.protobuf.Timestamp getPreviewTime() { + if (previewTimeBuilder_ == null) { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } else { + return previewTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + previewTime_ = value; + onChanged(); + } else { + previewTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreviewTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (previewTimeBuilder_ == null) { + previewTime_ = builderForValue.build(); + onChanged(); + } else { + previewTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePreviewTime(com.google.protobuf.Timestamp value) { + if (previewTimeBuilder_ == null) { + if (previewTime_ != null) { + previewTime_ = + com.google.protobuf.Timestamp.newBuilder(previewTime_) + .mergeFrom(value) + .buildPartial(); + } else { + previewTime_ = value; + } + onChanged(); + } else { + previewTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPreviewTime() { + if (previewTimeBuilder_ == null) { + previewTime_ = null; + onChanged(); + } else { + previewTime_ = null; + previewTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getPreviewTimeBuilder() { + + onChanged(); + return getPreviewTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder() { + if (previewTimeBuilder_ != null) { + return previewTimeBuilder_.getMessageOrBuilder(); + } else { + return previewTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : previewTime_; + } + } + /** + * + * + *
+     * Optional. The instant of time at which the preview needs to be computed.
+     * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPreviewTimeFieldBuilder() { + if (previewTimeBuilder_ == null) { + previewTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPreviewTime(), getParentForChildren(), isClean()); + previewTime_ = null; + } + return previewTimeBuilder_; + } + + @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.PreviewUpdateGameServerClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) + private static final com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewUpdateGameServerClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewUpdateGameServerClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequestOrBuilder.java new file mode 100644 index 00000000..ce3c9094 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewUpdateGameServerClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The game server cluster to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. + */ + boolean hasGameServerCluster(); + /** + * + * + *
+   * Required. The game server cluster to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. + */ + com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster(); + /** + * + * + *
+   * Required. The game server cluster to be updated.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder(); + + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. For the `FieldMask` definition, see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the previewTime field is set. + */ + boolean hasPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The previewTime. + */ + com.google.protobuf.Timestamp getPreviewTime(); + /** + * + * + *
+   * Optional. The instant of time at which the preview needs to be computed.
+   * 
+ * + * .google.protobuf.Timestamp preview_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getPreviewTimeOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponse.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponse.java new file mode 100644 index 00000000..bc8c8970 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponse.java @@ -0,0 +1,1219 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Response message for GameServerClustersService.PreviewUpdateGameServerCluster
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse} + */ +public final class PreviewUpdateGameServerClusterResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) + PreviewUpdateGameServerClusterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreviewUpdateGameServerClusterResponse.newBuilder() to construct. + private PreviewUpdateGameServerClusterResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreviewUpdateGameServerClusterResponse() { + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreviewUpdateGameServerClusterResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PreviewUpdateGameServerClusterResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.DeployedState.Builder subBuilder = null; + if (deployedState_ != null) { + subBuilder = deployedState_.toBuilder(); + } + deployedState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.DeployedState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployedState_); + deployedState_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 26: + { + com.google.cloud.gaming.v1alpha.TargetState.Builder subBuilder = null; + if (targetState_ != null) { + subBuilder = targetState_.toBuilder(); + } + targetState_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.TargetState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetState_); + targetState_ = 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.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.class, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.Builder.class); + } + + public static final int DEPLOYED_STATE_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedState_ != null; + } + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + return getDeployedState(); + } + + public static final int ETAG_FIELD_NUMBER = 2; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_STATE_FIELD_NUMBER = 3; + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetState_ != null; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + return getTargetState(); + } + + 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 (deployedState_ != null) { + output.writeMessage(1, getDeployedState()); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); + } + if (targetState_ != null) { + output.writeMessage(3, getTargetState()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deployedState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedState()); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); + } + if (targetState_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetState()); + } + 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.PreviewUpdateGameServerClusterResponse)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse other = + (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) obj; + + if (hasDeployedState() != other.hasDeployedState()) return false; + if (hasDeployedState()) { + if (!getDeployedState().equals(other.getDeployedState())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (hasTargetState() != other.hasTargetState()) return false; + if (hasTargetState()) { + if (!getTargetState().equals(other.getTargetState())) 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 (hasDeployedState()) { + hash = (37 * hash) + DEPLOYED_STATE_FIELD_NUMBER; + hash = (53 * hash) + getDeployedState().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasTargetState()) { + hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; + hash = (53 * hash) + getTargetState().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse 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.PreviewUpdateGameServerClusterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse 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.PreviewUpdateGameServerClusterResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse 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.PreviewUpdateGameServerClusterResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse 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.PreviewUpdateGameServerClusterResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse + 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.PreviewUpdateGameServerClusterResponse 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.PreviewUpdateGameServerClusterResponse 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.PreviewUpdateGameServerClusterResponse 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; + } + /** + * + * + *
+   * Response message for GameServerClustersService.PreviewUpdateGameServerCluster
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.class, + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (deployedStateBuilder_ == null) { + deployedState_ = null; + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + etag_ = ""; + + if (targetStateBuilder_ == null) { + targetState_ = null; + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerClusters + .internal_static_google_cloud_gaming_v1alpha_PreviewUpdateGameServerClusterResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse build() { + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse buildPartial() { + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse result = + new com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse(this); + if (deployedStateBuilder_ == null) { + result.deployedState_ = deployedState_; + } else { + result.deployedState_ = deployedStateBuilder_.build(); + } + result.etag_ = etag_; + if (targetStateBuilder_ == null) { + result.targetState_ = targetState_; + } else { + result.targetState_ = targetStateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse other) { + if (other + == com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse + .getDefaultInstance()) return this; + if (other.hasDeployedState()) { + mergeDeployedState(other.getDeployedState()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.hasTargetState()) { + mergeTargetState(other.getTargetState()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gaming.v1alpha.DeployedState deployedState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + deployedStateBuilder_; + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + public boolean hasDeployedState() { + return deployedStateBuilder_ != null || deployedState_ != null; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * + * @return The deployedState. + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState getDeployedState() { + if (deployedStateBuilder_ == null) { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } else { + return deployedStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedState_ = value; + onChanged(); + } else { + deployedStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedState( + com.google.cloud.gaming.v1alpha.DeployedState.Builder builderForValue) { + if (deployedStateBuilder_ == null) { + deployedState_ = builderForValue.build(); + onChanged(); + } else { + deployedStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeDeployedState(com.google.cloud.gaming.v1alpha.DeployedState value) { + if (deployedStateBuilder_ == null) { + if (deployedState_ != null) { + deployedState_ = + com.google.cloud.gaming.v1alpha.DeployedState.newBuilder(deployedState_) + .mergeFrom(value) + .buildPartial(); + } else { + deployedState_ = value; + } + onChanged(); + } else { + deployedStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearDeployedState() { + if (deployedStateBuilder_ == null) { + deployedState_ = null; + onChanged(); + } else { + deployedState_ = null; + deployedStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedState.Builder getDeployedStateBuilder() { + + onChanged(); + return getDeployedStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder() { + if (deployedStateBuilder_ != null) { + return deployedStateBuilder_.getMessageOrBuilder(); + } else { + return deployedState_ == null + ? com.google.cloud.gaming.v1alpha.DeployedState.getDefaultInstance() + : deployedState_; + } + } + /** + * + * + *
+     * The deployed state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder> + getDeployedStateFieldBuilder() { + if (deployedStateBuilder_ == null) { + deployedStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.DeployedState, + com.google.cloud.gaming.v1alpha.DeployedState.Builder, + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder>( + getDeployedState(), getParentForChildren(), isClean()); + deployedState_ = null; + } + return deployedStateBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ETag of the game server cluster.
+     * 
+ * + * string etag = 2; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.TargetState targetState_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + targetStateBuilder_; + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + public boolean hasTargetState() { + return targetStateBuilder_ != null || targetState_ != null; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + public com.google.cloud.gaming.v1alpha.TargetState getTargetState() { + if (targetStateBuilder_ == null) { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } else { + return targetStateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder setTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetState_ = value; + onChanged(); + } else { + targetStateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder setTargetState( + com.google.cloud.gaming.v1alpha.TargetState.Builder builderForValue) { + if (targetStateBuilder_ == null) { + targetState_ = builderForValue.build(); + onChanged(); + } else { + targetStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder mergeTargetState(com.google.cloud.gaming.v1alpha.TargetState value) { + if (targetStateBuilder_ == null) { + if (targetState_ != null) { + targetState_ = + com.google.cloud.gaming.v1alpha.TargetState.newBuilder(targetState_) + .mergeFrom(value) + .buildPartial(); + } else { + targetState_ = value; + } + onChanged(); + } else { + targetStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public Builder clearTargetState() { + if (targetStateBuilder_ == null) { + targetState_ = null; + onChanged(); + } else { + targetState_ = null; + targetStateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetState.Builder getTargetStateBuilder() { + + onChanged(); + return getTargetStateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + public com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder() { + if (targetStateBuilder_ != null) { + return targetStateBuilder_.getMessageOrBuilder(); + } else { + return targetState_ == null + ? com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance() + : targetState_; + } + } + /** + * + * + *
+     * The target state.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder> + getTargetStateFieldBuilder() { + if (targetStateBuilder_ == null) { + targetStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetState, + com.google.cloud.gaming.v1alpha.TargetState.Builder, + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder>( + getTargetState(), getParentForChildren(), isClean()); + targetState_ = null; + } + return targetStateBuilder_; + } + + @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.PreviewUpdateGameServerClusterResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) + private static final com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse(); + } + + public static com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewUpdateGameServerClusterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreviewUpdateGameServerClusterResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponseOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponseOrBuilder.java new file mode 100644 index 00000000..1c8fb931 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponseOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_clusters.proto + +package com.google.cloud.gaming.v1alpha; + +public interface PreviewUpdateGameServerClusterResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.PreviewUpdateGameServerClusterResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return Whether the deployedState field is set. + */ + @java.lang.Deprecated + boolean hasDeployedState(); + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + * + * @return The deployedState. + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedState getDeployedState(); + /** + * + * + *
+   * The deployed state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.DeployedState deployed_state = 1 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.cloud.gaming.v1alpha.DeployedStateOrBuilder getDeployedStateOrBuilder(); + + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * The ETag of the game server cluster.
+   * 
+ * + * string etag = 2; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return Whether the targetState field is set. + */ + boolean hasTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + * + * @return The targetState. + */ + com.google.cloud.gaming.v1alpha.TargetState getTargetState(); + /** + * + * + *
+   * The target state.
+   * 
+ * + * .google.cloud.gaming.v1alpha.TargetState target_state = 3; + */ + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder getTargetStateOrBuilder(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realm.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realm.java index 5fd91ed5..98dc361b 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realm.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realm.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +40,14 @@ private Realm(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Realm() { name_ = ""; timeZone_ = ""; + etag_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Realm(); } @java.lang.Override @@ -105,10 +113,10 @@ private Realm( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -123,6 +131,20 @@ private Realm( timeZone_ = s; break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -168,7 +190,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.gaming.v1alpha.Realm.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -176,11 +197,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * *
    * The resource name of the realm, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`. For
+   * `projects/{project}/locations/{location}/realms/{realm}`. For
    * example, `projects/my-project/locations/{location}/realms/my-realm`.
    * 
* * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -198,11 +221,13 @@ public java.lang.String getName() { * *
    * The resource name of the realm, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`. For
+   * `projects/{project}/locations/{location}/realms/{realm}`. For
    * example, `projects/my-project/locations/{location}/realms/my-realm`.
    * 
* * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -225,7 +250,10 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -237,7 +265,10 @@ public boolean hasCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -249,7 +280,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); @@ -264,7 +296,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -276,7 +311,10 @@ public boolean hasUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -288,7 +326,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); @@ -393,13 +432,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-   * Time zone where all realm-specific policies are evaluated. The value of
+   * Required. Time zone where all realm-specific policies are evaluated. The value of
    * this field must be from the IANA time zone database:
-   * https://www.iana.org/time-zones. If not specified, UTC is assumed by
-   * default.
+   * https://www.iana.org/time-zones.
    * 
* - * string time_zone = 6; + * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. */ public java.lang.String getTimeZone() { java.lang.Object ref = timeZone_; @@ -416,13 +456,14 @@ public java.lang.String getTimeZone() { * * *
-   * Time zone where all realm-specific policies are evaluated. The value of
+   * Required. Time zone where all realm-specific policies are evaluated. The value of
    * this field must be from the IANA time zone database:
-   * https://www.iana.org/time-zones. If not specified, UTC is assumed by
-   * default.
+   * https://www.iana.org/time-zones.
    * 
* - * string time_zone = 6; + * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. */ public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; @@ -436,6 +477,100 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { } } + public static final int ETAG_FIELD_NUMBER = 7; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 7; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 7; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 8; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Human readable description of the realm.
+   * 
+ * + * string description = 8; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Human readable description of the realm.
+   * 
+ * + * string description = 8; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -464,6 +599,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getTimeZoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, timeZone_); } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, etag_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); + } unknownFields.writeTo(output); } @@ -495,6 +636,12 @@ public int getSerializedSize() { if (!getTimeZoneBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, timeZone_); } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, etag_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -521,6 +668,8 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -548,6 +697,10 @@ public int hashCode() { } hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -729,6 +882,10 @@ public Builder clear() { internalGetMutableLabels().clear(); timeZone_ = ""; + etag_ = ""; + + description_ = ""; + return this; } @@ -757,7 +914,6 @@ public com.google.cloud.gaming.v1alpha.Realm buildPartial() { com.google.cloud.gaming.v1alpha.Realm result = new com.google.cloud.gaming.v1alpha.Realm(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -772,7 +928,8 @@ public com.google.cloud.gaming.v1alpha.Realm buildPartial() { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.timeZone_ = timeZone_; - result.bitField0_ = to_bitField0_; + result.etag_ = etag_; + result.description_ = description_; onBuilt(); return result; } @@ -837,6 +994,14 @@ public Builder mergeFrom(com.google.cloud.gaming.v1alpha.Realm other) { timeZone_ = other.timeZone_; onChanged(); } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -874,11 +1039,13 @@ public Builder mergeFrom( * *
      * The resource name of the realm, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`. For
+     * `projects/{project}/locations/{location}/realms/{realm}`. For
      * example, `projects/my-project/locations/{location}/realms/my-realm`.
      * 
* * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -896,11 +1063,13 @@ public java.lang.String getName() { * *
      * The resource name of the realm, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`. For
+     * `projects/{project}/locations/{location}/realms/{realm}`. For
      * example, `projects/my-project/locations/{location}/realms/my-realm`.
      * 
* * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -918,11 +1087,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The resource name of the realm, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`. For
+     * `projects/{project}/locations/{location}/realms/{realm}`. For
      * example, `projects/my-project/locations/{location}/realms/my-realm`.
      * 
* * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -938,11 +1110,13 @@ public Builder setName(java.lang.String value) { * *
      * The resource name of the realm, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`. For
+     * `projects/{project}/locations/{location}/realms/{realm}`. For
      * example, `projects/my-project/locations/{location}/realms/my-realm`.
      * 
* * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -955,11 +1129,14 @@ public Builder clearName() { * *
      * The resource name of the realm, using the form:
-     * `projects/{project_id}/locations/{location}/realms/{realm_id}`. For
+     * `projects/{project}/locations/{location}/realms/{realm}`. For
      * example, `projects/my-project/locations/{location}/realms/my-realm`.
      * 
* * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -985,7 +1162,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -997,7 +1178,11 @@ public boolean hasCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { @@ -1015,7 +1200,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1037,7 +1224,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { @@ -1056,7 +1245,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1080,7 +1271,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1100,7 +1293,9 @@ public Builder clearCreateTime() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { @@ -1114,7 +1309,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { @@ -1132,7 +1329,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1164,7 +1363,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -1176,7 +1379,11 @@ public boolean hasUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1194,7 +1401,9 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1216,7 +1425,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { @@ -1235,7 +1446,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1259,7 +1472,9 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1279,7 +1494,9 @@ public Builder clearUpdateTime() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { @@ -1293,7 +1510,9 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { @@ -1311,7 +1530,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1487,13 +1708,14 @@ public Builder putAllLabels(java.util.Map va * * *
-     * Time zone where all realm-specific policies are evaluated. The value of
+     * Required. Time zone where all realm-specific policies are evaluated. The value of
      * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones. If not specified, UTC is assumed by
-     * default.
+     * https://www.iana.org/time-zones.
      * 
* - * string time_zone = 6; + * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. */ public java.lang.String getTimeZone() { java.lang.Object ref = timeZone_; @@ -1510,13 +1732,14 @@ public java.lang.String getTimeZone() { * * *
-     * Time zone where all realm-specific policies are evaluated. The value of
+     * Required. Time zone where all realm-specific policies are evaluated. The value of
      * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones. If not specified, UTC is assumed by
-     * default.
+     * https://www.iana.org/time-zones.
      * 
* - * string time_zone = 6; + * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. */ public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; @@ -1533,13 +1756,15 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { * * *
-     * Time zone where all realm-specific policies are evaluated. The value of
+     * Required. Time zone where all realm-specific policies are evaluated. The value of
      * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones. If not specified, UTC is assumed by
-     * default.
+     * https://www.iana.org/time-zones.
      * 
* - * string time_zone = 6; + * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The timeZone to set. + * @return This builder for chaining. */ public Builder setTimeZone(java.lang.String value) { if (value == null) { @@ -1554,13 +1779,14 @@ public Builder setTimeZone(java.lang.String value) { * * *
-     * Time zone where all realm-specific policies are evaluated. The value of
+     * Required. Time zone where all realm-specific policies are evaluated. The value of
      * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones. If not specified, UTC is assumed by
-     * default.
+     * https://www.iana.org/time-zones.
      * 
* - * string time_zone = 6; + * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearTimeZone() { @@ -1572,13 +1798,15 @@ public Builder clearTimeZone() { * * *
-     * Time zone where all realm-specific policies are evaluated. The value of
+     * Required. Time zone where all realm-specific policies are evaluated. The value of
      * this field must be from the IANA time zone database:
-     * https://www.iana.org/time-zones. If not specified, UTC is assumed by
-     * default.
+     * https://www.iana.org/time-zones.
      * 
* - * string time_zone = 6; + * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. */ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1591,6 +1819,218 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 7; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 7; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 7; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 7; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * ETag of the resource.
+     * 
+ * + * string etag = 7; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Human readable description of the realm.
+     * 
+ * + * string description = 8; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human readable description of the realm.
+     * 
+ * + * string description = 8; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human readable description of the realm.
+     * 
+ * + * string description = 8; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human readable description of the realm.
+     * 
+ * + * string description = 8; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human readable description of the realm.
+     * 
+ * + * string description = 8; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmName.java index 6dd4e0ad..ad4a289b 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmName.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class RealmName implements ResourceName { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmOrBuilder.java index e21d53d1..517eadfd 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,11 +28,13 @@ public interface RealmOrBuilder * *
    * The resource name of the realm, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`. For
+   * `projects/{project}/locations/{location}/realms/{realm}`. For
    * example, `projects/my-project/locations/{location}/realms/my-realm`.
    * 
* * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -40,11 +42,13 @@ public interface RealmOrBuilder * *
    * The resource name of the realm, using the form:
-   * `projects/{project_id}/locations/{location}/realms/{realm_id}`. For
+   * `projects/{project}/locations/{location}/realms/{realm}`. For
    * example, `projects/my-project/locations/{location}/realms/my-realm`.
    * 
* * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -55,7 +59,10 @@ public interface RealmOrBuilder * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** @@ -65,7 +72,10 @@ public interface RealmOrBuilder * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** @@ -75,7 +85,8 @@ public interface RealmOrBuilder * Output only. The creation time. * * - * .google.protobuf.Timestamp create_time = 2; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); @@ -86,7 +97,10 @@ public interface RealmOrBuilder * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -96,7 +110,10 @@ public interface RealmOrBuilder * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** @@ -106,7 +123,8 @@ public interface RealmOrBuilder * Output only. The last-modified time. * * - * .google.protobuf.Timestamp update_time = 3; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); @@ -168,26 +186,78 @@ public interface RealmOrBuilder * * *
-   * Time zone where all realm-specific policies are evaluated. The value of
+   * Required. Time zone where all realm-specific policies are evaluated. The value of
    * this field must be from the IANA time zone database:
-   * https://www.iana.org/time-zones. If not specified, UTC is assumed by
-   * default.
+   * https://www.iana.org/time-zones.
    * 
* - * string time_zone = 6; + * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. */ java.lang.String getTimeZone(); /** * * *
-   * Time zone where all realm-specific policies are evaluated. The value of
+   * Required. Time zone where all realm-specific policies are evaluated. The value of
    * this field must be from the IANA time zone database:
-   * https://www.iana.org/time-zones. If not specified, UTC is assumed by
-   * default.
+   * https://www.iana.org/time-zones.
    * 
* - * string time_zone = 6; + * string time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. */ com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 7; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * ETag of the resource.
+   * 
+ * + * string etag = 7; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Human readable description of the realm.
+   * 
+ * + * string description = 8; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Human readable description of the realm.
+   * 
+ * + * string description = 8; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelector.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelector.java new file mode 100644 index 00000000..1105adf5 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelector.java @@ -0,0 +1,735 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * The realm selector, used to match realm resources.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.RealmSelector} + */ +public final class RealmSelector extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.RealmSelector) + RealmSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use RealmSelector.newBuilder() to construct. + private RealmSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RealmSelector() { + realms_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RealmSelector(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RealmSelector( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + realms_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + realms_.add(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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + realms_ = realms_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_RealmSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.RealmSelector.class, + com.google.cloud.gaming.v1alpha.RealmSelector.Builder.class); + } + + public static final int REALMS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList realms_; + /** + * + * + *
+   * List of realms to match against.
+   * 
+ * + * repeated string realms = 1; + * + * @return A list containing the realms. + */ + public com.google.protobuf.ProtocolStringList getRealmsList() { + return realms_; + } + /** + * + * + *
+   * List of realms to match against.
+   * 
+ * + * repeated string realms = 1; + * + * @return The count of realms. + */ + public int getRealmsCount() { + return realms_.size(); + } + /** + * + * + *
+   * List of realms to match against.
+   * 
+ * + * repeated string realms = 1; + * + * @param index The index of the element to return. + * @return The realms at the given index. + */ + public java.lang.String getRealms(int index) { + return realms_.get(index); + } + /** + * + * + *
+   * List of realms to match against.
+   * 
+ * + * repeated string realms = 1; + * + * @param index The index of the value to return. + * @return The bytes of the realms at the given index. + */ + public com.google.protobuf.ByteString getRealmsBytes(int index) { + return realms_.getByteString(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 { + for (int i = 0; i < realms_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, realms_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < realms_.size(); i++) { + dataSize += computeStringSizeNoTag(realms_.getRaw(i)); + } + size += dataSize; + size += 1 * getRealmsList().size(); + } + 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.RealmSelector)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.RealmSelector other = + (com.google.cloud.gaming.v1alpha.RealmSelector) obj; + + if (!getRealmsList().equals(other.getRealmsList())) 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 (getRealmsCount() > 0) { + hash = (37 * hash) + REALMS_FIELD_NUMBER; + hash = (53 * hash) + getRealmsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.RealmSelector parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.RealmSelector 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.RealmSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.RealmSelector 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.RealmSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.RealmSelector 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.RealmSelector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.RealmSelector 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.RealmSelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.RealmSelector 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.RealmSelector 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.RealmSelector 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.RealmSelector 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 realm selector, used to match realm resources.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.RealmSelector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.RealmSelector) + com.google.cloud.gaming.v1alpha.RealmSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_RealmSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.RealmSelector.class, + com.google.cloud.gaming.v1alpha.RealmSelector.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.RealmSelector.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + realms_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_RealmSelector_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.RealmSelector getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.RealmSelector build() { + com.google.cloud.gaming.v1alpha.RealmSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.RealmSelector buildPartial() { + com.google.cloud.gaming.v1alpha.RealmSelector result = + new com.google.cloud.gaming.v1alpha.RealmSelector(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + realms_ = realms_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.realms_ = realms_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.RealmSelector) { + return mergeFrom((com.google.cloud.gaming.v1alpha.RealmSelector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.RealmSelector other) { + if (other == com.google.cloud.gaming.v1alpha.RealmSelector.getDefaultInstance()) return this; + if (!other.realms_.isEmpty()) { + if (realms_.isEmpty()) { + realms_ = other.realms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRealmsIsMutable(); + realms_.addAll(other.realms_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.RealmSelector parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gaming.v1alpha.RealmSelector) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList realms_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureRealmsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + realms_ = new com.google.protobuf.LazyStringArrayList(realms_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * List of realms to match against.
+     * 
+ * + * repeated string realms = 1; + * + * @return A list containing the realms. + */ + public com.google.protobuf.ProtocolStringList getRealmsList() { + return realms_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of realms to match against.
+     * 
+ * + * repeated string realms = 1; + * + * @return The count of realms. + */ + public int getRealmsCount() { + return realms_.size(); + } + /** + * + * + *
+     * List of realms to match against.
+     * 
+ * + * repeated string realms = 1; + * + * @param index The index of the element to return. + * @return The realms at the given index. + */ + public java.lang.String getRealms(int index) { + return realms_.get(index); + } + /** + * + * + *
+     * List of realms to match against.
+     * 
+ * + * repeated string realms = 1; + * + * @param index The index of the value to return. + * @return The bytes of the realms at the given index. + */ + public com.google.protobuf.ByteString getRealmsBytes(int index) { + return realms_.getByteString(index); + } + /** + * + * + *
+     * List of realms to match against.
+     * 
+ * + * repeated string realms = 1; + * + * @param index The index to set the value at. + * @param value The realms to set. + * @return This builder for chaining. + */ + public Builder setRealms(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRealmsIsMutable(); + realms_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of realms to match against.
+     * 
+ * + * repeated string realms = 1; + * + * @param value The realms to add. + * @return This builder for chaining. + */ + public Builder addRealms(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRealmsIsMutable(); + realms_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of realms to match against.
+     * 
+ * + * repeated string realms = 1; + * + * @param values The realms to add. + * @return This builder for chaining. + */ + public Builder addAllRealms(java.lang.Iterable values) { + ensureRealmsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, realms_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of realms to match against.
+     * 
+ * + * repeated string realms = 1; + * + * @return This builder for chaining. + */ + public Builder clearRealms() { + realms_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * List of realms to match against.
+     * 
+ * + * repeated string realms = 1; + * + * @param value The bytes of the realms to add. + * @return This builder for chaining. + */ + public Builder addRealmsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRealmsIsMutable(); + realms_.add(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.RealmSelector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.RealmSelector) + private static final com.google.cloud.gaming.v1alpha.RealmSelector DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.RealmSelector(); + } + + public static com.google.cloud.gaming.v1alpha.RealmSelector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RealmSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RealmSelector(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.RealmSelector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelectorOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelectorOrBuilder.java new file mode 100644 index 00000000..7913b813 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelectorOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +public interface RealmSelectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.RealmSelector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of realms to match against.
+   * 
+ * + * repeated string realms = 1; + * + * @return A list containing the realms. + */ + java.util.List getRealmsList(); + /** + * + * + *
+   * List of realms to match against.
+   * 
+ * + * repeated string realms = 1; + * + * @return The count of realms. + */ + int getRealmsCount(); + /** + * + * + *
+   * List of realms to match against.
+   * 
+ * + * repeated string realms = 1; + * + * @param index The index of the element to return. + * @return The realms at the given index. + */ + java.lang.String getRealms(int index); + /** + * + * + *
+   * List of realms to match against.
+   * 
+ * + * repeated string realms = 1; + * + * @param index The index of the value to return. + * @return The bytes of the realms at the given index. + */ + com.google.protobuf.ByteString getRealmsBytes(int index); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realms.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realms.java index 15968962..7f56e6c6 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realms.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realms.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,6 +51,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gaming_v1alpha_UpdateRealmRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gaming_v1alpha_Realm_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -69,74 +77,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n(google/cloud/gaming/v1alpha/realms.pro" - + "to\022\033google.cloud.gaming.v1alpha\032\034google/" - + "api/annotations.proto\032#google/longrunnin" - + "g/operations.proto\032 google/protobuf/fiel" - + "d_mask.proto\032\037google/protobuf/timestamp." - + "proto\032\027google/api/client.proto\"l\n\021ListRe" - + "almsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" - + "(\t\022\020\n\010order_by\030\005 \001(\t\"a\n\022ListRealmsRespon" - + "se\0222\n\006realms\030\001 \003(\0132\".google.cloud.gaming" - + ".v1alpha.Realm\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\037\n\017GetRealmRequest\022\014\n\004name\030\001 \001(\t\"i\n\022Crea" - + "teRealmRequest\022\016\n\006parent\030\001 \001(\t\022\020\n\010realm_" - + "id\030\002 \001(\t\0221\n\005realm\030\003 \001(\0132\".google.cloud.g" - + "aming.v1alpha.Realm\"\"\n\022DeleteRealmReques" - + "t\022\014\n\004name\030\001 \001(\t\"x\n\022UpdateRealmRequest\0221\n" - + "\005realm\030\001 \001(\0132\".google.cloud.gaming.v1alp" - + "ha.Realm\022/\n\013update_mask\030\002 \001(\0132\032.google.p" - + "rotobuf.FieldMask\"\371\001\n\005Realm\022\014\n\004name\030\001 \001(" - + "\t\022/\n\013create_time\030\002 \001(\0132\032.google.protobuf" - + ".Timestamp\022/\n\013update_time\030\003 \001(\0132\032.google" - + ".protobuf.Timestamp\022>\n\006labels\030\004 \003(\0132..go" - + "ogle.cloud.gaming.v1alpha.Realm.LabelsEn" - + "try\022\021\n\ttime_zone\030\006 \001(\t\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\200\007\n\rRealms" - + "Service\022\246\001\n\nListRealms\022..google.cloud.ga" - + "ming.v1alpha.ListRealmsRequest\032/.google." - + "cloud.gaming.v1alpha.ListRealmsResponse\"" - + "7\202\323\344\223\0021\022//v1alpha/{parent=projects/*/loc" - + "ations/*}/realms\022\225\001\n\010GetRealm\022,.google.c" - + "loud.gaming.v1alpha.GetRealmRequest\032\".go" - + "ogle.cloud.gaming.v1alpha.Realm\"7\202\323\344\223\0021\022" - + "//v1alpha/{name=projects/*/locations/*/r" - + "ealms/*}\022\235\001\n\013CreateRealm\022/.google.cloud." - + "gaming.v1alpha.CreateRealmRequest\032\035.goog" - + "le.longrunning.Operation\">\202\323\344\223\0028\"//v1alp" - + "ha/{parent=projects/*/locations/*}/realm" - + "s:\005realm\022\226\001\n\013DeleteRealm\022/.google.cloud." - + "gaming.v1alpha.DeleteRealmRequest\032\035.goog" - + "le.longrunning.Operation\"7\202\323\344\223\0021*//v1alp" - + "ha/{name=projects/*/locations/*/realms/*" - + "}\022\243\001\n\013UpdateRealm\022/.google.cloud.gaming." - + "v1alpha.UpdateRealmRequest\032\035.google.long" - + "running.Operation\"D\202\323\344\223\002>25/v1alpha/{rea" - + "lm.name=projects/*/locations/*/realms/*}" - + ":\005realm\032O\312A\033gameservices.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-" - + "platformBf\n\037com.google.cloud.gaming.v1al" - + "phaP\001ZAgoogle.golang.org/genproto/google" - + "apis/cloud/gaming/v1alpha;gamingb\006proto3" + + "to\022\033google.cloud.gaming.v1alpha\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032(google/cloud/gaming/v1alpha" + + "/common.proto\032 google/protobuf/field_mas" + + "k.proto\032\037google/protobuf/timestamp.proto" + + "\032\034google/api/annotations.proto\"\253\001\n\021ListR" + + "ealmsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!ga" + + "meservices.googleapis.com/Realm\022\026\n\tpage_" + + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + + "\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB" + + "\003\340A\001\"v\n\022ListRealmsResponse\0222\n\006realms\030\001 \003" + + "(\0132\".google.cloud.gaming.v1alpha.Realm\022\027" + + "\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003" + + " \003(\t\"J\n\017GetRealmRequest\0227\n\004name\030\001 \001(\tB)\340" + + "A\002\372A#\n!gameservices.googleapis.com/Realm" + + "\"\236\001\n\022CreateRealmRequest\0229\n\006parent\030\001 \001(\tB" + + ")\340A\002\372A#\n!gameservices.googleapis.com/Rea" + + "lm\022\025\n\010realm_id\030\002 \001(\tB\003\340A\002\0226\n\005realm\030\003 \001(\013" + + "2\".google.cloud.gaming.v1alpha.RealmB\003\340A" + + "\002\"M\n\022DeleteRealmRequest\0227\n\004name\030\001 \001(\tB)\340" + + "A\002\372A#\n!gameservices.googleapis.com/Realm" + + "\"\202\001\n\022UpdateRealmRequest\0226\n\005realm\030\001 \001(\0132\"" + + ".google.cloud.gaming.v1alpha.RealmB\003\340A\002\022" + + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\002\"\300\001\n\031PreviewRealmUpdateRequ" + + "est\0226\n\005realm\030\001 \001(\0132\".google.cloud.gaming" + + ".v1alpha.RealmB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\0225\n\014pre" + + "view_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\001\"\262\001\n\032PreviewRealmUpdateResponse\022" + + "F\n\016deployed_state\030\001 \001(\0132*.google.cloud.g" + + "aming.v1alpha.DeployedStateB\002\030\001\022\014\n\004etag\030" + + "\002 \001(\t\022>\n\014target_state\030\003 \001(\0132(.google.clo" + + "ud.gaming.v1alpha.TargetState\"\213\003\n\005Realm\022" + + "\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022>\n\006labels\030\004 \003(\0132..google.cloud.gaming." + + "v1alpha.Realm.LabelsEntry\022\026\n\ttime_zone\030\006" + + " \001(\tB\003\340A\002\022\014\n\004etag\030\007 \001(\t\022\023\n\013description\030\010" + + " \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:^\352A[\n!gameservices.googleapi" + + "s.com/Realm\0226projects/{project}/location" + + "s/{location}/realms/{realm}Bf\n\037com.googl" + + "e.cloud.gaming.v1alphaP\001ZAgoogle.golang." + + "org/genproto/googleapis/cloud/gaming/v1a" + + "lpha;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.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gaming.v1alpha.Common.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_gaming_v1alpha_ListRealmsRequest_fieldAccessorTable = @@ -151,7 +150,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_ListRealmsResponse_descriptor, new java.lang.String[] { - "Realms", "NextPageToken", + "Realms", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gaming_v1alpha_GetRealmRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -185,13 +184,29 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Realm", "UpdateMask", }); - internal_static_google_cloud_gaming_v1alpha_Realm_descriptor = + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateRequest_descriptor, + new java.lang.String[] { + "Realm", "UpdateMask", "PreviewTime", + }); + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gaming_v1alpha_PreviewRealmUpdateResponse_descriptor, + new java.lang.String[] { + "DeployedState", "Etag", "TargetState", + }); + internal_static_google_cloud_gaming_v1alpha_Realm_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_gaming_v1alpha_Realm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gaming_v1alpha_Realm_descriptor, new java.lang.String[] { - "Name", "CreateTime", "UpdateTime", "Labels", "TimeZone", + "Name", "CreateTime", "UpdateTime", "Labels", "TimeZone", "Etag", "Description", }); internal_static_google_cloud_gaming_v1alpha_Realm_LabelsEntry_descriptor = internal_static_google_cloud_gaming_v1alpha_Realm_descriptor.getNestedTypes().get(0); @@ -203,16 +218,17 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gaming.v1alpha.Common.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceOuterClass.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceOuterClass.java new file mode 100644 index 00000000..6f60ec06 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceOuterClass.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/realms_service.proto + +package com.google.cloud.gaming.v1alpha; + +public final class RealmsServiceOuterClass { + private RealmsServiceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/gaming/v1alpha/realms_ser" + + "vice.proto\022\033google.cloud.gaming.v1alpha\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032(google/cloud/gaming/v1al" + + "pha/realms.proto\032#google/longrunning/ope" + + "rations.proto2\366\t\n\rRealmsService\022\257\001\n\nList" + + "Realms\022..google.cloud.gaming.v1alpha.Lis" + + "tRealmsRequest\032/.google.cloud.gaming.v1a" + + "lpha.ListRealmsResponse\"@\202\323\344\223\0021\022//v1alph" + + "a/{parent=projects/*/locations/*}/realms" + + "\332A\006parent\022\234\001\n\010GetRealm\022,.google.cloud.ga" + + "ming.v1alpha.GetRealmRequest\032\".google.cl" + + "oud.gaming.v1alpha.Realm\">\202\323\344\223\0021\022//v1alp" + + "ha/{name=projects/*/locations/*/realms/*" + + "}\332A\004name\022\322\001\n\013CreateRealm\022/.google.cloud." + + "gaming.v1alpha.CreateRealmRequest\032\035.goog" + + "le.longrunning.Operation\"s\202\323\344\223\0028\"//v1alp" + + "ha/{parent=projects/*/locations/*}/realm" + + "s:\005realm\332A\025parent,realm,realm_id\312A\032\n\005Rea" + + "lm\022\021OperationMetadata\022\272\001\n\013DeleteRealm\022/." + + "google.cloud.gaming.v1alpha.DeleteRealmR" + + "equest\032\035.google.longrunning.Operation\"[\202" + + "\323\344\223\0021*//v1alpha/{name=projects/*/locatio" + + "ns/*/realms/*}\332A\004name\312A\032\n\005Realm\022\021Operati" + + "onMetadata\022\324\001\n\013UpdateRealm\022/.google.clou" + + "d.gaming.v1alpha.UpdateRealmRequest\032\035.go" + + "ogle.longrunning.Operation\"u\202\323\344\223\002>25/v1a" + + "lpha/{realm.name=projects/*/locations/*/" + + "realms/*}:\005realm\332A\021realm,update_mask\312A\032\n" + + "\005Realm\022\021OperationMetadata\022\331\001\n\022PreviewRea" + + "lmUpdate\0226.google.cloud.gaming.v1alpha.P" + + "reviewRealmUpdateRequest\0327.google.cloud." + + "gaming.v1alpha.PreviewRealmUpdateRespons" + + "e\"R\202\323\344\223\002L2C/v1alpha/{realm.name=projects" + + "/*/locations/*/realms/*}:previewUpdate:\005" + + "realm\032O\312A\033gameservices.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-pl" + + "atformBf\n\037com.google.cloud.gaming.v1alph" + + "aP\001ZAgoogle.golang.org/genproto/googleap" + + "is/cloud/gaming/v1alpha;gamingb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.gaming.v1alpha.Realms.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.gaming.v1alpha.Realms.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfig.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfig.java new file mode 100644 index 00000000..50d2cff3 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfig.java @@ -0,0 +1,1841 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_configs.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Autoscaling configs for Agones fleet.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.ScalingConfig} + */ +public final class ScalingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ScalingConfig) + ScalingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ScalingConfig.newBuilder() to construct. + private ScalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ScalingConfig() { + name_ = ""; + fleetAutoscalerSpec_ = ""; + selectors_ = java.util.Collections.emptyList(); + schedules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ScalingConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ScalingConfig( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + fleetAutoscalerSpec_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + selectors_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + selectors_.add( + input.readMessage( + com.google.cloud.gaming.v1alpha.LabelSelector.parser(), extensionRegistry)); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + schedules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + schedules_.add( + input.readMessage( + com.google.cloud.gaming.v1alpha.Schedule.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + selectors_ = java.util.Collections.unmodifiableList(selectors_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + schedules_ = java.util.Collections.unmodifiableList(schedules_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.ScalingConfig.class, + com.google.cloud.gaming.v1alpha.ScalingConfig.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the ScalingConfig
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + 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 ScalingConfig
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + 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 FLEET_AUTOSCALER_SPEC_FIELD_NUMBER = 2; + private volatile java.lang.Object fleetAutoscalerSpec_; + /** + * + * + *
+   * Required. Fleet autoscaler spec, which is sent to Agones.
+   * Example spec can be found :
+   * https://agones.dev/site/docs/reference/fleetautoscaler/
+   * 
+ * + * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleetAutoscalerSpec. + */ + public java.lang.String getFleetAutoscalerSpec() { + java.lang.Object ref = fleetAutoscalerSpec_; + 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(); + fleetAutoscalerSpec_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Fleet autoscaler spec, which is sent to Agones.
+   * Example spec can be found :
+   * https://agones.dev/site/docs/reference/fleetautoscaler/
+   * 
+ * + * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fleetAutoscalerSpec. + */ + public com.google.protobuf.ByteString getFleetAutoscalerSpecBytes() { + java.lang.Object ref = fleetAutoscalerSpec_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetAutoscalerSpec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELECTORS_FIELD_NUMBER = 4; + private java.util.List selectors_; + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public java.util.List getSelectorsList() { + return selectors_; + } + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public java.util.List + getSelectorsOrBuilderList() { + return selectors_; + } + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public int getSelectorsCount() { + return selectors_.size(); + } + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public com.google.cloud.gaming.v1alpha.LabelSelector getSelectors(int index) { + return selectors_.get(index); + } + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getSelectorsOrBuilder(int index) { + return selectors_.get(index); + } + + public static final int SCHEDULES_FIELD_NUMBER = 5; + private java.util.List schedules_; + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public java.util.List getSchedulesList() { + return schedules_; + } + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public java.util.List + getSchedulesOrBuilderList() { + return schedules_; + } + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public int getSchedulesCount() { + return schedules_.size(); + } + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index) { + return schedules_.get(index); + } + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + 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 (!getFleetAutoscalerSpecBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fleetAutoscalerSpec_); + } + for (int i = 0; i < selectors_.size(); i++) { + output.writeMessage(4, selectors_.get(i)); + } + for (int i = 0; i < schedules_.size(); i++) { + output.writeMessage(5, 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 (!getFleetAutoscalerSpecBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fleetAutoscalerSpec_); + } + for (int i = 0; i < selectors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, selectors_.get(i)); + } + for (int i = 0; i < schedules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, schedules_.get(i)); + } + 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.ScalingConfig)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.ScalingConfig other = + (com.google.cloud.gaming.v1alpha.ScalingConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFleetAutoscalerSpec().equals(other.getFleetAutoscalerSpec())) return false; + if (!getSelectorsList().equals(other.getSelectorsList())) return false; + if (!getSchedulesList().equals(other.getSchedulesList())) 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 = (37 * hash) + FLEET_AUTOSCALER_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getFleetAutoscalerSpec().hashCode(); + if (getSelectorsCount() > 0) { + hash = (37 * hash) + SELECTORS_FIELD_NUMBER; + hash = (53 * hash) + getSelectorsList().hashCode(); + } + if (getSchedulesCount() > 0) { + hash = (37 * hash) + SCHEDULES_FIELD_NUMBER; + hash = (53 * hash) + getSchedulesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.ScalingConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.ScalingConfig 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.ScalingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.ScalingConfig 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.ScalingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.ScalingConfig 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.ScalingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.ScalingConfig 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.ScalingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.ScalingConfig 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.ScalingConfig 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.ScalingConfig 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.ScalingConfig 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; + } + /** + * + * + *
+   * Autoscaling configs for Agones fleet.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.ScalingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ScalingConfig) + com.google.cloud.gaming.v1alpha.ScalingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.ScalingConfig.class, + com.google.cloud.gaming.v1alpha.ScalingConfig.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.ScalingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSelectorsFieldBuilder(); + getSchedulesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + fleetAutoscalerSpec_ = ""; + + if (selectorsBuilder_ == null) { + selectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + selectorsBuilder_.clear(); + } + if (schedulesBuilder_ == null) { + schedules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + schedulesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.GameServerConfigs + .internal_static_google_cloud_gaming_v1alpha_ScalingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.ScalingConfig getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.ScalingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.ScalingConfig build() { + com.google.cloud.gaming.v1alpha.ScalingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.ScalingConfig buildPartial() { + com.google.cloud.gaming.v1alpha.ScalingConfig result = + new com.google.cloud.gaming.v1alpha.ScalingConfig(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.fleetAutoscalerSpec_ = fleetAutoscalerSpec_; + if (selectorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + selectors_ = java.util.Collections.unmodifiableList(selectors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.selectors_ = selectors_; + } else { + result.selectors_ = selectorsBuilder_.build(); + } + if (schedulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + schedules_ = java.util.Collections.unmodifiableList(schedules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.schedules_ = schedules_; + } else { + result.schedules_ = schedulesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.ScalingConfig) { + return mergeFrom((com.google.cloud.gaming.v1alpha.ScalingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ScalingConfig other) { + if (other == com.google.cloud.gaming.v1alpha.ScalingConfig.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getFleetAutoscalerSpec().isEmpty()) { + fleetAutoscalerSpec_ = other.fleetAutoscalerSpec_; + onChanged(); + } + if (selectorsBuilder_ == null) { + if (!other.selectors_.isEmpty()) { + if (selectors_.isEmpty()) { + selectors_ = other.selectors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSelectorsIsMutable(); + selectors_.addAll(other.selectors_); + } + onChanged(); + } + } else { + if (!other.selectors_.isEmpty()) { + if (selectorsBuilder_.isEmpty()) { + selectorsBuilder_.dispose(); + selectorsBuilder_ = null; + selectors_ = other.selectors_; + bitField0_ = (bitField0_ & ~0x00000001); + selectorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSelectorsFieldBuilder() + : null; + } else { + selectorsBuilder_.addAllMessages(other.selectors_); + } + } + } + if (schedulesBuilder_ == null) { + if (!other.schedules_.isEmpty()) { + if (schedules_.isEmpty()) { + schedules_ = other.schedules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSchedulesIsMutable(); + schedules_.addAll(other.schedules_); + } + onChanged(); + } + } else { + if (!other.schedules_.isEmpty()) { + if (schedulesBuilder_.isEmpty()) { + schedulesBuilder_.dispose(); + schedulesBuilder_ = null; + schedules_ = other.schedules_; + bitField0_ = (bitField0_ & ~0x00000002); + schedulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSchedulesFieldBuilder() + : null; + } else { + schedulesBuilder_.addAllMessages(other.schedules_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.ScalingConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gaming.v1alpha.ScalingConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the ScalingConfig
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + 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 ScalingConfig
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + 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 ScalingConfig
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the ScalingConfig
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the ScalingConfig
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object fleetAutoscalerSpec_ = ""; + /** + * + * + *
+     * Required. Fleet autoscaler spec, which is sent to Agones.
+     * Example spec can be found :
+     * https://agones.dev/site/docs/reference/fleetautoscaler/
+     * 
+ * + * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleetAutoscalerSpec. + */ + public java.lang.String getFleetAutoscalerSpec() { + java.lang.Object ref = fleetAutoscalerSpec_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fleetAutoscalerSpec_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Fleet autoscaler spec, which is sent to Agones.
+     * Example spec can be found :
+     * https://agones.dev/site/docs/reference/fleetautoscaler/
+     * 
+ * + * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fleetAutoscalerSpec. + */ + public com.google.protobuf.ByteString getFleetAutoscalerSpecBytes() { + java.lang.Object ref = fleetAutoscalerSpec_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetAutoscalerSpec_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Fleet autoscaler spec, which is sent to Agones.
+     * Example spec can be found :
+     * https://agones.dev/site/docs/reference/fleetautoscaler/
+     * 
+ * + * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fleetAutoscalerSpec to set. + * @return This builder for chaining. + */ + public Builder setFleetAutoscalerSpec(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fleetAutoscalerSpec_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Fleet autoscaler spec, which is sent to Agones.
+     * Example spec can be found :
+     * https://agones.dev/site/docs/reference/fleetautoscaler/
+     * 
+ * + * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFleetAutoscalerSpec() { + + fleetAutoscalerSpec_ = getDefaultInstance().getFleetAutoscalerSpec(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Fleet autoscaler spec, which is sent to Agones.
+     * Example spec can be found :
+     * https://agones.dev/site/docs/reference/fleetautoscaler/
+     * 
+ * + * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for fleetAutoscalerSpec to set. + * @return This builder for chaining. + */ + public Builder setFleetAutoscalerSpecBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fleetAutoscalerSpec_ = value; + onChanged(); + return this; + } + + private java.util.List selectors_ = + java.util.Collections.emptyList(); + + private void ensureSelectorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + selectors_ = + new java.util.ArrayList(selectors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.LabelSelector, + com.google.cloud.gaming.v1alpha.LabelSelector.Builder, + com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder> + selectorsBuilder_; + + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public java.util.List getSelectorsList() { + if (selectorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(selectors_); + } else { + return selectorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public int getSelectorsCount() { + if (selectorsBuilder_ == null) { + return selectors_.size(); + } else { + return selectorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public com.google.cloud.gaming.v1alpha.LabelSelector getSelectors(int index) { + if (selectorsBuilder_ == null) { + return selectors_.get(index); + } else { + return selectorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public Builder setSelectors(int index, com.google.cloud.gaming.v1alpha.LabelSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.set(index, value); + onChanged(); + } else { + selectorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public Builder setSelectors( + int index, com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.set(index, builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public Builder addSelectors(com.google.cloud.gaming.v1alpha.LabelSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.add(value); + onChanged(); + } else { + selectorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public Builder addSelectors(int index, com.google.cloud.gaming.v1alpha.LabelSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.add(index, value); + onChanged(); + } else { + selectorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public Builder addSelectors( + com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.add(builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public Builder addSelectors( + int index, com.google.cloud.gaming.v1alpha.LabelSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.add(index, builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public Builder addAllSelectors( + java.lang.Iterable values) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectors_); + onChanged(); + } else { + selectorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public Builder clearSelectors() { + if (selectorsBuilder_ == null) { + selectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + selectorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public Builder removeSelectors(int index) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.remove(index); + onChanged(); + } else { + selectorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public com.google.cloud.gaming.v1alpha.LabelSelector.Builder getSelectorsBuilder(int index) { + return getSelectorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getSelectorsOrBuilder(int index) { + if (selectorsBuilder_ == null) { + return selectors_.get(index); + } else { + return selectorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public java.util.List + getSelectorsOrBuilderList() { + if (selectorsBuilder_ != null) { + return selectorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(selectors_); + } + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addSelectorsBuilder() { + return getSelectorsFieldBuilder() + .addBuilder(com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()); + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addSelectorsBuilder(int index) { + return getSelectorsFieldBuilder() + .addBuilder(index, com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()); + } + /** + * + * + *
+     * Labels used to identify the clusters to which this scaling config
+     * applies. A cluster is subject to this scaling config if its labels match
+     * any of the selector entries.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + public java.util.List + getSelectorsBuilderList() { + return getSelectorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.LabelSelector, + com.google.cloud.gaming.v1alpha.LabelSelector.Builder, + com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder> + getSelectorsFieldBuilder() { + if (selectorsBuilder_ == null) { + selectorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.LabelSelector, + com.google.cloud.gaming.v1alpha.LabelSelector.Builder, + com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder>( + selectors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + selectors_ = null; + } + return selectorsBuilder_; + } + + private java.util.List schedules_ = + java.util.Collections.emptyList(); + + private void ensureSchedulesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + schedules_ = new java.util.ArrayList(schedules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.Schedule, + com.google.cloud.gaming.v1alpha.Schedule.Builder, + com.google.cloud.gaming.v1alpha.ScheduleOrBuilder> + schedulesBuilder_; + + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public java.util.List getSchedulesList() { + if (schedulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(schedules_); + } else { + return schedulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public int getSchedulesCount() { + if (schedulesBuilder_ == null) { + return schedules_.size(); + } else { + return schedulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index) { + if (schedulesBuilder_ == null) { + return schedules_.get(index); + } else { + return schedulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + 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 schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + 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 schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + 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 schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + 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 schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + 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 schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + 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 schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public Builder addAllSchedules( + java.lang.Iterable values) { + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schedules_); + onChanged(); + } else { + schedulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public Builder clearSchedules() { + if (schedulesBuilder_ == null) { + schedules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + schedulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public Builder removeSchedules(int index) { + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + schedules_.remove(index); + onChanged(); + } else { + schedulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public com.google.cloud.gaming.v1alpha.Schedule.Builder getSchedulesBuilder(int index) { + return getSchedulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index) { + if (schedulesBuilder_ == null) { + return schedules_.get(index); + } else { + return schedulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public java.util.List + getSchedulesOrBuilderList() { + if (schedulesBuilder_ != null) { + return schedulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(schedules_); + } + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder() { + return getSchedulesFieldBuilder() + .addBuilder(com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance()); + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder(int index) { + return getSchedulesFieldBuilder() + .addBuilder(index, com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance()); + } + /** + * + * + *
+     * The schedules to which this scaling config applies.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + public java.util.List + getSchedulesBuilderList() { + return getSchedulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.Schedule, + com.google.cloud.gaming.v1alpha.Schedule.Builder, + com.google.cloud.gaming.v1alpha.ScheduleOrBuilder> + getSchedulesFieldBuilder() { + if (schedulesBuilder_ == null) { + schedulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.Schedule, + com.google.cloud.gaming.v1alpha.Schedule.Builder, + com.google.cloud.gaming.v1alpha.ScheduleOrBuilder>( + schedules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + schedules_ = null; + } + return schedulesBuilder_; + } + + @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.ScalingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ScalingConfig) + private static final com.google.cloud.gaming.v1alpha.ScalingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ScalingConfig(); + } + + public static com.google.cloud.gaming.v1alpha.ScalingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScalingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScalingConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.ScalingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfigOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfigOrBuilder.java new file mode 100644 index 00000000..91bb2110 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfigOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/game_server_configs.proto + +package com.google.cloud.gaming.v1alpha; + +public interface ScalingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ScalingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the ScalingConfig
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the ScalingConfig
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Fleet autoscaler spec, which is sent to Agones.
+   * Example spec can be found :
+   * https://agones.dev/site/docs/reference/fleetautoscaler/
+   * 
+ * + * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleetAutoscalerSpec. + */ + java.lang.String getFleetAutoscalerSpec(); + /** + * + * + *
+   * Required. Fleet autoscaler spec, which is sent to Agones.
+   * Example spec can be found :
+   * https://agones.dev/site/docs/reference/fleetautoscaler/
+   * 
+ * + * string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fleetAutoscalerSpec. + */ + com.google.protobuf.ByteString getFleetAutoscalerSpecBytes(); + + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + java.util.List getSelectorsList(); + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + com.google.cloud.gaming.v1alpha.LabelSelector getSelectors(int index); + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + int getSelectorsCount(); + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + java.util.List + getSelectorsOrBuilderList(); + /** + * + * + *
+   * Labels used to identify the clusters to which this scaling config
+   * applies. A cluster is subject to this scaling config if its labels match
+   * any of the selector entries.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.LabelSelector selectors = 4; + */ + com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getSelectorsOrBuilder(int index); + + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + java.util.List getSchedulesList(); + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index); + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + int getSchedulesCount(); + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + java.util.List + getSchedulesOrBuilderList(); + /** + * + * + *
+   * The schedules to which this scaling config applies.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5; + */ + com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicies.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicies.java deleted file mode 100644 index 461da39f..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicies.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public final class ScalingPolicies { - private ScalingPolicies() {} - - 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_ListScalingPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/gaming/v1alpha/scaling_po" - + "licies.proto\022\033google.cloud.gaming.v1alph" - + "a\032\034google/api/annotations.proto\032(google/" - + "cloud/gaming/v1alpha/common.proto\032#googl" - + "e/longrunning/operations.proto\032 google/p" - + "rotobuf/field_mask.proto\032\037google/protobu" - + "f/timestamp.proto\032\036google/protobuf/wrapp" - + "ers.proto\032\027google/api/client.proto\"u\n\032Li" - + "stScalingPoliciesRequest\022\016\n\006parent\030\001 \001(\t" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" - + "\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"|\n\033Lis" - + "tScalingPoliciesResponse\022D\n\020scaling_poli" - + "cies\030\001 \003(\0132*.google.cloud.gaming.v1alpha" - + ".ScalingPolicy\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\'\n\027GetScalingPolicyRequest\022\014\n\004name\030\001 \001(\t" - + "\"\213\001\n\032CreateScalingPolicyRequest\022\016\n\006paren" - + "t\030\001 \001(\t\022\031\n\021scaling_policy_id\030\002 \001(\t\022B\n\016sc" - + "aling_policy\030\003 \001(\0132*.google.cloud.gaming" - + ".v1alpha.ScalingPolicy\"*\n\032DeleteScalingP" - + "olicyRequest\022\014\n\004name\030\001 \001(\t\"\221\001\n\032UpdateSca" - + "lingPolicyRequest\022B\n\016scaling_policy\030\001 \001(" - + "\0132*.google.cloud.gaming.v1alpha.ScalingP" - + "olicy\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMask\"\226\001\n\027FleetAutoscalerSettin" - + "gs\022\036\n\024buffer_size_absolute\030\001 \001(\003H\000\022 \n\026bu" - + "ffer_size_percentage\030\002 \001(\005H\000\022\024\n\014min_repl" - + "icas\030\003 \001(\003\022\024\n\014max_replicas\030\004 \001(\003B\r\n\013buff" - + "er_size\"\237\004\n\rScalingPolicy\022\014\n\004name\030\001 \001(\t\022" - + "/\n\013create_time\030\002 \001(\0132\032.google.protobuf.T" - + "imestamp\022/\n\013update_time\030\003 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022F\n\006labels\030\004 \003(\01326.goog" - + "le.cloud.gaming.v1alpha.ScalingPolicy.La" - + "belsEntry\022W\n\031fleet_autoscaler_settings\030\005" - + " \001(\01324.google.cloud.gaming.v1alpha.Fleet" - + "AutoscalerSettings\022-\n\010priority\030\006 \001(\0132\033.g" - + "oogle.protobuf.Int32Value\022E\n\021cluster_sel" - + "ectors\030\007 \003(\0132*.google.cloud.gaming.v1alp" - + "ha.LabelSelector\0228\n\tschedules\030\010 \003(\0132%.go" - + "ogle.cloud.gaming.v1alpha.Schedule\022\036\n\026ga" - + "me_server_deployment\030\t \001(\t\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\264\010\n\026Sc" - + "alingPoliciesService\022\312\001\n\023ListScalingPoli" - + "cies\0227.google.cloud.gaming.v1alpha.ListS" - + "calingPoliciesRequest\0328.google.cloud.gam" - + "ing.v1alpha.ListScalingPoliciesResponse\"" - + "@\202\323\344\223\002:\0228/v1alpha/{parent=projects/*/loc" - + "ations/*}/scalingPolicies\022\266\001\n\020GetScaling" - + "Policy\0224.google.cloud.gaming.v1alpha.Get" - + "ScalingPolicyRequest\032*.google.cloud.gami" - + "ng.v1alpha.ScalingPolicy\"@\202\323\344\223\002:\0228/v1alp" - + "ha/{name=projects/*/locations/*/scalingP" - + "olicies/*}\022\277\001\n\023CreateScalingPolicy\0227.goo" - + "gle.cloud.gaming.v1alpha.CreateScalingPo" - + "licyRequest\032\035.google.longrunning.Operati" - + "on\"P\202\323\344\223\002J\"8/v1alpha/{parent=projects/*/" - + "locations/*}/scalingPolicies:\016scaling_po" - + "licy\022\257\001\n\023DeleteScalingPolicy\0227.google.cl" - + "oud.gaming.v1alpha.DeleteScalingPolicyRe" - + "quest\032\035.google.longrunning.Operation\"@\202\323" - + "\344\223\002:*8/v1alpha/{name=projects/*/location" - + "s/*/scalingPolicies/*}\022\316\001\n\023UpdateScaling" - + "Policy\0227.google.cloud.gaming.v1alpha.Upd" - + "ateScalingPolicyRequest\032\035.google.longrun" - + "ning.Operation\"_\202\323\344\223\002Y2G/v1alpha/{scalin" - + "g_policy.name=projects/*/locations/*/sca" - + "lingPolicies/*}:\016scaling_policy\032O\312A\033game" - + "services.googleapis.com\322A.https://www.go" - + "ogleapis.com/auth/cloud-platformBf\n\037com." - + "google.cloud.gaming.v1alphaP\001ZAgoogle.go" - + "lang.org/genproto/googleapis/cloud/gamin" - + "g/v1alpha;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.cloud.gaming.v1alpha.Common.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }, - assigner); - internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ListScalingPoliciesResponse_descriptor, - new java.lang.String[] { - "ScalingPolicies", "NextPageToken", - }); - internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_GetScalingPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_CreateScalingPolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "ScalingPolicyId", "ScalingPolicy", - }); - internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_DeleteScalingPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_descriptor, - new java.lang.String[] { - "ScalingPolicy", "UpdateMask", - }); - internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_FleetAutoscalerSettings_descriptor, - new java.lang.String[] { - "BufferSizeAbsolute", - "BufferSizePercentage", - "MinReplicas", - "MaxReplicas", - "BufferSize", - }); - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "FleetAutoscalerSettings", - "Priority", - "ClusterSelectors", - "Schedules", - "GameServerDeployment", - }); - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_LabelsEntry_descriptor = - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.gaming.v1alpha.Common.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicy.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicy.java deleted file mode 100644 index 7f190071..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicy.java +++ /dev/null @@ -1,3229 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * A scaling policy resource.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ScalingPolicy} - */ -public final class ScalingPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.ScalingPolicy) - ScalingPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ScalingPolicy.newBuilder() to construct. - private ScalingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ScalingPolicy() { - name_ = ""; - clusterSelectors_ = java.util.Collections.emptyList(); - schedules_ = java.util.Collections.emptyList(); - gameServerDeployment_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ScalingPolicy( - 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 labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 42: - { - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.Builder subBuilder = null; - if (fleetAutoscalerSettings_ != null) { - subBuilder = fleetAutoscalerSettings_.toBuilder(); - } - fleetAutoscalerSettings_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fleetAutoscalerSettings_); - fleetAutoscalerSettings_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (priority_ != null) { - subBuilder = priority_.toBuilder(); - } - priority_ = - input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(priority_); - priority_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - clusterSelectors_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - clusterSelectors_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.LabelSelector.parser(), extensionRegistry)); - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - schedules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - schedules_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.Schedule.parser(), extensionRegistry)); - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - gameServerDeployment_ = 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 { - if (((mutable_bitField0_ & 0x00000040) != 0)) { - clusterSelectors_ = java.util.Collections.unmodifiableList(clusterSelectors_); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - schedules_ = java.util.Collections.unmodifiableList(schedules_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ScalingPolicy.class, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The resource name of the scaling policy, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`.
-   * For example,
-   * `projects/my-project/locations/{location}/scalingPolicies/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 scaling policy, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`.
-   * For example,
-   * `projects/my-project/locations/{location}/scalingPolicies/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 defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * The labels associated with this scaling 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 getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * The labels associated with this scaling policy. Each label is a key-value
-   * pair.
-   * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * The labels associated with this scaling 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 map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The labels associated with this scaling 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 map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int FLEET_AUTOSCALER_SETTINGS_FIELD_NUMBER = 5; - private com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleetAutoscalerSettings_; - /** - * - * - *
-   * Fleet autoscaler parameters.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public boolean hasFleetAutoscalerSettings() { - return fleetAutoscalerSettings_ != null; - } - /** - * - * - *
-   * Fleet autoscaler parameters.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings getFleetAutoscalerSettings() { - return fleetAutoscalerSettings_ == null - ? com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.getDefaultInstance() - : fleetAutoscalerSettings_; - } - /** - * - * - *
-   * Fleet autoscaler parameters.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettingsOrBuilder - getFleetAutoscalerSettingsOrBuilder() { - return getFleetAutoscalerSettings(); - } - - public static final int PRIORITY_FIELD_NUMBER = 6; - private com.google.protobuf.Int32Value priority_; - /** - * - * - *
-   * Required. The priority of the policy. A smaller value indicates a higher
-   * priority.
-   * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - public boolean hasPriority() { - return priority_ != null; - } - /** - * - * - *
-   * Required. The priority of the policy. A smaller value indicates a higher
-   * priority.
-   * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - public com.google.protobuf.Int32Value getPriority() { - return priority_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : priority_; - } - /** - * - * - *
-   * Required. The priority of the policy. A smaller value indicates a higher
-   * priority.
-   * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - public com.google.protobuf.Int32ValueOrBuilder getPriorityOrBuilder() { - return getPriority(); - } - - public static final int CLUSTER_SELECTORS_FIELD_NUMBER = 7; - private java.util.List clusterSelectors_; - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public java.util.List getClusterSelectorsList() { - return clusterSelectors_; - } - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public java.util.List - getClusterSelectorsOrBuilderList() { - return clusterSelectors_; - } - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public int getClusterSelectorsCount() { - return clusterSelectors_.size(); - } - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelectors(int index) { - return clusterSelectors_.get(index); - } - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorsOrBuilder( - int index) { - return clusterSelectors_.get(index); - } - - public static final int SCHEDULES_FIELD_NUMBER = 8; - private java.util.List schedules_; - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public java.util.List getSchedulesList() { - return schedules_; - } - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public java.util.List - getSchedulesOrBuilderList() { - return schedules_; - } - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public int getSchedulesCount() { - return schedules_.size(); - } - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index) { - return schedules_.get(index); - } - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index) { - return schedules_.get(index); - } - - public static final int GAME_SERVER_DEPLOYMENT_FIELD_NUMBER = 9; - private volatile java.lang.Object gameServerDeployment_; - /** - * - * - *
-   * The game server deployment for this scaling policy. For example,
-   * "projects/my-project/locations/{location}/gameServerDeployments/my-deployment".
-   * 
- * - * string game_server_deployment = 9; - */ - public java.lang.String getGameServerDeployment() { - java.lang.Object ref = gameServerDeployment_; - 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(); - gameServerDeployment_ = s; - return s; - } - } - /** - * - * - *
-   * The game server deployment for this scaling policy. For example,
-   * "projects/my-project/locations/{location}/gameServerDeployments/my-deployment".
-   * 
- * - * string game_server_deployment = 9; - */ - public com.google.protobuf.ByteString getGameServerDeploymentBytes() { - java.lang.Object ref = gameServerDeployment_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerDeployment_ = 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_); - } - 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 (fleetAutoscalerSettings_ != null) { - output.writeMessage(5, getFleetAutoscalerSettings()); - } - if (priority_ != null) { - output.writeMessage(6, getPriority()); - } - for (int i = 0; i < clusterSelectors_.size(); i++) { - output.writeMessage(7, clusterSelectors_.get(i)); - } - for (int i = 0; i < schedules_.size(); i++) { - output.writeMessage(8, schedules_.get(i)); - } - if (!getGameServerDeploymentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, gameServerDeployment_); - } - 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 entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - if (fleetAutoscalerSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFleetAutoscalerSettings()); - } - if (priority_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPriority()); - } - for (int i = 0; i < clusterSelectors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, clusterSelectors_.get(i)); - } - for (int i = 0; i < schedules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, schedules_.get(i)); - } - if (!getGameServerDeploymentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, gameServerDeployment_); - } - 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.ScalingPolicy)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.ScalingPolicy other = - (com.google.cloud.gaming.v1alpha.ScalingPolicy) obj; - - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasFleetAutoscalerSettings() != other.hasFleetAutoscalerSettings()) return false; - if (hasFleetAutoscalerSettings()) { - if (!getFleetAutoscalerSettings().equals(other.getFleetAutoscalerSettings())) return false; - } - if (hasPriority() != other.hasPriority()) return false; - if (hasPriority()) { - if (!getPriority().equals(other.getPriority())) return false; - } - if (!getClusterSelectorsList().equals(other.getClusterSelectorsList())) return false; - if (!getSchedulesList().equals(other.getSchedulesList())) return false; - if (!getGameServerDeployment().equals(other.getGameServerDeployment())) 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(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasFleetAutoscalerSettings()) { - hash = (37 * hash) + FLEET_AUTOSCALER_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getFleetAutoscalerSettings().hashCode(); - } - if (hasPriority()) { - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + getPriority().hashCode(); - } - if (getClusterSelectorsCount() > 0) { - hash = (37 * hash) + CLUSTER_SELECTORS_FIELD_NUMBER; - hash = (53 * hash) + getClusterSelectorsList().hashCode(); - } - if (getSchedulesCount() > 0) { - hash = (37 * hash) + SCHEDULES_FIELD_NUMBER; - hash = (53 * hash) + getSchedulesList().hashCode(); - } - hash = (37 * hash) + GAME_SERVER_DEPLOYMENT_FIELD_NUMBER; - hash = (53 * hash) + getGameServerDeployment().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.ScalingPolicy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ScalingPolicy 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.ScalingPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ScalingPolicy 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.ScalingPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.ScalingPolicy 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.ScalingPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ScalingPolicy 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.ScalingPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.ScalingPolicy 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.ScalingPolicy 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.ScalingPolicy 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.ScalingPolicy 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; - } - /** - * - * - *
-   * A scaling policy resource.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.ScalingPolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.ScalingPolicy) - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.ScalingPolicy.class, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.ScalingPolicy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getClusterSelectorsFieldBuilder(); - getSchedulesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - if (fleetAutoscalerSettingsBuilder_ == null) { - fleetAutoscalerSettings_ = null; - } else { - fleetAutoscalerSettings_ = null; - fleetAutoscalerSettingsBuilder_ = null; - } - if (priorityBuilder_ == null) { - priority_ = null; - } else { - priority_ = null; - priorityBuilder_ = null; - } - if (clusterSelectorsBuilder_ == null) { - clusterSelectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - clusterSelectorsBuilder_.clear(); - } - if (schedulesBuilder_ == null) { - schedules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - schedulesBuilder_.clear(); - } - gameServerDeployment_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_ScalingPolicy_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ScalingPolicy getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ScalingPolicy build() { - com.google.cloud.gaming.v1alpha.ScalingPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ScalingPolicy buildPartial() { - com.google.cloud.gaming.v1alpha.ScalingPolicy result = - new com.google.cloud.gaming.v1alpha.ScalingPolicy(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (fleetAutoscalerSettingsBuilder_ == null) { - result.fleetAutoscalerSettings_ = fleetAutoscalerSettings_; - } else { - result.fleetAutoscalerSettings_ = fleetAutoscalerSettingsBuilder_.build(); - } - if (priorityBuilder_ == null) { - result.priority_ = priority_; - } else { - result.priority_ = priorityBuilder_.build(); - } - if (clusterSelectorsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - clusterSelectors_ = java.util.Collections.unmodifiableList(clusterSelectors_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.clusterSelectors_ = clusterSelectors_; - } else { - result.clusterSelectors_ = clusterSelectorsBuilder_.build(); - } - if (schedulesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - schedules_ = java.util.Collections.unmodifiableList(schedules_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.schedules_ = schedules_; - } else { - result.schedules_ = schedulesBuilder_.build(); - } - result.gameServerDeployment_ = gameServerDeployment_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.ScalingPolicy) { - return mergeFrom((com.google.cloud.gaming.v1alpha.ScalingPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.ScalingPolicy other) { - if (other == com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasFleetAutoscalerSettings()) { - mergeFleetAutoscalerSettings(other.getFleetAutoscalerSettings()); - } - if (other.hasPriority()) { - mergePriority(other.getPriority()); - } - if (clusterSelectorsBuilder_ == null) { - if (!other.clusterSelectors_.isEmpty()) { - if (clusterSelectors_.isEmpty()) { - clusterSelectors_ = other.clusterSelectors_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureClusterSelectorsIsMutable(); - clusterSelectors_.addAll(other.clusterSelectors_); - } - onChanged(); - } - } else { - if (!other.clusterSelectors_.isEmpty()) { - if (clusterSelectorsBuilder_.isEmpty()) { - clusterSelectorsBuilder_.dispose(); - clusterSelectorsBuilder_ = null; - clusterSelectors_ = other.clusterSelectors_; - bitField0_ = (bitField0_ & ~0x00000040); - clusterSelectorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClusterSelectorsFieldBuilder() - : null; - } else { - clusterSelectorsBuilder_.addAllMessages(other.clusterSelectors_); - } - } - } - if (schedulesBuilder_ == null) { - if (!other.schedules_.isEmpty()) { - if (schedules_.isEmpty()) { - schedules_ = other.schedules_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureSchedulesIsMutable(); - schedules_.addAll(other.schedules_); - } - onChanged(); - } - } else { - if (!other.schedules_.isEmpty()) { - if (schedulesBuilder_.isEmpty()) { - schedulesBuilder_.dispose(); - schedulesBuilder_ = null; - schedules_ = other.schedules_; - bitField0_ = (bitField0_ & ~0x00000080); - schedulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSchedulesFieldBuilder() - : null; - } else { - schedulesBuilder_.addAllMessages(other.schedules_); - } - } - } - if (!other.getGameServerDeployment().isEmpty()) { - gameServerDeployment_ = other.gameServerDeployment_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.ScalingPolicy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gaming.v1alpha.ScalingPolicy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The resource name of the scaling policy, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`.
-     * For example,
-     * `projects/my-project/locations/{location}/scalingPolicies/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 scaling policy, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`.
-     * For example,
-     * `projects/my-project/locations/{location}/scalingPolicies/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 scaling policy, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`.
-     * For example,
-     * `projects/my-project/locations/{location}/scalingPolicies/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 scaling policy, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`.
-     * For example,
-     * `projects/my-project/locations/{location}/scalingPolicies/my-policy`.
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the scaling policy, using the form:
-     * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`.
-     * For example,
-     * `projects/my-project/locations/{location}/scalingPolicies/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 labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * The labels associated with this scaling 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 getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * The labels associated with this scaling policy. Each label is a key-value
-     * pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * The labels associated with this scaling 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 map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The labels associated with this scaling 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 map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The labels associated with this scaling 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 getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * The labels associated with this scaling 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 this scaling policy. Each label is a key-value
-     * pair.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleetAutoscalerSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings, - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.Builder, - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettingsOrBuilder> - fleetAutoscalerSettingsBuilder_; - /** - * - * - *
-     * Fleet autoscaler parameters.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public boolean hasFleetAutoscalerSettings() { - return fleetAutoscalerSettingsBuilder_ != null || fleetAutoscalerSettings_ != null; - } - /** - * - * - *
-     * Fleet autoscaler parameters.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings getFleetAutoscalerSettings() { - if (fleetAutoscalerSettingsBuilder_ == null) { - return fleetAutoscalerSettings_ == null - ? com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.getDefaultInstance() - : fleetAutoscalerSettings_; - } else { - return fleetAutoscalerSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fleet autoscaler parameters.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public Builder setFleetAutoscalerSettings( - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings value) { - if (fleetAutoscalerSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fleetAutoscalerSettings_ = value; - onChanged(); - } else { - fleetAutoscalerSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Fleet autoscaler parameters.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public Builder setFleetAutoscalerSettings( - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.Builder builderForValue) { - if (fleetAutoscalerSettingsBuilder_ == null) { - fleetAutoscalerSettings_ = builderForValue.build(); - onChanged(); - } else { - fleetAutoscalerSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Fleet autoscaler parameters.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public Builder mergeFleetAutoscalerSettings( - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings value) { - if (fleetAutoscalerSettingsBuilder_ == null) { - if (fleetAutoscalerSettings_ != null) { - fleetAutoscalerSettings_ = - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.newBuilder( - fleetAutoscalerSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - fleetAutoscalerSettings_ = value; - } - onChanged(); - } else { - fleetAutoscalerSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Fleet autoscaler parameters.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public Builder clearFleetAutoscalerSettings() { - if (fleetAutoscalerSettingsBuilder_ == null) { - fleetAutoscalerSettings_ = null; - onChanged(); - } else { - fleetAutoscalerSettings_ = null; - fleetAutoscalerSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Fleet autoscaler parameters.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.Builder - getFleetAutoscalerSettingsBuilder() { - - onChanged(); - return getFleetAutoscalerSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fleet autoscaler parameters.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - public com.google.cloud.gaming.v1alpha.FleetAutoscalerSettingsOrBuilder - getFleetAutoscalerSettingsOrBuilder() { - if (fleetAutoscalerSettingsBuilder_ != null) { - return fleetAutoscalerSettingsBuilder_.getMessageOrBuilder(); - } else { - return fleetAutoscalerSettings_ == null - ? com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.getDefaultInstance() - : fleetAutoscalerSettings_; - } - } - /** - * - * - *
-     * Fleet autoscaler parameters.
-     * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings, - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.Builder, - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettingsOrBuilder> - getFleetAutoscalerSettingsFieldBuilder() { - if (fleetAutoscalerSettingsBuilder_ == null) { - fleetAutoscalerSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings, - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings.Builder, - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettingsOrBuilder>( - getFleetAutoscalerSettings(), getParentForChildren(), isClean()); - fleetAutoscalerSettings_ = null; - } - return fleetAutoscalerSettingsBuilder_; - } - - private com.google.protobuf.Int32Value priority_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, - com.google.protobuf.Int32Value.Builder, - com.google.protobuf.Int32ValueOrBuilder> - priorityBuilder_; - /** - * - * - *
-     * Required. The priority of the policy. A smaller value indicates a higher
-     * priority.
-     * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - public boolean hasPriority() { - return priorityBuilder_ != null || priority_ != null; - } - /** - * - * - *
-     * Required. The priority of the policy. A smaller value indicates a higher
-     * priority.
-     * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - 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. A smaller value indicates a higher
-     * priority.
-     * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - 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. A smaller value indicates a higher
-     * priority.
-     * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - 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. A smaller value indicates a higher
-     * priority.
-     * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - 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. A smaller value indicates a higher
-     * priority.
-     * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - public Builder clearPriority() { - if (priorityBuilder_ == null) { - priority_ = null; - onChanged(); - } else { - priority_ = null; - priorityBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The priority of the policy. A smaller value indicates a higher
-     * priority.
-     * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - public com.google.protobuf.Int32Value.Builder getPriorityBuilder() { - - onChanged(); - return getPriorityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The priority of the policy. A smaller value indicates a higher
-     * priority.
-     * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - 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. A smaller value indicates a higher
-     * priority.
-     * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - 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 java.util.List clusterSelectors_ = - java.util.Collections.emptyList(); - - private void ensureClusterSelectorsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - clusterSelectors_ = - new java.util.ArrayList( - clusterSelectors_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder> - clusterSelectorsBuilder_; - - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public java.util.List getClusterSelectorsList() { - if (clusterSelectorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusterSelectors_); - } else { - return clusterSelectorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public int getClusterSelectorsCount() { - if (clusterSelectorsBuilder_ == null) { - return clusterSelectors_.size(); - } else { - return clusterSelectorsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelectors(int index) { - if (clusterSelectorsBuilder_ == null) { - return clusterSelectors_.get(index); - } else { - return clusterSelectorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - 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; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - 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; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - 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; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - 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; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - 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; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - 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; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public Builder addAllClusterSelectors( - java.lang.Iterable values) { - if (clusterSelectorsBuilder_ == null) { - ensureClusterSelectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterSelectors_); - onChanged(); - } else { - clusterSelectorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public Builder clearClusterSelectors() { - if (clusterSelectorsBuilder_ == null) { - clusterSelectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - clusterSelectorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public Builder removeClusterSelectors(int index) { - if (clusterSelectorsBuilder_ == null) { - ensureClusterSelectorsIsMutable(); - clusterSelectors_.remove(index); - onChanged(); - } else { - clusterSelectorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector.Builder getClusterSelectorsBuilder( - int index) { - return getClusterSelectorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorsOrBuilder( - int index) { - if (clusterSelectorsBuilder_ == null) { - return clusterSelectors_.get(index); - } else { - return clusterSelectorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public java.util.List - getClusterSelectorsOrBuilderList() { - if (clusterSelectorsBuilder_ != null) { - return clusterSelectorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusterSelectors_); - } - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addClusterSelectorsBuilder() { - return getClusterSelectorsFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()); - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public com.google.cloud.gaming.v1alpha.LabelSelector.Builder addClusterSelectorsBuilder( - int index) { - return getClusterSelectorsFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.LabelSelector.getDefaultInstance()); - } - /** - * - * - *
-     * Labels used to identify the clusters to which this scaling policy applies.
-     * A cluster is subject to this scaling policy if its labels match any of the
-     * cluster selector entries.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - public java.util.List - getClusterSelectorsBuilderList() { - return getClusterSelectorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder> - getClusterSelectorsFieldBuilder() { - if (clusterSelectorsBuilder_ == null) { - clusterSelectorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.LabelSelector, - com.google.cloud.gaming.v1alpha.LabelSelector.Builder, - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder>( - clusterSelectors_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - clusterSelectors_ = null; - } - return clusterSelectorsBuilder_; - } - - private java.util.List schedules_ = - java.util.Collections.emptyList(); - - private void ensureSchedulesIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - schedules_ = new java.util.ArrayList(schedules_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Schedule, - com.google.cloud.gaming.v1alpha.Schedule.Builder, - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder> - schedulesBuilder_; - - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public java.util.List getSchedulesList() { - if (schedulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(schedules_); - } else { - return schedulesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public int getSchedulesCount() { - if (schedulesBuilder_ == null) { - return schedules_.size(); - } else { - return schedulesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index) { - if (schedulesBuilder_ == null) { - return schedules_.get(index); - } else { - return schedulesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - 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 schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - 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 schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - 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 schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - 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 schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - 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 schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - 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 schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public Builder addAllSchedules( - java.lang.Iterable values) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schedules_); - onChanged(); - } else { - schedulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public Builder clearSchedules() { - if (schedulesBuilder_ == null) { - schedules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - schedulesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public Builder removeSchedules(int index) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.remove(index); - onChanged(); - } else { - schedulesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public com.google.cloud.gaming.v1alpha.Schedule.Builder getSchedulesBuilder(int index) { - return getSchedulesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index) { - if (schedulesBuilder_ == null) { - return schedules_.get(index); - } else { - return schedulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public java.util.List - getSchedulesOrBuilderList() { - if (schedulesBuilder_ != null) { - return schedulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(schedules_); - } - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder() { - return getSchedulesFieldBuilder() - .addBuilder(com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance()); - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public com.google.cloud.gaming.v1alpha.Schedule.Builder addSchedulesBuilder(int index) { - return getSchedulesFieldBuilder() - .addBuilder(index, com.google.cloud.gaming.v1alpha.Schedule.getDefaultInstance()); - } - /** - * - * - *
-     * The schedules to which this scaling policy applies.
-     * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - public java.util.List - getSchedulesBuilderList() { - return getSchedulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Schedule, - com.google.cloud.gaming.v1alpha.Schedule.Builder, - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder> - getSchedulesFieldBuilder() { - if (schedulesBuilder_ == null) { - schedulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.Schedule, - com.google.cloud.gaming.v1alpha.Schedule.Builder, - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder>( - schedules_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); - schedules_ = null; - } - return schedulesBuilder_; - } - - private java.lang.Object gameServerDeployment_ = ""; - /** - * - * - *
-     * The game server deployment for this scaling policy. For example,
-     * "projects/my-project/locations/{location}/gameServerDeployments/my-deployment".
-     * 
- * - * string game_server_deployment = 9; - */ - public java.lang.String getGameServerDeployment() { - java.lang.Object ref = gameServerDeployment_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gameServerDeployment_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The game server deployment for this scaling policy. For example,
-     * "projects/my-project/locations/{location}/gameServerDeployments/my-deployment".
-     * 
- * - * string game_server_deployment = 9; - */ - public com.google.protobuf.ByteString getGameServerDeploymentBytes() { - java.lang.Object ref = gameServerDeployment_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gameServerDeployment_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The game server deployment for this scaling policy. For example,
-     * "projects/my-project/locations/{location}/gameServerDeployments/my-deployment".
-     * 
- * - * string game_server_deployment = 9; - */ - public Builder setGameServerDeployment(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gameServerDeployment_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The game server deployment for this scaling policy. For example,
-     * "projects/my-project/locations/{location}/gameServerDeployments/my-deployment".
-     * 
- * - * string game_server_deployment = 9; - */ - public Builder clearGameServerDeployment() { - - gameServerDeployment_ = getDefaultInstance().getGameServerDeployment(); - onChanged(); - return this; - } - /** - * - * - *
-     * The game server deployment for this scaling policy. For example,
-     * "projects/my-project/locations/{location}/gameServerDeployments/my-deployment".
-     * 
- * - * string game_server_deployment = 9; - */ - public Builder setGameServerDeploymentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gameServerDeployment_ = 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.ScalingPolicy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.ScalingPolicy) - private static final com.google.cloud.gaming.v1alpha.ScalingPolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.ScalingPolicy(); - } - - public static com.google.cloud.gaming.v1alpha.ScalingPolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScalingPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScalingPolicy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.ScalingPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicyName.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicyName.java deleted file mode 100644 index 9a9795a6..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicyName.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.gaming.v1alpha; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -@javax.annotation.Generated("by GAPIC protoc plugin") -public class ScalingPolicyName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/scalingPolicies/{scaling_policy}"); - - private volatile Map fieldValuesMap; - - private final String project; - private final String location; - private final String scalingPolicy; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getScalingPolicy() { - return scalingPolicy; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private ScalingPolicyName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - scalingPolicy = Preconditions.checkNotNull(builder.getScalingPolicy()); - } - - public static ScalingPolicyName of(String project, String location, String scalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setScalingPolicy(scalingPolicy) - .build(); - } - - public static String format(String project, String location, String scalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setScalingPolicy(scalingPolicy) - .build() - .toString(); - } - - public static ScalingPolicyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "ScalingPolicyName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("scaling_policy")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (ScalingPolicyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("location", location); - fieldMapBuilder.put("scalingPolicy", scalingPolicy); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate( - "project", project, "location", location, "scaling_policy", scalingPolicy); - } - - /** Builder for ScalingPolicyName. */ - public static class Builder { - - private String project; - private String location; - private String scalingPolicy; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getScalingPolicy() { - return scalingPolicy; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setScalingPolicy(String scalingPolicy) { - this.scalingPolicy = scalingPolicy; - return this; - } - - private Builder() {} - - private Builder(ScalingPolicyName scalingPolicyName) { - project = scalingPolicyName.project; - location = scalingPolicyName.location; - scalingPolicy = scalingPolicyName.scalingPolicy; - } - - public ScalingPolicyName build() { - return new ScalingPolicyName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof ScalingPolicyName) { - ScalingPolicyName that = (ScalingPolicyName) o; - return (this.project.equals(that.project)) - && (this.location.equals(that.location)) - && (this.scalingPolicy.equals(that.scalingPolicy)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= location.hashCode(); - h *= 1000003; - h ^= scalingPolicy.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicyOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicyOrBuilder.java deleted file mode 100644 index b9db422a..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingPolicyOrBuilder.java +++ /dev/null @@ -1,379 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface ScalingPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.ScalingPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource name of the scaling policy, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`.
-   * For example,
-   * `projects/my-project/locations/{location}/scalingPolicies/my-policy`.
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - * - * - *
-   * The resource name of the scaling policy, using the form:
-   * `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`.
-   * For example,
-   * `projects/my-project/locations/{location}/scalingPolicies/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 this scaling policy. Each label is a key-value
-   * pair.
-   * 
- * - * map<string, string> labels = 4; - */ - int getLabelsCount(); - /** - * - * - *
-   * The labels associated with this scaling 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 getLabels(); - /** - * - * - *
-   * The labels associated with this scaling policy. Each label is a key-value
-   * pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * The labels associated with this scaling 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 this scaling policy. Each label is a key-value
-   * pair.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Fleet autoscaler parameters.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - boolean hasFleetAutoscalerSettings(); - /** - * - * - *
-   * Fleet autoscaler parameters.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettings getFleetAutoscalerSettings(); - /** - * - * - *
-   * Fleet autoscaler parameters.
-   * 
- * - * .google.cloud.gaming.v1alpha.FleetAutoscalerSettings fleet_autoscaler_settings = 5; - * - */ - com.google.cloud.gaming.v1alpha.FleetAutoscalerSettingsOrBuilder - getFleetAutoscalerSettingsOrBuilder(); - - /** - * - * - *
-   * Required. The priority of the policy. A smaller value indicates a higher
-   * priority.
-   * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - boolean hasPriority(); - /** - * - * - *
-   * Required. The priority of the policy. A smaller value indicates a higher
-   * priority.
-   * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - com.google.protobuf.Int32Value getPriority(); - /** - * - * - *
-   * Required. The priority of the policy. A smaller value indicates a higher
-   * priority.
-   * 
- * - * .google.protobuf.Int32Value priority = 6; - */ - com.google.protobuf.Int32ValueOrBuilder getPriorityOrBuilder(); - - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - java.util.List getClusterSelectorsList(); - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - com.google.cloud.gaming.v1alpha.LabelSelector getClusterSelectors(int index); - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - int getClusterSelectorsCount(); - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - java.util.List - getClusterSelectorsOrBuilderList(); - /** - * - * - *
-   * Labels used to identify the clusters to which this scaling policy applies.
-   * A cluster is subject to this scaling policy if its labels match any of the
-   * cluster selector entries.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.LabelSelector cluster_selectors = 7; - */ - com.google.cloud.gaming.v1alpha.LabelSelectorOrBuilder getClusterSelectorsOrBuilder(int index); - - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - java.util.List getSchedulesList(); - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - com.google.cloud.gaming.v1alpha.Schedule getSchedules(int index); - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - int getSchedulesCount(); - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - java.util.List - getSchedulesOrBuilderList(); - /** - * - * - *
-   * The schedules to which this scaling policy applies.
-   * 
- * - * repeated .google.cloud.gaming.v1alpha.Schedule schedules = 8; - */ - com.google.cloud.gaming.v1alpha.ScheduleOrBuilder getSchedulesOrBuilder(int index); - - /** - * - * - *
-   * The game server deployment for this scaling policy. For example,
-   * "projects/my-project/locations/{location}/gameServerDeployments/my-deployment".
-   * 
- * - * string game_server_deployment = 9; - */ - java.lang.String getGameServerDeployment(); - /** - * - * - *
-   * The game server deployment for this scaling policy. For example,
-   * "projects/my-project/locations/{location}/gameServerDeployments/my-deployment".
-   * 
- * - * string game_server_deployment = 9; - */ - com.google.protobuf.ByteString getGameServerDeploymentBytes(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Schedule.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Schedule.java index c411be92..fcb0bb5a 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Schedule.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Schedule.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,12 @@ private Schedule() { cronSpec_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Schedule(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -61,7 +67,6 @@ private Schedule( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -168,6 +173,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -180,6 +187,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -207,6 +216,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTime_ != null; @@ -219,6 +230,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; @@ -247,6 +260,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * * .google.protobuf.Duration cron_job_duration = 3; + * + * @return Whether the cronJobDuration field is set. */ public boolean hasCronJobDuration() { return cronJobDuration_ != null; @@ -260,6 +275,8 @@ public boolean hasCronJobDuration() { * * * .google.protobuf.Duration cron_job_duration = 3; + * + * @return The cronJobDuration. */ public com.google.protobuf.Duration getCronJobDuration() { return cronJobDuration_ == null @@ -292,6 +309,8 @@ public com.google.protobuf.DurationOrBuilder getCronJobDurationOrBuilder() { * * * string cron_spec = 4; + * + * @return The cronSpec. */ public java.lang.String getCronSpec() { java.lang.Object ref = cronSpec_; @@ -314,6 +333,8 @@ public java.lang.String getCronSpec() { * * * string cron_spec = 4; + * + * @return The bytes for cronSpec. */ public com.google.protobuf.ByteString getCronSpecBytes() { java.lang.Object ref = cronSpec_; @@ -747,6 +768,8 @@ public Builder mergeFrom( * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -759,6 +782,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -922,6 +947,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; @@ -934,6 +961,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { if (endTimeBuilder_ == null) { @@ -1098,6 +1127,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * * .google.protobuf.Duration cron_job_duration = 3; + * + * @return Whether the cronJobDuration field is set. */ public boolean hasCronJobDuration() { return cronJobDurationBuilder_ != null || cronJobDuration_ != null; @@ -1111,6 +1142,8 @@ public boolean hasCronJobDuration() { * * * .google.protobuf.Duration cron_job_duration = 3; + * + * @return The cronJobDuration. */ public com.google.protobuf.Duration getCronJobDuration() { if (cronJobDurationBuilder_ == null) { @@ -1284,6 +1317,8 @@ public com.google.protobuf.DurationOrBuilder getCronJobDurationOrBuilder() { * * * string cron_spec = 4; + * + * @return The cronSpec. */ public java.lang.String getCronSpec() { java.lang.Object ref = cronSpec_; @@ -1306,6 +1341,8 @@ public java.lang.String getCronSpec() { * * * string cron_spec = 4; + * + * @return The bytes for cronSpec. */ public com.google.protobuf.ByteString getCronSpecBytes() { java.lang.Object ref = cronSpec_; @@ -1328,6 +1365,9 @@ public com.google.protobuf.ByteString getCronSpecBytes() { * * * string cron_spec = 4; + * + * @param value The cronSpec to set. + * @return This builder for chaining. */ public Builder setCronSpec(java.lang.String value) { if (value == null) { @@ -1348,6 +1388,8 @@ public Builder setCronSpec(java.lang.String value) { * * * string cron_spec = 4; + * + * @return This builder for chaining. */ public Builder clearCronSpec() { @@ -1365,6 +1407,9 @@ public Builder clearCronSpec() { * * * string cron_spec = 4; + * + * @param value The bytes for cronSpec to set. + * @return This builder for chaining. */ public Builder setCronSpecBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScheduleOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScheduleOrBuilder.java index ff3a8273..f598ca28 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScheduleOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScheduleOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,6 +31,8 @@ public interface ScheduleOrBuilder * * * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -41,6 +43,8 @@ public interface ScheduleOrBuilder * * * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** @@ -62,6 +66,8 @@ public interface ScheduleOrBuilder * * * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. */ boolean hasEndTime(); /** @@ -72,6 +78,8 @@ public interface ScheduleOrBuilder * * * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** @@ -94,6 +102,8 @@ public interface ScheduleOrBuilder * * * .google.protobuf.Duration cron_job_duration = 3; + * + * @return Whether the cronJobDuration field is set. */ boolean hasCronJobDuration(); /** @@ -105,6 +115,8 @@ public interface ScheduleOrBuilder * * * .google.protobuf.Duration cron_job_duration = 3; + * + * @return The cronJobDuration. */ com.google.protobuf.Duration getCronJobDuration(); /** @@ -129,6 +141,8 @@ public interface ScheduleOrBuilder * * * string cron_spec = 4; + * + * @return The cronSpec. */ java.lang.String getCronSpec(); /** @@ -141,6 +155,8 @@ public interface ScheduleOrBuilder * * * string cron_spec = 4; + * + * @return The bytes for cronSpec. */ com.google.protobuf.ByteString getCronSpecBytes(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SetRolloutTargetRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SetRolloutTargetRequest.java deleted file mode 100644 index 4bbeddc6..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SetRolloutTargetRequest.java +++ /dev/null @@ -1,1221 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// 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.SetRolloutTarget.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.SetRolloutTargetRequest} - */ -public final class SetRolloutTargetRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.SetRolloutTargetRequest) - SetRolloutTargetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetRolloutTargetRequest.newBuilder() to construct. - private SetRolloutTargetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetRolloutTargetRequest() { - name_ = ""; - clusterPercentageSelector_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetRolloutTargetRequest( - 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: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - clusterPercentageSelector_ = - new java.util.ArrayList< - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector>(); - mutable_bitField0_ |= 0x00000002; - } - clusterPercentageSelector_.add( - input.readMessage( - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.parser(), - extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - clusterPercentageSelector_ = - java.util.Collections.unmodifiableList(clusterPercentageSelector_); - } - 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_SetRolloutTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_SetRolloutTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest.class, - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest.Builder.class); - } - - private int bitField0_; - 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; - } - } - - public static final int CLUSTER_PERCENTAGE_SELECTOR_FIELD_NUMBER = 2; - private java.util.List - clusterPercentageSelector_; - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public java.util.List - getClusterPercentageSelectorList() { - return clusterPercentageSelector_; - } - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public java.util.List< - ? extends com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder> - getClusterPercentageSelectorOrBuilderList() { - return clusterPercentageSelector_; - } - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public int getClusterPercentageSelectorCount() { - return clusterPercentageSelector_.size(); - } - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector getClusterPercentageSelector( - int index) { - return clusterPercentageSelector_.get(index); - } - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder - getClusterPercentageSelectorOrBuilder(int index) { - return clusterPercentageSelector_.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_); - } - for (int i = 0; i < clusterPercentageSelector_.size(); i++) { - output.writeMessage(2, clusterPercentageSelector_.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_); - } - for (int i = 0; i < clusterPercentageSelector_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, clusterPercentageSelector_.get(i)); - } - 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.SetRolloutTargetRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest other = - (com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getClusterPercentageSelectorList().equals(other.getClusterPercentageSelectorList())) - 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(); - if (getClusterPercentageSelectorCount() > 0) { - hash = (37 * hash) + CLUSTER_PERCENTAGE_SELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getClusterPercentageSelectorList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest 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.SetRolloutTargetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest 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.SetRolloutTargetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest 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.SetRolloutTargetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest 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.SetRolloutTargetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest 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.SetRolloutTargetRequest 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.SetRolloutTargetRequest 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.SetRolloutTargetRequest 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.SetRolloutTarget.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.SetRolloutTargetRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.SetRolloutTargetRequest) - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_SetRolloutTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_SetRolloutTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest.class, - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getClusterPercentageSelectorFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (clusterPercentageSelectorBuilder_ == null) { - clusterPercentageSelector_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - clusterPercentageSelectorBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_SetRolloutTargetRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest build() { - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest buildPartial() { - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest result = - new com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.name_ = name_; - if (clusterPercentageSelectorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - clusterPercentageSelector_ = - java.util.Collections.unmodifiableList(clusterPercentageSelector_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.clusterPercentageSelector_ = clusterPercentageSelector_; - } else { - result.clusterPercentageSelector_ = clusterPercentageSelectorBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest other) { - if (other == com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (clusterPercentageSelectorBuilder_ == null) { - if (!other.clusterPercentageSelector_.isEmpty()) { - if (clusterPercentageSelector_.isEmpty()) { - clusterPercentageSelector_ = other.clusterPercentageSelector_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureClusterPercentageSelectorIsMutable(); - clusterPercentageSelector_.addAll(other.clusterPercentageSelector_); - } - onChanged(); - } - } else { - if (!other.clusterPercentageSelector_.isEmpty()) { - if (clusterPercentageSelectorBuilder_.isEmpty()) { - clusterPercentageSelectorBuilder_.dispose(); - clusterPercentageSelectorBuilder_ = null; - clusterPercentageSelector_ = other.clusterPercentageSelector_; - bitField0_ = (bitField0_ & ~0x00000002); - clusterPercentageSelectorBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClusterPercentageSelectorFieldBuilder() - : null; - } else { - clusterPercentageSelectorBuilder_.addAllMessages(other.clusterPercentageSelector_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private 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)) { - 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; - } - - private java.util.List - clusterPercentageSelector_ = java.util.Collections.emptyList(); - - private void ensureClusterPercentageSelectorIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - clusterPercentageSelector_ = - new java.util.ArrayList( - clusterPercentageSelector_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder> - clusterPercentageSelectorBuilder_; - - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public java.util.List - getClusterPercentageSelectorList() { - if (clusterPercentageSelectorBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusterPercentageSelector_); - } else { - return clusterPercentageSelectorBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public int getClusterPercentageSelectorCount() { - if (clusterPercentageSelectorBuilder_ == null) { - return clusterPercentageSelector_.size(); - } else { - return clusterPercentageSelectorBuilder_.getCount(); - } - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector getClusterPercentageSelector( - int index) { - if (clusterPercentageSelectorBuilder_ == null) { - return clusterPercentageSelector_.get(index); - } else { - return clusterPercentageSelectorBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public Builder setClusterPercentageSelector( - int index, com.google.cloud.gaming.v1alpha.ClusterPercentageSelector value) { - if (clusterPercentageSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterPercentageSelectorIsMutable(); - clusterPercentageSelector_.set(index, value); - onChanged(); - } else { - clusterPercentageSelectorBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public Builder setClusterPercentageSelector( - int index, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder builderForValue) { - if (clusterPercentageSelectorBuilder_ == null) { - ensureClusterPercentageSelectorIsMutable(); - clusterPercentageSelector_.set(index, builderForValue.build()); - onChanged(); - } else { - clusterPercentageSelectorBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public Builder addClusterPercentageSelector( - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector value) { - if (clusterPercentageSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterPercentageSelectorIsMutable(); - clusterPercentageSelector_.add(value); - onChanged(); - } else { - clusterPercentageSelectorBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public Builder addClusterPercentageSelector( - int index, com.google.cloud.gaming.v1alpha.ClusterPercentageSelector value) { - if (clusterPercentageSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterPercentageSelectorIsMutable(); - clusterPercentageSelector_.add(index, value); - onChanged(); - } else { - clusterPercentageSelectorBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public Builder addClusterPercentageSelector( - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder builderForValue) { - if (clusterPercentageSelectorBuilder_ == null) { - ensureClusterPercentageSelectorIsMutable(); - clusterPercentageSelector_.add(builderForValue.build()); - onChanged(); - } else { - clusterPercentageSelectorBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public Builder addClusterPercentageSelector( - int index, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder builderForValue) { - if (clusterPercentageSelectorBuilder_ == null) { - ensureClusterPercentageSelectorIsMutable(); - clusterPercentageSelector_.add(index, builderForValue.build()); - onChanged(); - } else { - clusterPercentageSelectorBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public Builder addAllClusterPercentageSelector( - java.lang.Iterable - values) { - if (clusterPercentageSelectorBuilder_ == null) { - ensureClusterPercentageSelectorIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterPercentageSelector_); - onChanged(); - } else { - clusterPercentageSelectorBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public Builder clearClusterPercentageSelector() { - if (clusterPercentageSelectorBuilder_ == null) { - clusterPercentageSelector_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - clusterPercentageSelectorBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public Builder removeClusterPercentageSelector(int index) { - if (clusterPercentageSelectorBuilder_ == null) { - ensureClusterPercentageSelectorIsMutable(); - clusterPercentageSelector_.remove(index); - onChanged(); - } else { - clusterPercentageSelectorBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder - getClusterPercentageSelectorBuilder(int index) { - return getClusterPercentageSelectorFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder - getClusterPercentageSelectorOrBuilder(int index) { - if (clusterPercentageSelectorBuilder_ == null) { - return clusterPercentageSelector_.get(index); - } else { - return clusterPercentageSelectorBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public java.util.List< - ? extends com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder> - getClusterPercentageSelectorOrBuilderList() { - if (clusterPercentageSelectorBuilder_ != null) { - return clusterPercentageSelectorBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusterPercentageSelector_); - } - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder - addClusterPercentageSelectorBuilder() { - return getClusterPercentageSelectorFieldBuilder() - .addBuilder( - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder - addClusterPercentageSelectorBuilder(int index) { - return getClusterPercentageSelectorFieldBuilder() - .addBuilder( - index, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The percentage of game servers that should run the new game
-     * server template in the specified clusters. Default is 0.
-     * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - public java.util.List - getClusterPercentageSelectorBuilderList() { - return getClusterPercentageSelectorFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder> - getClusterPercentageSelectorFieldBuilder() { - if (clusterPercentageSelectorBuilder_ == null) { - clusterPercentageSelectorBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector.Builder, - com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder>( - clusterPercentageSelector_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - clusterPercentageSelector_ = null; - } - return clusterPercentageSelectorBuilder_; - } - - @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.SetRolloutTargetRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.SetRolloutTargetRequest) - private static final com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest(); - } - - public static com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetRolloutTargetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetRolloutTargetRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.SetRolloutTargetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SetRolloutTargetRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SetRolloutTargetRequestOrBuilder.java deleted file mode 100644 index 6f748a6e..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SetRolloutTargetRequestOrBuilder.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface SetRolloutTargetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.SetRolloutTargetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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(); - - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - java.util.List - getClusterPercentageSelectorList(); - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - com.google.cloud.gaming.v1alpha.ClusterPercentageSelector getClusterPercentageSelector(int index); - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - int getClusterPercentageSelectorCount(); - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - java.util.List - getClusterPercentageSelectorOrBuilderList(); - /** - * - * - *
-   * Required. The percentage of game servers that should run the new game
-   * server template in the specified clusters. Default is 0.
-   * 
- * - * - * repeated .google.cloud.gaming.v1alpha.ClusterPercentageSelector cluster_percentage_selector = 2; - * - */ - com.google.cloud.gaming.v1alpha.ClusterPercentageSelectorOrBuilder - getClusterPercentageSelectorOrBuilder(int index); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSource.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSource.java new file mode 100644 index 00000000..e44483b3 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSource.java @@ -0,0 +1,823 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Encapsulates fleet spec and autoscaler spec sources.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.SpecSource} + */ +public final class SpecSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.SpecSource) + SpecSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpecSource.newBuilder() to construct. + private SpecSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpecSource() { + gameServerConfigName_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpecSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SpecSource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + gameServerConfigName_ = s; + break; + } + case 18: + { + 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.Common + .internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_SpecSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.SpecSource.class, + com.google.cloud.gaming.v1alpha.SpecSource.Builder.class); + } + + public static final int GAME_SERVER_CONFIG_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object gameServerConfigName_; + /** + * + * + *
+   * The game server config resource. It is of the form
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
+   * 
+ * + * string game_server_config_name = 1; + * + * @return The gameServerConfigName. + */ + public java.lang.String getGameServerConfigName() { + java.lang.Object ref = gameServerConfigName_; + 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(); + gameServerConfigName_ = s; + return s; + } + } + /** + * + * + *
+   * The game server config resource. It is of the form
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
+   * 
+ * + * string game_server_config_name = 1; + * + * @return The bytes for gameServerConfigName. + */ + public com.google.protobuf.ByteString getGameServerConfigNameBytes() { + java.lang.Object ref = gameServerConfigName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerConfigName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of the fleet config or scaling config that is used to derive
+   * the fleet or fleet autoscaler spec.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + 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 name of the fleet config or scaling config that is used to derive
+   * the fleet or fleet autoscaler spec.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + 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 (!getGameServerConfigNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gameServerConfigName_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGameServerConfigNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gameServerConfigName_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.SpecSource)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.SpecSource other = + (com.google.cloud.gaming.v1alpha.SpecSource) obj; + + if (!getGameServerConfigName().equals(other.getGameServerConfigName())) return false; + 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) + GAME_SERVER_CONFIG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGameServerConfigName().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.SpecSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.SpecSource 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.SpecSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.SpecSource 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.SpecSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.SpecSource 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.SpecSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.SpecSource 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.SpecSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.SpecSource 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.SpecSource 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.SpecSource 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.SpecSource 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; + } + /** + * + * + *
+   * Encapsulates fleet spec and autoscaler spec sources.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.SpecSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.SpecSource) + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_SpecSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.SpecSource.class, + com.google.cloud.gaming.v1alpha.SpecSource.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.SpecSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + gameServerConfigName_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_SpecSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.SpecSource getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.SpecSource build() { + com.google.cloud.gaming.v1alpha.SpecSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.SpecSource buildPartial() { + com.google.cloud.gaming.v1alpha.SpecSource result = + new com.google.cloud.gaming.v1alpha.SpecSource(this); + result.gameServerConfigName_ = gameServerConfigName_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.SpecSource) { + return mergeFrom((com.google.cloud.gaming.v1alpha.SpecSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.SpecSource other) { + if (other == com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance()) return this; + if (!other.getGameServerConfigName().isEmpty()) { + gameServerConfigName_ = other.gameServerConfigName_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.SpecSource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gaming.v1alpha.SpecSource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object gameServerConfigName_ = ""; + /** + * + * + *
+     * The game server config resource. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
+     * 
+ * + * string game_server_config_name = 1; + * + * @return The gameServerConfigName. + */ + public java.lang.String getGameServerConfigName() { + java.lang.Object ref = gameServerConfigName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gameServerConfigName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The game server config resource. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
+     * 
+ * + * string game_server_config_name = 1; + * + * @return The bytes for gameServerConfigName. + */ + public com.google.protobuf.ByteString getGameServerConfigNameBytes() { + java.lang.Object ref = gameServerConfigName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerConfigName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The game server config resource. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
+     * 
+ * + * string game_server_config_name = 1; + * + * @param value The gameServerConfigName to set. + * @return This builder for chaining. + */ + public Builder setGameServerConfigName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gameServerConfigName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The game server config resource. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
+     * 
+ * + * string game_server_config_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearGameServerConfigName() { + + gameServerConfigName_ = getDefaultInstance().getGameServerConfigName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The game server config resource. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
+     * 
+ * + * string game_server_config_name = 1; + * + * @param value The bytes for gameServerConfigName to set. + * @return This builder for chaining. + */ + public Builder setGameServerConfigNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gameServerConfigName_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the fleet config or scaling config that is used to derive
+     * the fleet or fleet autoscaler spec.
+     * 
+ * + * string name = 2; + * + * @return The name. + */ + 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 name of the fleet config or scaling config that is used to derive
+     * the fleet or fleet autoscaler spec.
+     * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + 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 name of the fleet config or scaling config that is used to derive
+     * the fleet or fleet autoscaler spec.
+     * 
+ * + * string name = 2; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the fleet config or scaling config that is used to derive
+     * the fleet or fleet autoscaler spec.
+     * 
+ * + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the fleet config or scaling config that is used to derive
+     * the fleet or fleet autoscaler spec.
+     * 
+ * + * string name = 2; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + 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.SpecSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.SpecSource) + private static final com.google.cloud.gaming.v1alpha.SpecSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.SpecSource(); + } + + public static com.google.cloud.gaming.v1alpha.SpecSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpecSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpecSource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.SpecSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSourceOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSourceOrBuilder.java new file mode 100644 index 00000000..a1176a25 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSourceOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +public interface SpecSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.SpecSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The game server config resource. It is of the form
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
+   * 
+ * + * string game_server_config_name = 1; + * + * @return The gameServerConfigName. + */ + java.lang.String getGameServerConfigName(); + /** + * + * + *
+   * The game server config resource. It is of the form
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`
+   * 
+ * + * string game_server_config_name = 1; + * + * @return The bytes for gameServerConfigName. + */ + com.google.protobuf.ByteString getGameServerConfigNameBytes(); + + /** + * + * + *
+   * The name of the fleet config or scaling config that is used to derive
+   * the fleet or fleet autoscaler spec.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the fleet config or scaling config that is used to derive
+   * the fleet or fleet autoscaler spec.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/StartRolloutRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/StartRolloutRequest.java deleted file mode 100644 index 4bef8f94..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/StartRolloutRequest.java +++ /dev/null @@ -1,901 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// 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.StartRollout.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.StartRolloutRequest} - */ -public final class StartRolloutRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.StartRolloutRequest) - StartRolloutRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use StartRolloutRequest.newBuilder() to construct. - private StartRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StartRolloutRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private StartRolloutRequest( - 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.cloud.gaming.v1alpha.GameServerTemplate.Builder subBuilder = null; - if (newGameServerTemplate_ != null) { - subBuilder = newGameServerTemplate_.toBuilder(); - } - newGameServerTemplate_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.GameServerTemplate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(newGameServerTemplate_); - newGameServerTemplate_ = 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.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.StartRolloutRequest.class, - com.google.cloud.gaming.v1alpha.StartRolloutRequest.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; - } - } - - public static final int NEW_GAME_SERVER_TEMPLATE_FIELD_NUMBER = 2; - private com.google.cloud.gaming.v1alpha.GameServerTemplate newGameServerTemplate_; - /** - * - * - *
-   * Required. The game server template for the new rollout.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public boolean hasNewGameServerTemplate() { - return newGameServerTemplate_ != null; - } - /** - * - * - *
-   * Required. The game server template for the new rollout.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public com.google.cloud.gaming.v1alpha.GameServerTemplate getNewGameServerTemplate() { - return newGameServerTemplate_ == null - ? com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance() - : newGameServerTemplate_; - } - /** - * - * - *
-   * Required. The game server template for the new rollout.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder - getNewGameServerTemplateOrBuilder() { - return getNewGameServerTemplate(); - } - - 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 (newGameServerTemplate_ != null) { - output.writeMessage(2, getNewGameServerTemplate()); - } - 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 (newGameServerTemplate_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNewGameServerTemplate()); - } - 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.StartRolloutRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.StartRolloutRequest other = - (com.google.cloud.gaming.v1alpha.StartRolloutRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasNewGameServerTemplate() != other.hasNewGameServerTemplate()) return false; - if (hasNewGameServerTemplate()) { - if (!getNewGameServerTemplate().equals(other.getNewGameServerTemplate())) 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(); - if (hasNewGameServerTemplate()) { - hash = (37 * hash) + NEW_GAME_SERVER_TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getNewGameServerTemplate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.StartRolloutRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.StartRolloutRequest 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.StartRolloutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.StartRolloutRequest 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.StartRolloutRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.StartRolloutRequest 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.StartRolloutRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.StartRolloutRequest 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.StartRolloutRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.StartRolloutRequest 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.StartRolloutRequest 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.StartRolloutRequest 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.StartRolloutRequest 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.StartRollout.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.StartRolloutRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.StartRolloutRequest) - com.google.cloud.gaming.v1alpha.StartRolloutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.StartRolloutRequest.class, - com.google.cloud.gaming.v1alpha.StartRolloutRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.StartRolloutRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (newGameServerTemplateBuilder_ == null) { - newGameServerTemplate_ = null; - } else { - newGameServerTemplate_ = null; - newGameServerTemplateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.GameServerDeployments - .internal_static_google_cloud_gaming_v1alpha_StartRolloutRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.StartRolloutRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.StartRolloutRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.StartRolloutRequest build() { - com.google.cloud.gaming.v1alpha.StartRolloutRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.StartRolloutRequest buildPartial() { - com.google.cloud.gaming.v1alpha.StartRolloutRequest result = - new com.google.cloud.gaming.v1alpha.StartRolloutRequest(this); - result.name_ = name_; - if (newGameServerTemplateBuilder_ == null) { - result.newGameServerTemplate_ = newGameServerTemplate_; - } else { - result.newGameServerTemplate_ = newGameServerTemplateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.StartRolloutRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.StartRolloutRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.StartRolloutRequest other) { - if (other == com.google.cloud.gaming.v1alpha.StartRolloutRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasNewGameServerTemplate()) { - mergeNewGameServerTemplate(other.getNewGameServerTemplate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.StartRolloutRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.StartRolloutRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private 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)) { - 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; - } - - private com.google.cloud.gaming.v1alpha.GameServerTemplate newGameServerTemplate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerTemplate, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder, - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder> - newGameServerTemplateBuilder_; - /** - * - * - *
-     * Required. The game server template for the new rollout.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public boolean hasNewGameServerTemplate() { - return newGameServerTemplateBuilder_ != null || newGameServerTemplate_ != null; - } - /** - * - * - *
-     * Required. The game server template for the new rollout.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public com.google.cloud.gaming.v1alpha.GameServerTemplate getNewGameServerTemplate() { - if (newGameServerTemplateBuilder_ == null) { - return newGameServerTemplate_ == null - ? com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance() - : newGameServerTemplate_; - } else { - return newGameServerTemplateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The game server template for the new rollout.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public Builder setNewGameServerTemplate( - com.google.cloud.gaming.v1alpha.GameServerTemplate value) { - if (newGameServerTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - newGameServerTemplate_ = value; - onChanged(); - } else { - newGameServerTemplateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server template for the new rollout.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public Builder setNewGameServerTemplate( - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder builderForValue) { - if (newGameServerTemplateBuilder_ == null) { - newGameServerTemplate_ = builderForValue.build(); - onChanged(); - } else { - newGameServerTemplateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The game server template for the new rollout.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public Builder mergeNewGameServerTemplate( - com.google.cloud.gaming.v1alpha.GameServerTemplate value) { - if (newGameServerTemplateBuilder_ == null) { - if (newGameServerTemplate_ != null) { - newGameServerTemplate_ = - com.google.cloud.gaming.v1alpha.GameServerTemplate.newBuilder(newGameServerTemplate_) - .mergeFrom(value) - .buildPartial(); - } else { - newGameServerTemplate_ = value; - } - onChanged(); - } else { - newGameServerTemplateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The game server template for the new rollout.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public Builder clearNewGameServerTemplate() { - if (newGameServerTemplateBuilder_ == null) { - newGameServerTemplate_ = null; - onChanged(); - } else { - newGameServerTemplate_ = null; - newGameServerTemplateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The game server template for the new rollout.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder - getNewGameServerTemplateBuilder() { - - onChanged(); - return getNewGameServerTemplateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The game server template for the new rollout.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - public com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder - getNewGameServerTemplateOrBuilder() { - if (newGameServerTemplateBuilder_ != null) { - return newGameServerTemplateBuilder_.getMessageOrBuilder(); - } else { - return newGameServerTemplate_ == null - ? com.google.cloud.gaming.v1alpha.GameServerTemplate.getDefaultInstance() - : newGameServerTemplate_; - } - } - /** - * - * - *
-     * Required. The game server template for the new rollout.
-     * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerTemplate, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder, - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder> - getNewGameServerTemplateFieldBuilder() { - if (newGameServerTemplateBuilder_ == null) { - newGameServerTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.GameServerTemplate, - com.google.cloud.gaming.v1alpha.GameServerTemplate.Builder, - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder>( - getNewGameServerTemplate(), getParentForChildren(), isClean()); - newGameServerTemplate_ = null; - } - return newGameServerTemplateBuilder_; - } - - @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.StartRolloutRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.StartRolloutRequest) - private static final com.google.cloud.gaming.v1alpha.StartRolloutRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.StartRolloutRequest(); - } - - public static com.google.cloud.gaming.v1alpha.StartRolloutRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartRolloutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartRolloutRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.StartRolloutRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/StartRolloutRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/StartRolloutRequestOrBuilder.java deleted file mode 100644 index 73acbae8..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/StartRolloutRequestOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/game_server_deployments.proto - -package com.google.cloud.gaming.v1alpha; - -public interface StartRolloutRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.StartRolloutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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(); - - /** - * - * - *
-   * Required. The game server template for the new rollout.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - boolean hasNewGameServerTemplate(); - /** - * - * - *
-   * Required. The game server template for the new rollout.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - com.google.cloud.gaming.v1alpha.GameServerTemplate getNewGameServerTemplate(); - /** - * - * - *
-   * Required. The game server template for the new rollout.
-   * 
- * - * .google.cloud.gaming.v1alpha.GameServerTemplate new_game_server_template = 2; - */ - com.google.cloud.gaming.v1alpha.GameServerTemplateOrBuilder getNewGameServerTemplateOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetails.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetails.java new file mode 100644 index 00000000..0edd3cb6 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetails.java @@ -0,0 +1,4610 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Details about the Agones resources.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.TargetDetails} + */ +public final class TargetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetDetails) + TargetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TargetDetails.newBuilder() to construct. + private TargetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TargetDetails() { + gameServerClusterName_ = ""; + gameServerDeploymentName_ = ""; + fleetDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TargetDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TargetDetails( + 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(); + + gameServerClusterName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + gameServerDeploymentName_ = s; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fleetDetails_ = + new java.util.ArrayList< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails>(); + mutable_bitField0_ |= 0x00000001; + } + fleetDetails_.add( + input.readMessage( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.parser(), + extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + fleetDetails_ = java.util.Collections.unmodifiableList(fleetDetails_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetDetails.class, + com.google.cloud.gaming.v1alpha.TargetDetails.Builder.class); + } + + public interface TargetFleetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Reference to target fleet.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + * + * @return Whether the fleet field is set. + */ + boolean hasFleet(); + /** + * + * + *
+     * Reference to target fleet.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + * + * @return The fleet. + */ + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet getFleet(); + /** + * + * + *
+     * Reference to target fleet.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + */ + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder + getFleetOrBuilder(); + + /** + * + * + *
+     * Reference to target fleet autoscaling policy.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + * + * @return Whether the autoscaler field is set. + */ + boolean hasAutoscaler(); + /** + * + * + *
+     * Reference to target fleet autoscaling policy.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + * + * @return The autoscaler. + */ + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + getAutoscaler(); + /** + * + * + *
+     * Reference to target fleet autoscaling policy.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + */ + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscalerOrBuilder + getAutoscalerOrBuilder(); + } + /** + * + * + *
+   * Details of the target fleet.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails} + */ + public static final class TargetFleetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) + TargetFleetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TargetFleetDetails.newBuilder() to construct. + private TargetFleetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TargetFleetDetails() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TargetFleetDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TargetFleetDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.TargetDetails.TargetFleetDetails.TargetFleet.Builder + subBuilder = null; + if (fleet_ != null) { + subBuilder = fleet_.toBuilder(); + } + fleet_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fleet_); + fleet_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.Builder + subBuilder = null; + if (autoscaler_ != null) { + subBuilder = autoscaler_.toBuilder(); + } + autoscaler_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaler_); + autoscaler_ = 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.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.class, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder.class); + } + + public interface TargetFleetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The name of the Agones game server fleet.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+       * The name of the Agones game server fleet.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * The fleet spec source.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return Whether the specSource field is set. + */ + boolean hasSpecSource(); + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * The fleet spec source.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return The specSource. + */ + com.google.cloud.gaming.v1alpha.SpecSource getSpecSource(); + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * The fleet spec source.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder(); + } + /** + * + * + *
+     * Target fleet specification.
+     * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet} + */ + public static final class TargetFleet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) + TargetFleetOrBuilder { + private static final long serialVersionUID = 0L; + // Use TargetFleet.newBuilder() to construct. + private TargetFleet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TargetFleet() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TargetFleet(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TargetFleet( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.cloud.gaming.v1alpha.SpecSource.Builder subBuilder = null; + if (specSource_ != null) { + subBuilder = specSource_.toBuilder(); + } + specSource_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.SpecSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(specSource_); + specSource_ = 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.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.class, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+       * The name of the Agones game server fleet.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 name of the Agones game server fleet.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 SPEC_SOURCE_FIELD_NUMBER = 2; + private com.google.cloud.gaming.v1alpha.SpecSource specSource_; + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * The fleet spec source.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return Whether the specSource field is set. + */ + public boolean hasSpecSource() { + return specSource_ != null; + } + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * The fleet spec source.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return The specSource. + */ + public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * The fleet spec source.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { + return getSpecSource(); + } + + 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 (specSource_ != null) { + output.writeMessage(2, getSpecSource()); + } + 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 (specSource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpecSource()); + } + 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.TargetDetails.TargetFleetDetails.TargetFleet)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet other = + (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) obj; + + if (!getName().equals(other.getName())) return false; + if (hasSpecSource() != other.hasSpecSource()) return false; + if (hasSpecSource()) { + if (!getSpecSource().equals(other.getSpecSource())) 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(); + if (hasSpecSource()) { + hash = (37 * hash) + SPEC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSpecSource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + 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.TargetDetails.TargetFleetDetails.TargetFleet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + 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.TargetDetails.TargetFleetDetails.TargetFleet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + 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.TargetDetails.TargetFleetDetails.TargetFleet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + 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.TargetDetails.TargetFleetDetails.TargetFleet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + 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.TargetDetails.TargetFleetDetails.TargetFleet + 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.TargetDetails.TargetFleetDetails.TargetFleet + 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.TargetDetails.TargetFleetDetails.TargetFleet 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; + } + /** + * + * + *
+       * Target fleet specification.
+       * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .class, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (specSourceBuilder_ == null) { + specSource_ = null; + } else { + specSource_ = null; + specSourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleet_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + build() { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + buildPartial() { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet result = + new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet( + this); + result.name_ = name_; + if (specSourceBuilder_ == null) { + result.specSource_ = specSource_; + } else { + result.specSource_ = specSourceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet other) { + if (other + == com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpecSource()) { + mergeSpecSource(other.getSpecSource()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+         * The name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The name of the Agones game server fleet.
+         * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.SpecSource specSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> + specSourceBuilder_; + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * The fleet spec source.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return Whether the specSource field is set. + */ + public boolean hasSpecSource() { + return specSourceBuilder_ != null || specSource_ != null; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * The fleet spec source.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return The specSource. + */ + public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { + if (specSourceBuilder_ == null) { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } else { + return specSourceBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * The fleet spec source.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public Builder setSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { + if (specSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + specSource_ = value; + onChanged(); + } else { + specSourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * The fleet spec source.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public Builder setSpecSource( + com.google.cloud.gaming.v1alpha.SpecSource.Builder builderForValue) { + if (specSourceBuilder_ == null) { + specSource_ = builderForValue.build(); + onChanged(); + } else { + specSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * The fleet spec source.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public Builder mergeSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { + if (specSourceBuilder_ == null) { + if (specSource_ != null) { + specSource_ = + com.google.cloud.gaming.v1alpha.SpecSource.newBuilder(specSource_) + .mergeFrom(value) + .buildPartial(); + } else { + specSource_ = value; + } + onChanged(); + } else { + specSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * The fleet spec source.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public Builder clearSpecSource() { + if (specSourceBuilder_ == null) { + specSource_ = null; + onChanged(); + } else { + specSource_ = null; + specSourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * The fleet spec source.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public com.google.cloud.gaming.v1alpha.SpecSource.Builder getSpecSourceBuilder() { + + onChanged(); + return getSpecSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * The fleet spec source.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { + if (specSourceBuilder_ != null) { + return specSourceBuilder_.getMessageOrBuilder(); + } else { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * The fleet spec source.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> + getSpecSourceFieldBuilder() { + if (specSourceBuilder_ == null) { + specSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder>( + getSpecSource(), getParentForChildren(), isClean()); + specSource_ = null; + } + return specSourceBuilder_; + } + + @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.TargetDetails.TargetFleetDetails.TargetFleet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet) + private static final com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet(); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetFleet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetFleet(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TargetFleetAutoscalerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * Details about the agones autoscaler spec.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return Whether the specSource field is set. + */ + boolean hasSpecSource(); + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * Details about the agones autoscaler spec.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return The specSource. + */ + com.google.cloud.gaming.v1alpha.SpecSource getSpecSource(); + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * Details about the agones autoscaler spec.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder(); + } + /** + * + * + *
+     * Target autoscaler policy reference.
+     * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler} + */ + public static final class TargetFleetAutoscaler extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) + TargetFleetAutoscalerOrBuilder { + private static final long serialVersionUID = 0L; + // Use TargetFleetAutoscaler.newBuilder() to construct. + private TargetFleetAutoscaler(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TargetFleetAutoscaler() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TargetFleetAutoscaler(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TargetFleetAutoscaler( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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.cloud.gaming.v1alpha.SpecSource.Builder subBuilder = null; + if (specSource_ != null) { + subBuilder = specSource_.toBuilder(); + } + specSource_ = + input.readMessage( + com.google.cloud.gaming.v1alpha.SpecSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(specSource_); + specSource_ = 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.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.class, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+       * The name of the Agones autoscaler.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 name of the Agones autoscaler.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 SPEC_SOURCE_FIELD_NUMBER = 2; + private com.google.cloud.gaming.v1alpha.SpecSource specSource_; + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * Details about the agones autoscaler spec.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return Whether the specSource field is set. + */ + public boolean hasSpecSource() { + return specSource_ != null; + } + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * Details about the agones autoscaler spec.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return The specSource. + */ + public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } + /** + * + * + *
+       * Encapsulates the source of the fleet spec.
+       * Details about the agones autoscaler spec.
+       * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { + return getSpecSource(); + } + + 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 (specSource_ != null) { + output.writeMessage(2, getSpecSource()); + } + 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 (specSource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpecSource()); + } + 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.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + other = + (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler) + obj; + + if (!getName().equals(other.getName())) return false; + if (hasSpecSource() != other.hasSpecSource()) return false; + if (hasSpecSource()) { + if (!getSpecSource().equals(other.getSpecSource())) 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(); + if (hasSpecSource()) { + hash = (37 * hash) + SPEC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSpecSource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + 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.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + 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.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + 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.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + 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.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + 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.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + 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.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + 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.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + 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; + } + /** + * + * + *
+       * Target autoscaler policy reference.
+       * 
+ * + * Protobuf type {@code + * google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscalerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.class, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (specSourceBuilder_ == null) { + specSource_ = null; + } else { + specSource_ = null; + specSourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_TargetFleetAutoscaler_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + build() { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + buildPartial() { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + result = + new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler(this); + result.name_ = name_; + if (specSourceBuilder_ == null) { + result.specSource_ = specSource_; + } else { + result.specSource_ = specSourceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + other) { + if (other + == com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpecSource()) { + mergeSpecSource(other.getSpecSource()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+         * The name of the Agones autoscaler.
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 name of the Agones autoscaler.
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 name of the Agones autoscaler.
+         * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The name of the Agones autoscaler.
+         * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The name of the Agones autoscaler.
+         * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gaming.v1alpha.SpecSource specSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> + specSourceBuilder_; + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * Details about the agones autoscaler spec.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return Whether the specSource field is set. + */ + public boolean hasSpecSource() { + return specSourceBuilder_ != null || specSource_ != null; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * Details about the agones autoscaler spec.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + * + * @return The specSource. + */ + public com.google.cloud.gaming.v1alpha.SpecSource getSpecSource() { + if (specSourceBuilder_ == null) { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } else { + return specSourceBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * Details about the agones autoscaler spec.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public Builder setSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { + if (specSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + specSource_ = value; + onChanged(); + } else { + specSourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * Details about the agones autoscaler spec.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public Builder setSpecSource( + com.google.cloud.gaming.v1alpha.SpecSource.Builder builderForValue) { + if (specSourceBuilder_ == null) { + specSource_ = builderForValue.build(); + onChanged(); + } else { + specSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * Details about the agones autoscaler spec.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public Builder mergeSpecSource(com.google.cloud.gaming.v1alpha.SpecSource value) { + if (specSourceBuilder_ == null) { + if (specSource_ != null) { + specSource_ = + com.google.cloud.gaming.v1alpha.SpecSource.newBuilder(specSource_) + .mergeFrom(value) + .buildPartial(); + } else { + specSource_ = value; + } + onChanged(); + } else { + specSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * Details about the agones autoscaler spec.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public Builder clearSpecSource() { + if (specSourceBuilder_ == null) { + specSource_ = null; + onChanged(); + } else { + specSource_ = null; + specSourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * Details about the agones autoscaler spec.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public com.google.cloud.gaming.v1alpha.SpecSource.Builder getSpecSourceBuilder() { + + onChanged(); + return getSpecSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * Details about the agones autoscaler spec.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + public com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder getSpecSourceOrBuilder() { + if (specSourceBuilder_ != null) { + return specSourceBuilder_.getMessageOrBuilder(); + } else { + return specSource_ == null + ? com.google.cloud.gaming.v1alpha.SpecSource.getDefaultInstance() + : specSource_; + } + } + /** + * + * + *
+         * Encapsulates the source of the fleet spec.
+         * Details about the agones autoscaler spec.
+         * 
+ * + * .google.cloud.gaming.v1alpha.SpecSource spec_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder> + getSpecSourceFieldBuilder() { + if (specSourceBuilder_ == null) { + specSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.SpecSource, + com.google.cloud.gaming.v1alpha.SpecSource.Builder, + com.google.cloud.gaming.v1alpha.SpecSourceOrBuilder>( + getSpecSource(), getParentForChildren(), isClean()); + specSource_ = null; + } + return specSourceBuilder_; + } + + @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.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler) + private static final com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler(); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetFleetAutoscaler parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetFleetAutoscaler(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FLEET_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet_; + /** + * + * + *
+     * Reference to target fleet.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + * + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return fleet_ != null; + } + /** + * + * + *
+     * Reference to target fleet.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + * + * @return The fleet. + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet getFleet() { + return fleet_ == null + ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .getDefaultInstance() + : fleet_; + } + /** + * + * + *
+     * Reference to target fleet.
+     * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder + getFleetOrBuilder() { + return getFleet(); + } + + public static final int AUTOSCALER_FIELD_NUMBER = 2; + private com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + autoscaler_; + /** + * + * + *
+     * Reference to target fleet autoscaling policy.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + * + * @return Whether the autoscaler field is set. + */ + public boolean hasAutoscaler() { + return autoscaler_ != null; + } + /** + * + * + *
+     * Reference to target fleet autoscaling policy.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + * + * @return The autoscaler. + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + getAutoscaler() { + return autoscaler_ == null + ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + .getDefaultInstance() + : autoscaler_; + } + /** + * + * + *
+     * Reference to target fleet autoscaling policy.
+     * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscalerOrBuilder + getAutoscalerOrBuilder() { + return getAutoscaler(); + } + + 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 (fleet_ != null) { + output.writeMessage(1, getFleet()); + } + if (autoscaler_ != null) { + output.writeMessage(2, getAutoscaler()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fleet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFleet()); + } + if (autoscaler_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAutoscaler()); + } + 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.TargetDetails.TargetFleetDetails)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails other = + (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) obj; + + if (hasFleet() != other.hasFleet()) return false; + if (hasFleet()) { + if (!getFleet().equals(other.getFleet())) return false; + } + if (hasAutoscaler() != other.hasAutoscaler()) return false; + if (hasAutoscaler()) { + if (!getAutoscaler().equals(other.getAutoscaler())) 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 (hasFleet()) { + hash = (37 * hash) + FLEET_FIELD_NUMBER; + hash = (53 * hash) + getFleet().hashCode(); + } + if (hasAutoscaler()) { + hash = (37 * hash) + AUTOSCALER_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaler().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails 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.TargetDetails.TargetFleetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails 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.TargetDetails.TargetFleetDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails 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.TargetDetails.TargetFleetDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails 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.TargetDetails.TargetFleetDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + 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.TargetDetails.TargetFleetDetails 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.TargetDetails.TargetFleetDetails 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.TargetDetails.TargetFleetDetails 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; + } + /** + * + * + *
+     * Details of the target fleet.
+     * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.class, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder.class); + } + + // Construct using + // com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (fleetBuilder_ == null) { + fleet_ = null; + } else { + fleet_ = null; + fleetBuilder_ = null; + } + if (autoscalerBuilder_ == null) { + autoscaler_ = null; + } else { + autoscaler_ = null; + autoscalerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_TargetFleetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails build() { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails buildPartial() { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails result = + new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails(this); + if (fleetBuilder_ == null) { + result.fleet_ = fleet_; + } else { + result.fleet_ = fleetBuilder_.build(); + } + if (autoscalerBuilder_ == null) { + result.autoscaler_ = autoscaler_; + } else { + result.autoscaler_ = autoscalerBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails other) { + if (other + == com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .getDefaultInstance()) return this; + if (other.hasFleet()) { + mergeFleet(other.getFleet()); + } + if (other.hasAutoscaler()) { + mergeAutoscaler(other.getAutoscaler()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder> + fleetBuilder_; + /** + * + * + *
+       * Reference to target fleet.
+       * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + * + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return fleetBuilder_ != null || fleet_ != null; + } + /** + * + * + *
+       * Reference to target fleet.
+       * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + * + * @return The fleet. + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + getFleet() { + if (fleetBuilder_ == null) { + return fleet_ == null + ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .getDefaultInstance() + : fleet_; + } else { + return fleetBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Reference to target fleet.
+       * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + */ + public Builder setFleet( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet value) { + if (fleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fleet_ = value; + onChanged(); + } else { + fleetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Reference to target fleet.
+       * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + */ + public Builder setFleet( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder + builderForValue) { + if (fleetBuilder_ == null) { + fleet_ = builderForValue.build(); + onChanged(); + } else { + fleetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Reference to target fleet.
+       * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + */ + public Builder mergeFleet( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet value) { + if (fleetBuilder_ == null) { + if (fleet_ != null) { + fleet_ = + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .newBuilder(fleet_) + .mergeFrom(value) + .buildPartial(); + } else { + fleet_ = value; + } + onChanged(); + } else { + fleetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Reference to target fleet.
+       * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + */ + public Builder clearFleet() { + if (fleetBuilder_ == null) { + fleet_ = null; + onChanged(); + } else { + fleet_ = null; + fleetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Reference to target fleet.
+       * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder + getFleetBuilder() { + + onChanged(); + return getFleetFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Reference to target fleet.
+       * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder + getFleetOrBuilder() { + if (fleetBuilder_ != null) { + return fleetBuilder_.getMessageOrBuilder(); + } else { + return fleet_ == null + ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .getDefaultInstance() + : fleet_; + } + } + /** + * + * + *
+       * Reference to target fleet.
+       * 
+ * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet fleet = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet.Builder, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetOrBuilder> + getFleetFieldBuilder() { + if (fleetBuilder_ == null) { + fleetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleet + .Builder, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetOrBuilder>(getFleet(), getParentForChildren(), isClean()); + fleet_ = null; + } + return fleetBuilder_; + } + + private com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + autoscaler_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + .Builder, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscalerOrBuilder> + autoscalerBuilder_; + /** + * + * + *
+       * Reference to target fleet autoscaling policy.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + * + * @return Whether the autoscaler field is set. + */ + public boolean hasAutoscaler() { + return autoscalerBuilder_ != null || autoscaler_ != null; + } + /** + * + * + *
+       * Reference to target fleet autoscaling policy.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + * + * @return The autoscaler. + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + getAutoscaler() { + if (autoscalerBuilder_ == null) { + return autoscaler_ == null + ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.getDefaultInstance() + : autoscaler_; + } else { + return autoscalerBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Reference to target fleet autoscaling policy.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + */ + public Builder setAutoscaler( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + value) { + if (autoscalerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaler_ = value; + onChanged(); + } else { + autoscalerBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Reference to target fleet autoscaling policy.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + */ + public Builder setAutoscaler( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + .Builder + builderForValue) { + if (autoscalerBuilder_ == null) { + autoscaler_ = builderForValue.build(); + onChanged(); + } else { + autoscalerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Reference to target fleet autoscaling policy.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + */ + public Builder mergeAutoscaler( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + value) { + if (autoscalerBuilder_ == null) { + if (autoscaler_ != null) { + autoscaler_ = + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.newBuilder(autoscaler_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaler_ = value; + } + onChanged(); + } else { + autoscalerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Reference to target fleet autoscaling policy.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + */ + public Builder clearAutoscaler() { + if (autoscalerBuilder_ == null) { + autoscaler_ = null; + onChanged(); + } else { + autoscaler_ = null; + autoscalerBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Reference to target fleet autoscaling policy.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + .Builder + getAutoscalerBuilder() { + + onChanged(); + return getAutoscalerFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Reference to target fleet autoscaling policy.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscalerOrBuilder + getAutoscalerOrBuilder() { + if (autoscalerBuilder_ != null) { + return autoscalerBuilder_.getMessageOrBuilder(); + } else { + return autoscaler_ == null + ? com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.getDefaultInstance() + : autoscaler_; + } + } + /** + * + * + *
+       * Reference to target fleet autoscaling policy.
+       * 
+ * + * + * .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler autoscaler = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler + .Builder, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscalerOrBuilder> + getAutoscalerFieldBuilder() { + if (autoscalerBuilder_ == null) { + autoscalerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscaler.Builder, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .TargetFleetAutoscalerOrBuilder>( + getAutoscaler(), getParentForChildren(), isClean()); + autoscaler_ = null; + } + return autoscalerBuilder_; + } + + @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.TargetDetails.TargetFleetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails) + private static final com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails(); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetFleetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetFleetDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int GAME_SERVER_CLUSTER_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object gameServerClusterName_; + /** + * + * + *
+   * The game server cluster name. It is of the form
+   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+   * 
+ * + * string game_server_cluster_name = 1; + * + * @return The gameServerClusterName. + */ + public java.lang.String getGameServerClusterName() { + java.lang.Object ref = gameServerClusterName_; + 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(); + gameServerClusterName_ = s; + return s; + } + } + /** + * + * + *
+   * The game server cluster name. It is of the form
+   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+   * 
+ * + * string game_server_cluster_name = 1; + * + * @return The bytes for gameServerClusterName. + */ + public com.google.protobuf.ByteString getGameServerClusterNameBytes() { + java.lang.Object ref = gameServerClusterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GAME_SERVER_DEPLOYMENT_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object gameServerDeploymentName_; + /** + * + * + *
+   * The game server deployment name. It is of the form
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * 
+ * + * string game_server_deployment_name = 2; + * + * @return The gameServerDeploymentName. + */ + public java.lang.String getGameServerDeploymentName() { + java.lang.Object ref = gameServerDeploymentName_; + 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(); + gameServerDeploymentName_ = s; + return s; + } + } + /** + * + * + *
+   * The game server deployment name. It is of the form
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * 
+ * + * string game_server_deployment_name = 2; + * + * @return The bytes for gameServerDeploymentName. + */ + public com.google.protobuf.ByteString getGameServerDeploymentNameBytes() { + java.lang.Object ref = gameServerDeploymentName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerDeploymentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLEET_DETAILS_FIELD_NUMBER = 3; + private java.util.List + fleetDetails_; + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public java.util.List + getFleetDetailsList() { + return fleetDetails_; + } + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> + getFleetDetailsOrBuilderList() { + return fleetDetails_; + } + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public int getFleetDetailsCount() { + return fleetDetails_.size(); + } + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails getFleetDetails( + int index) { + return fleetDetails_.get(index); + } + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder + getFleetDetailsOrBuilder(int index) { + return fleetDetails_.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 (!getGameServerClusterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gameServerClusterName_); + } + if (!getGameServerDeploymentNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gameServerDeploymentName_); + } + for (int i = 0; i < fleetDetails_.size(); i++) { + output.writeMessage(3, fleetDetails_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGameServerClusterNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gameServerClusterName_); + } + if (!getGameServerDeploymentNameBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gameServerDeploymentName_); + } + for (int i = 0; i < fleetDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fleetDetails_.get(i)); + } + 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.TargetDetails)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.TargetDetails other = + (com.google.cloud.gaming.v1alpha.TargetDetails) obj; + + if (!getGameServerClusterName().equals(other.getGameServerClusterName())) return false; + if (!getGameServerDeploymentName().equals(other.getGameServerDeploymentName())) return false; + if (!getFleetDetailsList().equals(other.getFleetDetailsList())) 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) + GAME_SERVER_CLUSTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGameServerClusterName().hashCode(); + hash = (37 * hash) + GAME_SERVER_DEPLOYMENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGameServerDeploymentName().hashCode(); + if (getFleetDetailsCount() > 0) { + hash = (37 * hash) + FLEET_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getFleetDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails 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.TargetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails 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.TargetDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails 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.TargetDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails 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.TargetDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails 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.TargetDetails 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.TargetDetails 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.TargetDetails 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; + } + /** + * + * + *
+   * Details about the Agones resources.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.TargetDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetDetails) + com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetDetails.class, + com.google.cloud.gaming.v1alpha.TargetDetails.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.TargetDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFleetDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + gameServerClusterName_ = ""; + + gameServerDeploymentName_ = ""; + + if (fleetDetailsBuilder_ == null) { + fleetDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + fleetDetailsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.TargetDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails build() { + com.google.cloud.gaming.v1alpha.TargetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails buildPartial() { + com.google.cloud.gaming.v1alpha.TargetDetails result = + new com.google.cloud.gaming.v1alpha.TargetDetails(this); + int from_bitField0_ = bitField0_; + result.gameServerClusterName_ = gameServerClusterName_; + result.gameServerDeploymentName_ = gameServerDeploymentName_; + if (fleetDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fleetDetails_ = java.util.Collections.unmodifiableList(fleetDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fleetDetails_ = fleetDetails_; + } else { + result.fleetDetails_ = fleetDetailsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.TargetDetails) { + return mergeFrom((com.google.cloud.gaming.v1alpha.TargetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.TargetDetails other) { + if (other == com.google.cloud.gaming.v1alpha.TargetDetails.getDefaultInstance()) return this; + if (!other.getGameServerClusterName().isEmpty()) { + gameServerClusterName_ = other.gameServerClusterName_; + onChanged(); + } + if (!other.getGameServerDeploymentName().isEmpty()) { + gameServerDeploymentName_ = other.gameServerDeploymentName_; + onChanged(); + } + if (fleetDetailsBuilder_ == null) { + if (!other.fleetDetails_.isEmpty()) { + if (fleetDetails_.isEmpty()) { + fleetDetails_ = other.fleetDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFleetDetailsIsMutable(); + fleetDetails_.addAll(other.fleetDetails_); + } + onChanged(); + } + } else { + if (!other.fleetDetails_.isEmpty()) { + if (fleetDetailsBuilder_.isEmpty()) { + fleetDetailsBuilder_.dispose(); + fleetDetailsBuilder_ = null; + fleetDetails_ = other.fleetDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + fleetDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFleetDetailsFieldBuilder() + : null; + } else { + fleetDetailsBuilder_.addAllMessages(other.fleetDetails_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.TargetDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gaming.v1alpha.TargetDetails) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object gameServerClusterName_ = ""; + /** + * + * + *
+     * The game server cluster name. It is of the form
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @return The gameServerClusterName. + */ + public java.lang.String getGameServerClusterName() { + java.lang.Object ref = gameServerClusterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gameServerClusterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The game server cluster name. It is of the form
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @return The bytes for gameServerClusterName. + */ + public com.google.protobuf.ByteString getGameServerClusterNameBytes() { + java.lang.Object ref = gameServerClusterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The game server cluster name. It is of the form
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @param value The gameServerClusterName to set. + * @return This builder for chaining. + */ + public Builder setGameServerClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gameServerClusterName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The game server cluster name. It is of the form
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearGameServerClusterName() { + + gameServerClusterName_ = getDefaultInstance().getGameServerClusterName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The game server cluster name. It is of the form
+     * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+     * 
+ * + * string game_server_cluster_name = 1; + * + * @param value The bytes for gameServerClusterName to set. + * @return This builder for chaining. + */ + public Builder setGameServerClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gameServerClusterName_ = value; + onChanged(); + return this; + } + + private java.lang.Object gameServerDeploymentName_ = ""; + /** + * + * + *
+     * The game server deployment name. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * 
+ * + * string game_server_deployment_name = 2; + * + * @return The gameServerDeploymentName. + */ + public java.lang.String getGameServerDeploymentName() { + java.lang.Object ref = gameServerDeploymentName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gameServerDeploymentName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The game server deployment name. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * 
+ * + * string game_server_deployment_name = 2; + * + * @return The bytes for gameServerDeploymentName. + */ + public com.google.protobuf.ByteString getGameServerDeploymentNameBytes() { + java.lang.Object ref = gameServerDeploymentName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gameServerDeploymentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The game server deployment name. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * 
+ * + * string game_server_deployment_name = 2; + * + * @param value The gameServerDeploymentName to set. + * @return This builder for chaining. + */ + public Builder setGameServerDeploymentName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gameServerDeploymentName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The game server deployment name. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * 
+ * + * string game_server_deployment_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearGameServerDeploymentName() { + + gameServerDeploymentName_ = getDefaultInstance().getGameServerDeploymentName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The game server deployment name. It is of the form
+     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
+     * 
+ * + * string game_server_deployment_name = 2; + * + * @param value The bytes for gameServerDeploymentName to set. + * @return This builder for chaining. + */ + public Builder setGameServerDeploymentNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gameServerDeploymentName_ = value; + onChanged(); + return this; + } + + private java.util.List + fleetDetails_ = java.util.Collections.emptyList(); + + private void ensureFleetDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fleetDetails_ = + new java.util.ArrayList< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails>(fleetDetails_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> + fleetDetailsBuilder_; + + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public java.util.List + getFleetDetailsList() { + if (fleetDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fleetDetails_); + } else { + return fleetDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public int getFleetDetailsCount() { + if (fleetDetailsBuilder_ == null) { + return fleetDetails_.size(); + } else { + return fleetDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails getFleetDetails( + int index) { + if (fleetDetailsBuilder_ == null) { + return fleetDetails_.get(index); + } else { + return fleetDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public Builder setFleetDetails( + int index, com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails value) { + if (fleetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetDetailsIsMutable(); + fleetDetails_.set(index, value); + onChanged(); + } else { + fleetDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public Builder setFleetDetails( + int index, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder builderForValue) { + if (fleetDetailsBuilder_ == null) { + ensureFleetDetailsIsMutable(); + fleetDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + fleetDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public Builder addFleetDetails( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails value) { + if (fleetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetDetailsIsMutable(); + fleetDetails_.add(value); + onChanged(); + } else { + fleetDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public Builder addFleetDetails( + int index, com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails value) { + if (fleetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetDetailsIsMutable(); + fleetDetails_.add(index, value); + onChanged(); + } else { + fleetDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public Builder addFleetDetails( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder builderForValue) { + if (fleetDetailsBuilder_ == null) { + ensureFleetDetailsIsMutable(); + fleetDetails_.add(builderForValue.build()); + onChanged(); + } else { + fleetDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public Builder addFleetDetails( + int index, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder builderForValue) { + if (fleetDetailsBuilder_ == null) { + ensureFleetDetailsIsMutable(); + fleetDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + fleetDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public Builder addAllFleetDetails( + java.lang.Iterable< + ? extends com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails> + values) { + if (fleetDetailsBuilder_ == null) { + ensureFleetDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fleetDetails_); + onChanged(); + } else { + fleetDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public Builder clearFleetDetails() { + if (fleetDetailsBuilder_ == null) { + fleetDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fleetDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public Builder removeFleetDetails(int index) { + if (fleetDetailsBuilder_ == null) { + ensureFleetDetailsIsMutable(); + fleetDetails_.remove(index); + onChanged(); + } else { + fleetDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder + getFleetDetailsBuilder(int index) { + return getFleetDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder + getFleetDetailsOrBuilder(int index) { + if (fleetDetailsBuilder_ == null) { + return fleetDetails_.get(index); + } else { + return fleetDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> + getFleetDetailsOrBuilderList() { + if (fleetDetailsBuilder_ != null) { + return fleetDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fleetDetails_); + } + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder + addFleetDetailsBuilder() { + return getFleetDetailsFieldBuilder() + .addBuilder( + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .getDefaultInstance()); + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder + addFleetDetailsBuilder(int index) { + return getFleetDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails + .getDefaultInstance()); + } + /** + * + * + *
+     * Agones fleet details for game server clusters and deployments.
+     * 
+ * + * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + public java.util.List + getFleetDetailsBuilderList() { + return getFleetDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> + getFleetDetailsFieldBuilder() { + if (fleetDetailsBuilder_ == null) { + fleetDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails.Builder, + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder>( + fleetDetails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + fleetDetails_ = null; + } + return fleetDetailsBuilder_; + } + + @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.TargetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetDetails) + private static final com.google.cloud.gaming.v1alpha.TargetDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.TargetDetails(); + } + + public static com.google.cloud.gaming.v1alpha.TargetDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetailsOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetailsOrBuilder.java new file mode 100644 index 00000000..62fc394d --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetailsOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +public interface TargetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The game server cluster name. It is of the form
+   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+   * 
+ * + * string game_server_cluster_name = 1; + * + * @return The gameServerClusterName. + */ + java.lang.String getGameServerClusterName(); + /** + * + * + *
+   * The game server cluster name. It is of the form
+   * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}`
+   * 
+ * + * string game_server_cluster_name = 1; + * + * @return The bytes for gameServerClusterName. + */ + com.google.protobuf.ByteString getGameServerClusterNameBytes(); + + /** + * + * + *
+   * The game server deployment name. It is of the form
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * 
+ * + * string game_server_deployment_name = 2; + * + * @return The gameServerDeploymentName. + */ + java.lang.String getGameServerDeploymentName(); + /** + * + * + *
+   * The game server deployment name. It is of the form
+   * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`
+   * 
+ * + * string game_server_deployment_name = 2; + * + * @return The bytes for gameServerDeploymentName. + */ + com.google.protobuf.ByteString getGameServerDeploymentNameBytes(); + + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + java.util.List + getFleetDetailsList(); + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails getFleetDetails(int index); + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + int getFleetDetailsCount(); + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + java.util.List< + ? extends com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder> + getFleetDetailsOrBuilderList(); + /** + * + * + *
+   * Agones fleet details for game server clusters and deployments.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetails fleet_details = 3; + * + */ + com.google.cloud.gaming.v1alpha.TargetDetails.TargetFleetDetailsOrBuilder + getFleetDetailsOrBuilder(int index); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetState.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetState.java new file mode 100644 index 00000000..6520c171 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetState.java @@ -0,0 +1,943 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +/** + * + * + *
+ * Encapsulates the Target state.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.TargetState} + */ +public final class TargetState extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.TargetState) + TargetStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use TargetState.newBuilder() to construct. + private TargetState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TargetState() { + details_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TargetState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TargetState( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + details_.add( + input.readMessage( + com.google.cloud.gaming.v1alpha.TargetDetails.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetState.class, + com.google.cloud.gaming.v1alpha.TargetState.Builder.class); + } + + public static final int DETAILS_FIELD_NUMBER = 1; + private java.util.List details_; + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public java.util.List getDetailsList() { + return details_; + } + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public java.util.List + getDetailsOrBuilderList() { + return details_; + } + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public int getDetailsCount() { + return details_.size(); + } + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public com.google.cloud.gaming.v1alpha.TargetDetails getDetails(int index) { + return details_.get(index); + } + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder getDetailsOrBuilder(int index) { + return details_.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 { + for (int i = 0; i < details_.size(); i++) { + output.writeMessage(1, details_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < details_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, details_.get(i)); + } + 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.TargetState)) { + return super.equals(obj); + } + com.google.cloud.gaming.v1alpha.TargetState other = + (com.google.cloud.gaming.v1alpha.TargetState) obj; + + if (!getDetailsList().equals(other.getDetailsList())) 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 (getDetailsCount() > 0) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gaming.v1alpha.TargetState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetState 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.TargetState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetState 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.TargetState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gaming.v1alpha.TargetState 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.TargetState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetState 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.TargetState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gaming.v1alpha.TargetState 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.TargetState 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.TargetState 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.TargetState 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; + } + /** + * + * + *
+   * Encapsulates the Target state.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.TargetState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.TargetState) + com.google.cloud.gaming.v1alpha.TargetStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gaming.v1alpha.TargetState.class, + com.google.cloud.gaming.v1alpha.TargetState.Builder.class); + } + + // Construct using com.google.cloud.gaming.v1alpha.TargetState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + detailsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gaming.v1alpha.Common + .internal_static_google_cloud_gaming_v1alpha_TargetState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetState getDefaultInstanceForType() { + return com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetState build() { + com.google.cloud.gaming.v1alpha.TargetState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetState buildPartial() { + com.google.cloud.gaming.v1alpha.TargetState result = + new com.google.cloud.gaming.v1alpha.TargetState(this); + int from_bitField0_ = bitField0_; + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.details_ = details_; + } else { + result.details_ = detailsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gaming.v1alpha.TargetState) { + return mergeFrom((com.google.cloud.gaming.v1alpha.TargetState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gaming.v1alpha.TargetState other) { + if (other == com.google.cloud.gaming.v1alpha.TargetState.getDefaultInstance()) return this; + if (detailsBuilder_ == null) { + if (!other.details_.isEmpty()) { + if (details_.isEmpty()) { + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDetailsIsMutable(); + details_.addAll(other.details_); + } + onChanged(); + } + } else { + if (!other.details_.isEmpty()) { + if (detailsBuilder_.isEmpty()) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + detailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetailsFieldBuilder() + : null; + } else { + detailsBuilder_.addAllMessages(other.details_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gaming.v1alpha.TargetState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gaming.v1alpha.TargetState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List details_ = + java.util.Collections.emptyList(); + + private void ensureDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + details_ = new java.util.ArrayList(details_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails, + com.google.cloud.gaming.v1alpha.TargetDetails.Builder, + com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder> + detailsBuilder_; + + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public java.util.List getDetailsList() { + if (detailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(details_); + } else { + return detailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public int getDetailsCount() { + if (detailsBuilder_ == null) { + return details_.size(); + } else { + return detailsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public com.google.cloud.gaming.v1alpha.TargetDetails getDetails(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public Builder setDetails(int index, com.google.cloud.gaming.v1alpha.TargetDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.set(index, value); + onChanged(); + } else { + detailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public Builder setDetails( + int index, com.google.cloud.gaming.v1alpha.TargetDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.set(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public Builder addDetails(com.google.cloud.gaming.v1alpha.TargetDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(value); + onChanged(); + } else { + detailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public Builder addDetails(int index, com.google.cloud.gaming.v1alpha.TargetDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(index, value); + onChanged(); + } else { + detailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public Builder addDetails( + com.google.cloud.gaming.v1alpha.TargetDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public Builder addDetails( + int index, com.google.cloud.gaming.v1alpha.TargetDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public Builder addAllDetails( + java.lang.Iterable values) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, details_); + onChanged(); + } else { + detailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public Builder clearDetails() { + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + detailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public Builder removeDetails(int index) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.remove(index); + onChanged(); + } else { + detailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.Builder getDetailsBuilder(int index) { + return getDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder getDetailsOrBuilder(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public java.util.List + getDetailsOrBuilderList() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(details_); + } + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.Builder addDetailsBuilder() { + return getDetailsFieldBuilder() + .addBuilder(com.google.cloud.gaming.v1alpha.TargetDetails.getDefaultInstance()); + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public com.google.cloud.gaming.v1alpha.TargetDetails.Builder addDetailsBuilder(int index) { + return getDetailsFieldBuilder() + .addBuilder(index, com.google.cloud.gaming.v1alpha.TargetDetails.getDefaultInstance()); + } + /** + * + * + *
+     * Details about fleets.
+     * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + public java.util.List + getDetailsBuilderList() { + return getDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails, + com.google.cloud.gaming.v1alpha.TargetDetails.Builder, + com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder> + getDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gaming.v1alpha.TargetDetails, + com.google.cloud.gaming.v1alpha.TargetDetails.Builder, + com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder>( + details_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + details_ = null; + } + return detailsBuilder_; + } + + @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.TargetState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.TargetState) + private static final com.google.cloud.gaming.v1alpha.TargetState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.TargetState(); + } + + public static com.google.cloud.gaming.v1alpha.TargetState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gaming.v1alpha.TargetState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetStateOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetStateOrBuilder.java new file mode 100644 index 00000000..8dc816e7 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetStateOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gaming/v1alpha/common.proto + +package com.google.cloud.gaming.v1alpha; + +public interface TargetStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.TargetState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + java.util.List getDetailsList(); + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + com.google.cloud.gaming.v1alpha.TargetDetails getDetails(int index); + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + int getDetailsCount(); + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + java.util.List + getDetailsOrBuilderList(); + /** + * + * + *
+   * Details about fleets.
+   * 
+ * + * repeated .google.cloud.gaming.v1alpha.TargetDetails details = 1; + */ + com.google.cloud.gaming.v1alpha.TargetDetailsOrBuilder getDetailsOrBuilder(int index); +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequest.java index 1d61edb8..682635b4 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +40,12 @@ private UpdateGameServerClusterRequest( private UpdateGameServerClusterRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateGameServerClusterRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private UpdateGameServerClusterRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -140,7 +145,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. */ public boolean hasGameServerCluster() { return gameServerCluster_ != null; @@ -153,7 +162,11 @@ public boolean hasGameServerCluster() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. */ public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { return gameServerCluster_ == null @@ -168,7 +181,9 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder() { @@ -188,7 +203,10 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -204,7 +222,10 @@ public boolean hasUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -220,7 +241,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -602,7 +624,11 @@ public Builder mergeFrom( * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. */ public boolean hasGameServerCluster() { return gameServerClusterBuilder_ != null || gameServerCluster_ != null; @@ -615,7 +641,11 @@ public boolean hasGameServerCluster() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. */ public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() { if (gameServerClusterBuilder_ == null) { @@ -634,7 +664,9 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster() * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { if (gameServerClusterBuilder_ == null) { @@ -657,7 +689,9 @@ public Builder setGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCl * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGameServerCluster( com.google.cloud.gaming.v1alpha.GameServerCluster.Builder builderForValue) { @@ -678,7 +712,9 @@ public Builder setGameServerCluster( * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServerCluster value) { if (gameServerClusterBuilder_ == null) { @@ -705,7 +741,9 @@ public Builder mergeGameServerCluster(com.google.cloud.gaming.v1alpha.GameServer * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGameServerCluster() { if (gameServerClusterBuilder_ == null) { @@ -726,7 +764,9 @@ public Builder clearGameServerCluster() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerClusterBuilder() { @@ -741,7 +781,9 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerCl * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder() { @@ -761,7 +803,9 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerCl * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gaming.v1alpha.GameServerCluster, @@ -797,7 +841,10 @@ public com.google.cloud.gaming.v1alpha.GameServerCluster.Builder getGameServerCl * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -813,7 +860,10 @@ public boolean hasUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { @@ -835,7 +885,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -861,7 +912,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -884,7 +936,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -912,7 +965,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -936,7 +990,8 @@ public Builder clearUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -954,7 +1009,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -976,7 +1032,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequestOrBuilder.java index 34785ea2..ca553b16 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,11 @@ public interface UpdateGameServerClusterRequestOrBuilder * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerCluster field is set. */ boolean hasGameServerCluster(); /** @@ -42,7 +46,11 @@ public interface UpdateGameServerClusterRequestOrBuilder * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerCluster. */ com.google.cloud.gaming.v1alpha.GameServerCluster getGameServerCluster(); /** @@ -53,7 +61,9 @@ public interface UpdateGameServerClusterRequestOrBuilder * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1; + * + * .google.cloud.gaming.v1alpha.GameServerCluster game_server_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gaming.v1alpha.GameServerClusterOrBuilder getGameServerClusterOrBuilder(); @@ -68,7 +78,10 @@ public interface UpdateGameServerClusterRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -82,7 +95,10 @@ public interface UpdateGameServerClusterRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** @@ -96,7 +112,8 @@ public interface UpdateGameServerClusterRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequest.java index 42dcf863..33cf7d47 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,12 @@ private UpdateGameServerDeploymentRequest( private UpdateGameServerDeploymentRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateGameServerDeploymentRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private UpdateGameServerDeploymentRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -141,7 +146,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerDeployment field is set. */ public boolean hasGameServerDeployment() { return gameServerDeployment_ != null; @@ -154,7 +163,11 @@ public boolean hasGameServerDeployment() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerDeployment. */ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment() { return gameServerDeployment_ == null @@ -169,7 +182,9 @@ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeploym * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeploymentOrBuilder() { @@ -189,7 +204,10 @@ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeploym * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -205,7 +223,10 @@ public boolean hasUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -221,7 +242,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -608,7 +630,11 @@ public Builder mergeFrom( * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerDeployment field is set. */ public boolean hasGameServerDeployment() { return gameServerDeploymentBuilder_ != null || gameServerDeployment_ != null; @@ -621,7 +647,11 @@ public boolean hasGameServerDeployment() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerDeployment. */ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment() { if (gameServerDeploymentBuilder_ == null) { @@ -640,7 +670,9 @@ public com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeploym * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGameServerDeployment( com.google.cloud.gaming.v1alpha.GameServerDeployment value) { @@ -664,7 +696,9 @@ public Builder setGameServerDeployment( * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGameServerDeployment( com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder builderForValue) { @@ -685,7 +719,9 @@ public Builder setGameServerDeployment( * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGameServerDeployment( com.google.cloud.gaming.v1alpha.GameServerDeployment value) { @@ -713,7 +749,9 @@ public Builder mergeGameServerDeployment( * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGameServerDeployment() { if (gameServerDeploymentBuilder_ == null) { @@ -734,7 +772,9 @@ public Builder clearGameServerDeployment() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerDeployment.Builder getGameServerDeploymentBuilder() { @@ -750,7 +790,9 @@ public Builder clearGameServerDeployment() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeploymentOrBuilder() { @@ -770,7 +812,9 @@ public Builder clearGameServerDeployment() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gaming.v1alpha.GameServerDeployment, @@ -806,7 +850,10 @@ public Builder clearGameServerDeployment() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -822,7 +869,10 @@ public boolean hasUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { @@ -844,7 +894,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -870,7 +921,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -893,7 +945,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -921,7 +974,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -945,7 +999,8 @@ public Builder clearUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -963,7 +1018,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -985,7 +1041,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequestOrBuilder.java index 0359d8d1..9a5937e6 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,11 @@ public interface UpdateGameServerDeploymentRequestOrBuilder * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gameServerDeployment field is set. */ boolean hasGameServerDeployment(); /** @@ -42,7 +46,11 @@ public interface UpdateGameServerDeploymentRequestOrBuilder * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gameServerDeployment. */ com.google.cloud.gaming.v1alpha.GameServerDeployment getGameServerDeployment(); /** @@ -53,7 +61,9 @@ public interface UpdateGameServerDeploymentRequestOrBuilder * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeployment game_server_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gaming.v1alpha.GameServerDeploymentOrBuilder getGameServerDeploymentOrBuilder(); @@ -68,7 +78,10 @@ public interface UpdateGameServerDeploymentRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -82,7 +95,10 @@ public interface UpdateGameServerDeploymentRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** @@ -96,7 +112,8 @@ public interface UpdateGameServerDeploymentRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateAllocationPolicyRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequest.java similarity index 57% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateAllocationPolicyRequest.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequest.java index 33bf949e..98dce95e 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateAllocationPolicyRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto package com.google.cloud.gaming.v1alpha; @@ -22,29 +22,38 @@ * * *
- * Request message for AllocationPoliciesService.UpdateAllocationPolicy.
+ * Request message for
+ * GameServerDeploymentsService.UpdateGameServerRolloutDeployment.
  * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest} */ -public final class UpdateAllocationPolicyRequest extends com.google.protobuf.GeneratedMessageV3 +public final class UpdateGameServerDeploymentRolloutRequest + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) - UpdateAllocationPolicyRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) + UpdateGameServerDeploymentRolloutRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use UpdateAllocationPolicyRequest.newBuilder() to construct. - private UpdateAllocationPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use UpdateGameServerDeploymentRolloutRequest.newBuilder() to construct. + private UpdateGameServerDeploymentRolloutRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateAllocationPolicyRequest() {} + private UpdateGameServerDeploymentRolloutRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateGameServerDeploymentRolloutRequest(); + } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateAllocationPolicyRequest( + private UpdateGameServerDeploymentRolloutRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -52,7 +61,6 @@ private UpdateAllocationPolicyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -65,16 +73,17 @@ private UpdateAllocationPolicyRequest( break; case 10: { - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder subBuilder = null; - if (allocationPolicy_ != null) { - subBuilder = allocationPolicy_.toBuilder(); + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder subBuilder = null; + if (rollout_ != null) { + subBuilder = rollout_.toBuilder(); } - allocationPolicy_ = + rollout_ = input.readMessage( - com.google.cloud.gaming.v1alpha.AllocationPolicy.parser(), extensionRegistry); + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.parser(), + extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(allocationPolicy_); - allocationPolicy_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(rollout_); + rollout_ = subBuilder.buildPartial(); } break; @@ -114,62 +123,73 @@ private UpdateAllocationPolicyRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest.class, - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.class, + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.Builder.class); } - public static final int ALLOCATION_POLICY_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.AllocationPolicy allocationPolicy_; + public static final int ROLLOUT_FIELD_NUMBER = 1; + private com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout_; /** * * *
-   * Required. The allocation policy to be updated.
+   * Required. The game server deployment rollout to be updated.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. */ - public boolean hasAllocationPolicy() { - return allocationPolicy_ != null; + public boolean hasRollout() { + return rollout_ != null; } /** * * *
-   * Required. The allocation policy to be updated.
+   * Required. The game server deployment rollout to be updated.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicy() { - return allocationPolicy_ == null - ? com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout() { + return rollout_ == null + ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() + : rollout_; } /** * * *
-   * Required. The allocation policy to be updated.
+   * Required. The game server deployment rollout to be updated.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() { - return getAllocationPolicy(); + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder + getRolloutOrBuilder() { + return getRollout(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -185,7 +205,10 @@ public com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder getAllocationPo * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -201,7 +224,10 @@ public boolean hasUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -217,7 +243,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -237,8 +264,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (allocationPolicy_ != null) { - output.writeMessage(1, getAllocationPolicy()); + if (rollout_ != null) { + output.writeMessage(1, getRollout()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); @@ -252,8 +279,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (allocationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAllocationPolicy()); + if (rollout_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRollout()); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); @@ -268,15 +295,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest)) { + if (!(obj + instanceof com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest)) { return super.equals(obj); } - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest other = - (com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) obj; + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest other = + (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) obj; - if (hasAllocationPolicy() != other.hasAllocationPolicy()) return false; - if (hasAllocationPolicy()) { - if (!getAllocationPolicy().equals(other.getAllocationPolicy())) return false; + if (hasRollout() != other.hasRollout()) return false; + if (hasRollout()) { + if (!getRollout().equals(other.getRollout())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { @@ -293,9 +321,9 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAllocationPolicy()) { - hash = (37 * hash) + ALLOCATION_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getAllocationPolicy().hashCode(); + if (hasRollout()) { + hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; + hash = (53 * hash) + getRollout().hashCode(); } if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; @@ -306,71 +334,72 @@ public int hashCode() { return hash; } - public static com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest 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.UpdateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest 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.UpdateAllocationPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest 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.UpdateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest 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.UpdateAllocationPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest + 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.UpdateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest 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.UpdateAllocationPolicyRequest parseFrom( + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -388,7 +417,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest prototype) { + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -406,31 +435,34 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for AllocationPoliciesService.UpdateAllocationPolicy.
+   * Request message for
+   * GameServerDeploymentsService.UpdateGameServerRolloutDeployment.
    * 
* - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest} + * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_fieldAccessorTable + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest.class, - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest.Builder.class); + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.class, + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.Builder + .class); } - // Construct using com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest.newBuilder() + // Construct using + // com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -447,11 +479,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (allocationPolicyBuilder_ == null) { - allocationPolicy_ = null; + if (rolloutBuilder_ == null) { + rollout_ = null; } else { - allocationPolicy_ = null; - allocationPolicyBuilder_ = null; + rollout_ = null; + rolloutBuilder_ = null; } if (updateMaskBuilder_ == null) { updateMask_ = null; @@ -464,19 +496,21 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.AllocationPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateAllocationPolicyRequest_descriptor; + return com.google.cloud.gaming.v1alpha.GameServerDeployments + .internal_static_google_cloud_gaming_v1alpha_UpdateGameServerDeploymentRolloutRequest_descriptor; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest + public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest.getDefaultInstance(); + return com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest build() { - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest result = buildPartial(); + public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest build() { + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -484,13 +518,13 @@ public com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest build() { } @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest buildPartial() { - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest result = - new com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest(this); - if (allocationPolicyBuilder_ == null) { - result.allocationPolicy_ = allocationPolicy_; + public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest buildPartial() { + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest result = + new com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest(this); + if (rolloutBuilder_ == null) { + result.rollout_ = rollout_; } else { - result.allocationPolicy_ = allocationPolicyBuilder_.build(); + result.rollout_ = rolloutBuilder_.build(); } if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -536,20 +570,23 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) other); + if (other + instanceof com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) { + return mergeFrom( + (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest other) { + public Builder mergeFrom( + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest other) { if (other - == com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest.getDefaultInstance()) - return this; - if (other.hasAllocationPolicy()) { - mergeAllocationPolicy(other.getAllocationPolicy()); + == com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest + .getDefaultInstance()) return this; + if (other.hasRollout()) { + mergeRollout(other.getRollout()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); @@ -569,12 +606,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest parsedMessage = null; + com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) + (com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -585,63 +622,73 @@ public Builder mergeFrom( return this; } - private com.google.cloud.gaming.v1alpha.AllocationPolicy allocationPolicy_; + private com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout_; 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_; + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder> + rolloutBuilder_; /** * * *
-     * Required. The allocation policy to be updated.
+     * Required. The game server deployment rollout to be updated.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. */ - public boolean hasAllocationPolicy() { - return allocationPolicyBuilder_ != null || allocationPolicy_ != null; + public boolean hasRollout() { + return rolloutBuilder_ != null || rollout_ != null; } /** * * *
-     * Required. The allocation policy to be updated.
+     * Required. The game server deployment rollout to be updated.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicy() { - if (allocationPolicyBuilder_ == null) { - return allocationPolicy_ == null - ? com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout() { + if (rolloutBuilder_ == null) { + return rollout_ == null + ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() + : rollout_; } else { - return allocationPolicyBuilder_.getMessage(); + return rolloutBuilder_.getMessage(); } } /** * * *
-     * Required. The allocation policy to be updated.
+     * Required. The game server deployment rollout to be updated.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAllocationPolicy(com.google.cloud.gaming.v1alpha.AllocationPolicy value) { - if (allocationPolicyBuilder_ == null) { + public Builder setRollout(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout value) { + if (rolloutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - allocationPolicy_ = value; + rollout_ = value; onChanged(); } else { - allocationPolicyBuilder_.setMessage(value); + rolloutBuilder_.setMessage(value); } return this; @@ -650,19 +697,21 @@ public Builder setAllocationPolicy(com.google.cloud.gaming.v1alpha.AllocationPol * * *
-     * Required. The allocation policy to be updated.
+     * Required. The game server deployment rollout to be updated.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAllocationPolicy( - com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder builderForValue) { - if (allocationPolicyBuilder_ == null) { - allocationPolicy_ = builderForValue.build(); + public Builder setRollout( + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder builderForValue) { + if (rolloutBuilder_ == null) { + rollout_ = builderForValue.build(); onChanged(); } else { - allocationPolicyBuilder_.setMessage(builderForValue.build()); + rolloutBuilder_.setMessage(builderForValue.build()); } return this; @@ -671,25 +720,27 @@ public Builder setAllocationPolicy( * * *
-     * Required. The allocation policy to be updated.
+     * Required. The game server deployment rollout to be updated.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - 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_) + public Builder mergeRollout(com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout value) { + if (rolloutBuilder_ == null) { + if (rollout_ != null) { + rollout_ = + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.newBuilder(rollout_) .mergeFrom(value) .buildPartial(); } else { - allocationPolicy_ = value; + rollout_ = value; } onChanged(); } else { - allocationPolicyBuilder_.mergeFrom(value); + rolloutBuilder_.mergeFrom(value); } return this; @@ -698,19 +749,21 @@ public Builder mergeAllocationPolicy(com.google.cloud.gaming.v1alpha.AllocationP * * *
-     * Required. The allocation policy to be updated.
+     * Required. The game server deployment rollout to be updated.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder clearAllocationPolicy() { - if (allocationPolicyBuilder_ == null) { - allocationPolicy_ = null; + public Builder clearRollout() { + if (rolloutBuilder_ == null) { + rollout_ = null; onChanged(); } else { - allocationPolicy_ = null; - allocationPolicyBuilder_ = null; + rollout_ = null; + rolloutBuilder_ = null; } return this; @@ -719,62 +772,68 @@ public Builder clearAllocationPolicy() { * * *
-     * Required. The allocation policy to be updated.
+     * Required. The game server deployment rollout to be updated.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder getAllocationPolicyBuilder() { + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder getRolloutBuilder() { onChanged(); - return getAllocationPolicyFieldBuilder().getBuilder(); + return getRolloutFieldBuilder().getBuilder(); } /** * * *
-     * Required. The allocation policy to be updated.
+     * Required. The game server deployment rollout to be updated.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder - getAllocationPolicyOrBuilder() { - if (allocationPolicyBuilder_ != null) { - return allocationPolicyBuilder_.getMessageOrBuilder(); + public com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder + getRolloutOrBuilder() { + if (rolloutBuilder_ != null) { + return rolloutBuilder_.getMessageOrBuilder(); } else { - return allocationPolicy_ == null - ? com.google.cloud.gaming.v1alpha.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + return rollout_ == null + ? com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.getDefaultInstance() + : rollout_; } } /** * * *
-     * Required. The allocation policy to be updated.
+     * Required. The game server deployment rollout to be updated.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_ = + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder> + getRolloutFieldBuilder() { + if (rolloutBuilder_ == null) { + rolloutBuilder_ = 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; + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout.Builder, + com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder>( + getRollout(), getParentForChildren(), isClean()); + rollout_ = null; } - return allocationPolicyBuilder_; + return rolloutBuilder_; } private com.google.protobuf.FieldMask updateMask_; @@ -794,7 +853,10 @@ public com.google.cloud.gaming.v1alpha.AllocationPolicy.Builder getAllocationPol * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -810,7 +872,10 @@ public boolean hasUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { @@ -832,7 +897,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -858,7 +924,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -881,7 +948,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -909,7 +977,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -933,7 +1002,8 @@ public Builder clearUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -951,7 +1021,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -973,7 +1044,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -1003,43 +1075,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) - private static final com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest + // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) + private static final com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest(); } - public static com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest getDefaultInstance() { + public static com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public UpdateAllocationPolicyRequest parsePartialFrom( + public UpdateGameServerDeploymentRolloutRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAllocationPolicyRequest(input, extensionRegistry); + return new UpdateGameServerDeploymentRolloutRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest getDefaultInstanceForType() { + public com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateAllocationPolicyRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateAllocationPolicyRequestOrBuilder.java rename to proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequestOrBuilder.java index 44356371..47ef7796 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateAllocationPolicyRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,48 +14,58 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/allocation_policies.proto +// source: google/cloud/gaming/v1alpha/game_server_deployments.proto package com.google.cloud.gaming.v1alpha; -public interface UpdateAllocationPolicyRequestOrBuilder +public interface UpdateGameServerDeploymentRolloutRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.UpdateAllocationPolicyRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. The allocation policy to be updated.
+   * Required. The game server deployment rollout to be updated.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. */ - boolean hasAllocationPolicy(); + boolean hasRollout(); /** * * *
-   * Required. The allocation policy to be updated.
+   * Required. The game server deployment rollout to be updated.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. */ - com.google.cloud.gaming.v1alpha.AllocationPolicy getAllocationPolicy(); + com.google.cloud.gaming.v1alpha.GameServerDeploymentRollout getRollout(); /** * * *
-   * Required. The allocation policy to be updated.
+   * Required. The game server deployment rollout to be updated.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.gaming.v1alpha.AllocationPolicy allocation_policy = 1; + * + * .google.cloud.gaming.v1alpha.GameServerDeploymentRollout rollout = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.gaming.v1alpha.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder(); + com.google.cloud.gaming.v1alpha.GameServerDeploymentRolloutOrBuilder getRolloutOrBuilder(); /** * @@ -68,7 +78,10 @@ public interface UpdateAllocationPolicyRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -82,7 +95,10 @@ public interface UpdateAllocationPolicyRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** @@ -96,7 +112,8 @@ public interface UpdateAllocationPolicyRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequest.java index 0e8c5a1d..15a143a2 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequest.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,15 @@ package com.google.cloud.gaming.v1alpha; -/** Protobuf type {@code google.cloud.gaming.v1alpha.UpdateRealmRequest} */ +/** + * + * + *
+ * Request message for RealmsService.UpdateRealm.
+ * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateRealmRequest} + */ public final class UpdateRealmRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.UpdateRealmRequest) @@ -31,6 +39,12 @@ private UpdateRealmRequest(com.google.protobuf.GeneratedMessageV3.Builder bui private UpdateRealmRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateRealmRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -44,7 +58,6 @@ private UpdateRealmRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -130,7 +143,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the realm field is set. */ public boolean hasRealm() { return realm_ != null; @@ -143,7 +159,10 @@ public boolean hasRealm() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The realm. */ public com.google.cloud.gaming.v1alpha.Realm getRealm() { return realm_ == null ? com.google.cloud.gaming.v1alpha.Realm.getDefaultInstance() : realm_; @@ -156,7 +175,8 @@ public com.google.cloud.gaming.v1alpha.Realm getRealm() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { return getRealm(); @@ -175,7 +195,10 @@ public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -191,7 +214,10 @@ public boolean hasUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -207,7 +233,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -391,7 +418,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.gaming.v1alpha.UpdateRealmRequest} */ + /** + * + * + *
+   * Request message for RealmsService.UpdateRealm.
+   * 
+ * + * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateRealmRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.UpdateRealmRequest) @@ -577,7 +612,10 @@ public Builder mergeFrom( * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the realm field is set. */ public boolean hasRealm() { return realmBuilder_ != null || realm_ != null; @@ -590,7 +628,10 @@ public boolean hasRealm() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The realm. */ public com.google.cloud.gaming.v1alpha.Realm getRealm() { if (realmBuilder_ == null) { @@ -607,7 +648,8 @@ public com.google.cloud.gaming.v1alpha.Realm getRealm() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm value) { if (realmBuilder_ == null) { @@ -630,7 +672,8 @@ public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm value) { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm.Builder builderForValue) { if (realmBuilder_ == null) { @@ -650,7 +693,8 @@ public Builder setRealm(com.google.cloud.gaming.v1alpha.Realm.Builder builderFor * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRealm(com.google.cloud.gaming.v1alpha.Realm value) { if (realmBuilder_ == null) { @@ -677,7 +721,8 @@ public Builder mergeRealm(com.google.cloud.gaming.v1alpha.Realm value) { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRealm() { if (realmBuilder_ == null) { @@ -698,7 +743,8 @@ public Builder clearRealm() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.Realm.Builder getRealmBuilder() { @@ -713,7 +759,8 @@ public com.google.cloud.gaming.v1alpha.Realm.Builder getRealmBuilder() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { if (realmBuilder_ != null) { @@ -730,7 +777,8 @@ public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gaming.v1alpha.Realm, @@ -766,7 +814,10 @@ public com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -782,7 +833,10 @@ public boolean hasUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { @@ -804,7 +858,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -830,7 +885,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -853,7 +909,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -881,7 +938,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -905,7 +963,8 @@ public Builder clearUpdateMask() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -923,7 +982,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -945,7 +1005,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequestOrBuilder.java index 34928bcb..4dd53ca7 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequestOrBuilder.java +++ b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,10 @@ public interface UpdateRealmRequestOrBuilder * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the realm field is set. */ boolean hasRealm(); /** @@ -42,7 +45,10 @@ public interface UpdateRealmRequestOrBuilder * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The realm. */ com.google.cloud.gaming.v1alpha.Realm getRealm(); /** @@ -53,7 +59,8 @@ public interface UpdateRealmRequestOrBuilder * Only fields specified in update_mask are updated. * * - * .google.cloud.gaming.v1alpha.Realm realm = 1; + * .google.cloud.gaming.v1alpha.Realm realm = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gaming.v1alpha.RealmOrBuilder getRealmOrBuilder(); @@ -68,7 +75,10 @@ public interface UpdateRealmRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -82,7 +92,10 @@ public interface UpdateRealmRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** @@ -96,7 +109,8 @@ public interface UpdateRealmRequestOrBuilder * // /docs/reference/google.protobuf#fieldmask * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateScalingPolicyRequest.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateScalingPolicyRequest.java deleted file mode 100644 index 56f59537..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateScalingPolicyRequest.java +++ /dev/null @@ -1,1040 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -/** - * - * - *
- * Request message for ScalingPoliciesService.UpdateScalingPolicy.
- * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest} - */ -public final class UpdateScalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest) - UpdateScalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateScalingPolicyRequest.newBuilder() to construct. - private UpdateScalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateScalingPolicyRequest() {} - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateScalingPolicyRequest( - 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.ScalingPolicy.Builder subBuilder = null; - if (scalingPolicy_ != null) { - subBuilder = scalingPolicy_.toBuilder(); - } - scalingPolicy_ = - input.readMessage( - com.google.cloud.gaming.v1alpha.ScalingPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scalingPolicy_); - scalingPolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = 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.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest.class, - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest.Builder.class); - } - - public static final int SCALING_POLICY_FIELD_NUMBER = 1; - private com.google.cloud.gaming.v1alpha.ScalingPolicy scalingPolicy_; - /** - * - * - *
-   * Required. The scaling policy to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public boolean hasScalingPolicy() { - return scalingPolicy_ != null; - } - /** - * - * - *
-   * Required. The scaling policy to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicy() { - return scalingPolicy_ == null - ? com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance() - : scalingPolicy_; - } - /** - * - * - *
-   * Required. The scaling policy to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder getScalingPolicyOrBuilder() { - return getScalingPolicy(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. Mask of fields to update. At least one path must be supplied in
-   * this field. For the `FieldMask` definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. Mask of fields to update. At least one path must be supplied in
-   * this field. For the `FieldMask` definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. Mask of fields to update. At least one path must be supplied in
-   * this field. For the `FieldMask` definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - 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 (scalingPolicy_ != null) { - output.writeMessage(1, getScalingPolicy()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scalingPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScalingPolicy()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - 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.UpdateScalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest other = - (com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest) obj; - - if (hasScalingPolicy() != other.hasScalingPolicy()) return false; - if (hasScalingPolicy()) { - if (!getScalingPolicy().equals(other.getScalingPolicy())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasScalingPolicy()) { - hash = (37 * hash) + SCALING_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getScalingPolicy().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest 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.UpdateScalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest 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.UpdateScalingPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest 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.UpdateScalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest 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.UpdateScalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest 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.UpdateScalingPolicyRequest 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.UpdateScalingPolicyRequest 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.UpdateScalingPolicyRequest 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 ScalingPoliciesService.UpdateScalingPolicy.
-   * 
- * - * Protobuf type {@code google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest) - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest.class, - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (scalingPolicyBuilder_ == null) { - scalingPolicy_ = null; - } else { - scalingPolicy_ = null; - scalingPolicyBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gaming.v1alpha.ScalingPolicies - .internal_static_google_cloud_gaming_v1alpha_UpdateScalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest build() { - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest buildPartial() { - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest result = - new com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest(this); - if (scalingPolicyBuilder_ == null) { - result.scalingPolicy_ = scalingPolicy_; - } else { - result.scalingPolicy_ = scalingPolicyBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest) { - return mergeFrom((com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest other) { - if (other == com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest.getDefaultInstance()) - return this; - if (other.hasScalingPolicy()) { - mergeScalingPolicy(other.getScalingPolicy()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gaming.v1alpha.ScalingPolicy scalingPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingPolicy, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder, - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder> - scalingPolicyBuilder_; - /** - * - * - *
-     * Required. The scaling policy to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public boolean hasScalingPolicy() { - return scalingPolicyBuilder_ != null || scalingPolicy_ != null; - } - /** - * - * - *
-     * Required. The scaling policy to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicy() { - if (scalingPolicyBuilder_ == null) { - return scalingPolicy_ == null - ? com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance() - : scalingPolicy_; - } else { - return scalingPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The scaling policy to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public Builder setScalingPolicy(com.google.cloud.gaming.v1alpha.ScalingPolicy value) { - if (scalingPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scalingPolicy_ = value; - onChanged(); - } else { - scalingPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The scaling policy to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public Builder setScalingPolicy( - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder builderForValue) { - if (scalingPolicyBuilder_ == null) { - scalingPolicy_ = builderForValue.build(); - onChanged(); - } else { - scalingPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The scaling policy to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public Builder mergeScalingPolicy(com.google.cloud.gaming.v1alpha.ScalingPolicy value) { - if (scalingPolicyBuilder_ == null) { - if (scalingPolicy_ != null) { - scalingPolicy_ = - com.google.cloud.gaming.v1alpha.ScalingPolicy.newBuilder(scalingPolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - scalingPolicy_ = value; - } - onChanged(); - } else { - scalingPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The scaling policy to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public Builder clearScalingPolicy() { - if (scalingPolicyBuilder_ == null) { - scalingPolicy_ = null; - onChanged(); - } else { - scalingPolicy_ = null; - scalingPolicyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The scaling policy to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder getScalingPolicyBuilder() { - - onChanged(); - return getScalingPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The scaling policy to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - public com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder getScalingPolicyOrBuilder() { - if (scalingPolicyBuilder_ != null) { - return scalingPolicyBuilder_.getMessageOrBuilder(); - } else { - return scalingPolicy_ == null - ? com.google.cloud.gaming.v1alpha.ScalingPolicy.getDefaultInstance() - : scalingPolicy_; - } - } - /** - * - * - *
-     * Required. The scaling policy to be updated.
-     * Only fields specified in update_mask are updated.
-     * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingPolicy, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder, - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder> - getScalingPolicyFieldBuilder() { - if (scalingPolicyBuilder_ == null) { - scalingPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gaming.v1alpha.ScalingPolicy, - com.google.cloud.gaming.v1alpha.ScalingPolicy.Builder, - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder>( - getScalingPolicy(), getParentForChildren(), isClean()); - scalingPolicy_ = null; - } - return scalingPolicyBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. Mask of fields to update. At least one path must be supplied in
-     * this field. For the `FieldMask` definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. Mask of fields to update. At least one path must be supplied in
-     * this field. For the `FieldMask` definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Mask of fields to update. At least one path must be supplied in
-     * this field. For the `FieldMask` definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Mask of fields to update. At least one path must be supplied in
-     * this field. For the `FieldMask` definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Mask of fields to update. At least one path must be supplied in
-     * this field. For the `FieldMask` definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Mask of fields to update. At least one path must be supplied in
-     * this field. For the `FieldMask` definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Mask of fields to update. At least one path must be supplied in
-     * this field. For the `FieldMask` definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Mask of fields to update. At least one path must be supplied in
-     * this field. For the `FieldMask` definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. Mask of fields to update. At least one path must be supplied in
-     * this field. For the `FieldMask` definition, see
-     * https:
-     * //developers.google.com/protocol-buffers
-     * // /docs/reference/google.protobuf#fieldmask
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @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.UpdateScalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest) - private static final com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest(); - } - - public static com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateScalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScalingPolicyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateScalingPolicyRequestOrBuilder.java b/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateScalingPolicyRequestOrBuilder.java deleted file mode 100644 index 2eca2083..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateScalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gaming/v1alpha/scaling_policies.proto - -package com.google.cloud.gaming.v1alpha; - -public interface UpdateScalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gaming.v1alpha.UpdateScalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The scaling policy to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - boolean hasScalingPolicy(); - /** - * - * - *
-   * Required. The scaling policy to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - com.google.cloud.gaming.v1alpha.ScalingPolicy getScalingPolicy(); - /** - * - * - *
-   * Required. The scaling policy to be updated.
-   * Only fields specified in update_mask are updated.
-   * 
- * - * .google.cloud.gaming.v1alpha.ScalingPolicy scaling_policy = 1; - */ - com.google.cloud.gaming.v1alpha.ScalingPolicyOrBuilder getScalingPolicyOrBuilder(); - - /** - * - * - *
-   * Required. Mask of fields to update. At least one path must be supplied in
-   * this field. For the `FieldMask` definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. Mask of fields to update. At least one path must be supplied in
-   * this field. For the `FieldMask` definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. Mask of fields to update. At least one path must be supplied in
-   * this field. For the `FieldMask` definition, see
-   * https:
-   * //developers.google.com/protocol-buffers
-   * // /docs/reference/google.protobuf#fieldmask
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/allocation_policies.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/allocation_policies.proto deleted file mode 100644 index 0a142006..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/allocation_policies.proto +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright 2019 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/annotations.proto"; -import "google/cloud/gaming/v1alpha/common.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/client.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// 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. -service AllocationPoliciesService { - option (google.api.default_host) = "gameservices.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // List allocation policies in a given project and location. - rpc ListAllocationPolicies(ListAllocationPoliciesRequest) returns (ListAllocationPoliciesResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=projects/*/locations/*}/allocationPolicies" - }; - } - - // Gets details of a single allocation policy. - rpc GetAllocationPolicy(GetAllocationPolicyRequest) returns (AllocationPolicy) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/allocationPolicies/*}" - }; - } - - // Creates a new allocation policy in a given project and location. - rpc CreateAllocationPolicy(CreateAllocationPolicyRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*}/allocationPolicies" - body: "allocation_policy" - }; - } - - // Deletes a single allocation policy. - rpc DeleteAllocationPolicy(DeleteAllocationPolicyRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/allocationPolicies/*}" - }; - } - - // Patches a single allocation policy. - rpc UpdateAllocationPolicy(UpdateAllocationPolicyRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha/{allocation_policy.name=projects/*/locations/*/allocationPolicies/*}" - body: "allocation_policy" - }; - } -} - -// Request message for AllocationPoliciesService.ListAllocationPolicies. -message ListAllocationPoliciesRequest { - // Required. The parent resource name, using the form: - // `projects/{project_id}/locations/{location}`. - string parent = 1; - - // Optional. The maximum number of items to return. If unspecified, server - // will pick an appropriate default. Server may return fewer items than - // requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1alpha.ListAllocationPoliciesResponse.next_page_token] to - // determine if there are more AllocationPolicies left to be queried. - int32 page_size = 2; - - // Optional. The next_page_token value returned from a previous List request, - // if any. - string page_token = 3; - - // Optional. The filter to apply to list results. - string filter = 4; - - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - string order_by = 5; -} - -// Response message for AllocationPoliciesService.ListAllocationPolicies. -message ListAllocationPoliciesResponse { - // The list of allocation policies. - repeated AllocationPolicy allocation_policies = 1; - - // Token to retrieve the next page of results, or empty if there are no - // more results in the list. - string next_page_token = 2; -} - -// Request message for AllocationPoliciesService.GetAllocationPolicy. -message GetAllocationPolicyRequest { - // Required. The name of the allocation policy to retrieve, using the form: - // - // `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}` - string name = 1; -} - -// Request message for AllocationPoliciesService.CreateAllocationPolicy. -message CreateAllocationPolicyRequest { - // Required. The parent resource name, using the form: - // `projects/{project_id}/locations/{location}`. - string parent = 1; - - // Required. The ID of the allocation policy resource to be created. - string allocation_policy_id = 2; - - // Required. The allocation policy resource to be created. - AllocationPolicy allocation_policy = 3; -} - -// Request message for AllocationPoliciesService.DeleteAllocationPolicy. -message DeleteAllocationPolicyRequest { - // Required. The name of the allocation policy to delete, using the form: - // - // `projects/{project_id}/locations/{location}/allocationPolicies/{allocation_policy_id}` - string name = 1; -} - -// Request message for AllocationPoliciesService.UpdateAllocationPolicy. -message UpdateAllocationPolicyRequest { - // Required. The allocation policy to be updated. - // Only fields specified in update_mask are updated. - AllocationPolicy allocation_policy = 1; - - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - google.protobuf.FieldMask update_mask = 2; -} - -// An allocation policy resource. -message AllocationPolicy { - // 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; - - // Output only. The creation time. - google.protobuf.Timestamp create_time = 2; - - // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3; - - // The labels associated with the allocation policy. Each label is a key-value - // pair. - map labels = 4; - - // Required. The priority of the policy for allocation. A smaller value - // indicates a higher priority. - google.protobuf.Int32Value priority = 8; - - // 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; - - // The cluster labels are used to identify the clusters that a policy is - // applied to. - repeated LabelSelector cluster_selectors = 10; - - // The event schedules - If specified, the policy is time based and when the - // schedule is effective overrides the default policy. - repeated Schedule schedules = 11; -} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/common.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/common.proto index eeb4f3c2..f1fe76e3 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/common.proto +++ b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/common.proto @@ -17,10 +17,10 @@ syntax = "proto3"; package google.cloud.gaming.v1alpha; -import "google/api/annotations.proto"; -import "google/longrunning/operations.proto"; +import "google/api/field_behavior.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; @@ -30,35 +30,72 @@ option java_package = "com.google.cloud.gaming.v1alpha"; // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1; + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2; + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Server-defined resource path for the target of the operation. - string target = 3; + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Name of the verb executed by the operation. - string verb = 4; + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Human-readable status of the operation, if any. - string status_message = 5; + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, // corresponding to `Code.CANCELLED`. - bool requested_cancellation = 6; + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. - string api_version = 7; + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of locations that could not be reached. + repeated string unreachable = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Operation status for game services operations. Operation status is in the + // form of key-value pairs where keys are resource IDs and the values show the + // status of the operation. In case of failures, the value includes an error + // code and error message. + map operation_status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +message OperationStatus { + enum ErrorCode { + ERROR_CODE_UNSPECIFIED = 0; + + INTERNAL_ERROR = 1; + + PERMISSION_DENIED = 2; + + CLUSTER_CONNECTION = 3; + } + + // Output only. Whether the operation is done or still in progress. + bool done = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The error code in case of failures. + ErrorCode error_code = 2; + + // The human-readable error message. + string error_message = 3; } // The label selector, used to group labels on the resources. message LabelSelector { + // Resource labels for this selector. map labels = 1; } +// The realm selector, used to match realm resources. +message RealmSelector { + // List of realms to match against. + repeated string realms = 1; +} + // The schedule of an event - the event can be recurring or one time. The // event's time span is specified by start_time and end_time. If the scheduled // event's timespan is larger than the cron_spec + cron_job_duration the event @@ -84,3 +121,101 @@ message Schedule { // defined by the realm. string cron_spec = 4; } + +// Details about the Agones fleet. +message FleetDetails { + // Details about the Agones autoscaler. + // The autoscaler details. + message AutoscalerDetails { + // The name of the Agones autoscaler. + string autoscaler_name = 1; + + // The name of the scaling config (within the game server config) that is + // used to create the autoscalar. + string scaling_config_name = 2; + } + + // The cluster name. + string game_server_cluster_name = 1; + + // The name of the Agones game server fleet. + string fleet_name = 2; + + // The name of the game server config object whose fleet spec + // is used to create the fleet. + string game_server_config_name = 3; + + // Details about the agones autoscaler. + AutoscalerDetails autoscaler_details = 4; +} + +// Encapsulates the expected deployed state. +message DeployedState { + option deprecated = true; + + // Details about fleets. + repeated FleetDetails fleets = 1; +} + +// Encapsulates fleet spec and autoscaler spec sources. +message SpecSource { + // The game server config resource. It is of the form + // + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}` + string game_server_config_name = 1; + + // The name of the fleet config or scaling config that is used to derive + // the fleet or fleet autoscaler spec. + string name = 2; +} + +// Details about the Agones resources. +message TargetDetails { + // Details of the target fleet. + message TargetFleetDetails { + // Target fleet specification. + message TargetFleet { + // The name of the Agones game server fleet. + string name = 1; + + // Encapsulates the source of the fleet spec. + // The fleet spec source. + SpecSource spec_source = 2; + } + + // Target autoscaler policy reference. + message TargetFleetAutoscaler { + // The name of the Agones autoscaler. + string name = 1; + + // Encapsulates the source of the fleet spec. + // Details about the agones autoscaler spec. + SpecSource spec_source = 2; + } + + // Reference to target fleet. + TargetFleet fleet = 1; + + // Reference to target fleet autoscaling policy. + TargetFleetAutoscaler autoscaler = 2; + } + + // The game server cluster name. It is of the form + // + // `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}` + string game_server_cluster_name = 1; + + // The game server deployment name. It is of the form + // + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}` + string game_server_deployment_name = 2; + + // Agones fleet details for game server clusters and deployments. + repeated TargetFleetDetails fleet_details = 3; +} + +// Encapsulates the Target state. +message TargetState { + // Details about fleets. + repeated TargetDetails details = 1; +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters.proto index 1e1f488c..e84c8219 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters.proto +++ b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters.proto @@ -17,84 +17,46 @@ syntax = "proto3"; package google.cloud.gaming.v1alpha; -import "google/api/annotations.proto"; -import "google/longrunning/operations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/gaming/v1alpha/common.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/client.proto"; +import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1alpha"; -// The game server cluster is used to capture the game server cluster's settings -// which are used to manage game server clusters. -service GameServerClustersService { - option (google.api.default_host) = "gameservices.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists game server clusters in a given project and location. - rpc ListGameServerClusters(ListGameServerClustersRequest) returns (ListGameServerClustersResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=projects/*/locations/*/realms/*}/gameServerClusters" - }; - } - - // Gets details of a single game server cluster. - rpc GetGameServerCluster(GetGameServerClusterRequest) returns (GameServerCluster) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/realms/*/gameServerClusters/*}" - }; - } - - // Creates a new game server cluster in a given project and location. - rpc CreateGameServerCluster(CreateGameServerClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*/realms/*}/gameServerClusters" - body: "game_server_cluster" - }; - } - - // Deletes a single game server cluster. - rpc DeleteGameServerCluster(DeleteGameServerClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/realms/*/gameServerClusters/*}" - }; - } - - // Patches a single game server cluster. - rpc UpdateGameServerCluster(UpdateGameServerClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha/{game_server_cluster.name=projects/*/locations/*/realms/*/gameServerClusters/*}" - body: "game_server_cluster" - }; - } -} - // Request message for GameServerClustersService.ListGameServerClusters. message ListGameServerClustersRequest { // Required. The parent resource name, using the form: - // "projects/{project_id}/locations/{location}/realms/{realm-id}". - string parent = 1; + // "projects/{project}/locations/{location}/realms/{realm-id}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerCluster" + } + ]; // Optional. The maximum number of items to return. If unspecified, server // will pick an appropriate default. Server may return fewer items than // requested. A caller should only rely on response's // [next_page_token][google.cloud.gaming.v1alpha.ListGameServerClustersResponse.next_page_token] to // determine if there are more GameServerClusters left to be queried. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The next_page_token value returned from a previous List request, // if any. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The filter to apply to list results. - string filter = 4; + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Specifies the ordering of results following syntax at // https://cloud.google.com/apis/design/design_patterns#sorting_order. - string order_by = 5; + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for GameServerClustersService.ListGameServerClusters. @@ -105,42 +67,129 @@ message ListGameServerClustersResponse { // Token to retrieve the next page of results, or empty if there are no more // results in the list. string next_page_token = 2; + + // List of locations that could not be reached. + repeated string unreachable_locations = 3 [deprecated = true]; + + // List of locations that could not be reached. + repeated string unreachable = 4; } // Request message for GameServerClustersService.GetGameServerCluster. message GetGameServerClusterRequest { // Required. The name of the game server cluster to retrieve, using the form: // - // `projects/{project_id}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster_id}` - string name = 1; + // `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerCluster" + } + ]; } // Request message for GameServerClustersService.CreateGameServerCluster. message CreateGameServerClusterRequest { // Required. The parent resource name, using the form: - // `projects/{project_id}/locations/{location}/realms/{realm-id}`. - string parent = 1; + // `projects/{project}/locations/{location}/realms/{realm-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerCluster" + } + ]; // Required. The ID of the game server cluster resource to be created. - string game_server_cluster_id = 2; + string game_server_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The game server cluster resource to be created. - GameServerCluster game_server_cluster = 3; + GameServerCluster game_server_cluster = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for GameServerClustersService.PreviewCreateGameServerCluster. +message PreviewCreateGameServerClusterRequest { + // Required. The parent resource name, using the form: + // `projects/{project}/locations/{location}/realms/{realm-id}`. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID of the game server cluster resource to be created. + string game_server_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The game server cluster resource to be created. + GameServerCluster game_server_cluster = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The instant of time at which the preview needs to be computed. + google.protobuf.Timestamp preview_time = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// GameServerClustersService.PreviewCreateGameServerCluster. +message PreviewCreateGameServerClusterResponse { + // The deployed state. + DeployedState deployed_state = 1 [deprecated = true]; + + // The ETag of the game server cluster. + string etag = 2; + + // The target state. + TargetState target_state = 3; } // Request message for GameServerClustersService.DeleteGameServerCluster. message DeleteGameServerClusterRequest { // Required. The name of the game server cluster to delete, using the form: - // - // `projects/{project_id}/locations/{location}/gameServerClusters/{cluster_id}` - string name = 1; + // `projects/{project}/locations/{location}/gameServerClusters/{cluster}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerCluster" + } + ]; +} + +// Request message for GameServerClustersService.PreviewDeleteGameServerCluster. +message PreviewDeleteGameServerClusterRequest { + // Required. The name of the game server cluster to delete, using the form: + // `projects/{project}/locations/{location}/gameServerClusters/{cluster}` + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The instant of time at which the preview needs to be computed. + google.protobuf.Timestamp preview_time = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// GameServerClustersService.PreviewDeleteGameServerCluster. +message PreviewDeleteGameServerClusterResponse { + // The deployed state. + DeployedState deployed_state = 1 [deprecated = true]; + + // The ETag of the game server cluster. + string etag = 2; + + // The target state. + TargetState target_state = 3; } // Request message for GameServerClustersService.UpdateGameServerCluster. message UpdateGameServerClusterRequest { // Required. The game server cluster to be updated. // Only fields specified in update_mask are updated. - GameServerCluster game_server_cluster = 1; + GameServerCluster game_server_cluster = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Mask of fields to update. At least one path must be supplied in + // this field. For the `FieldMask` definition, see + // + // https: + // //developers.google.com/protocol-buffers + // // /docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for GameServerClustersService.UpdateGameServerCluster. +message PreviewUpdateGameServerClusterRequest { + // Required. The game server cluster to be updated. + // Only fields specified in update_mask are updated. + GameServerCluster game_server_cluster = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see @@ -148,59 +197,93 @@ message UpdateGameServerClusterRequest { // https: // //developers.google.com/protocol-buffers // // /docs/reference/google.protobuf#fieldmask - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The instant of time at which the preview needs to be computed. + google.protobuf.Timestamp preview_time = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for GameServerClustersService.PreviewUpdateGameServerCluster +message PreviewUpdateGameServerClusterResponse { + // The deployed state. + DeployedState deployed_state = 1 [deprecated = true]; + + // The ETag of the game server cluster. + string etag = 2; + + // The target state. + TargetState target_state = 3; } -// Game server cluster connection information. +// The game server cluster connection information. message GameServerClusterConnectionInfo { + // Cluster reference represents the location of the Kubernetes cluster. oneof cluster_reference { - // Reference of the GKE cluster where the game servers are installed. + // Reference to the GKE cluster where the game servers are installed. GkeClusterReference gke_cluster_reference = 7; + + // Reference to an external (non-GKE) cluster registered with GKE Hub using + // the GKE connect agent. See + // https://cloud.google.com/anthos/multicluster-management/ + // for more information about registering non-GKE clusters. + GkeHubClusterReference gke_hub_cluster_reference = 8; } // Namespace designated on the game server cluster where the game server // instances will be created. The namespace existence will be validated // during creation. string namespace = 5; - - // Deprecated. Use cluster instead. - // This is the gkeName where the game server cluster is installed. - // It must the format "projects/*/locations/*/clusters/*". For example, - // "projects/my-project/locations/us-central1/clusters/test". - string gke_name = 6 [deprecated = true]; } -// GkeClusterReference represents a reference of a GKE cluster. +// GkeClusterReference represents a reference to a GKE cluster. message GkeClusterReference { // The full or partial name of a GKE cluster, using one of the following // forms: - //
    - //
  • `projects/{project_id}/locations/{location}/clusters/{cluster_id}` - //
  • - //
  • `locations/{location}/clusters/{cluster_id}`
  • - //
  • `{cluster_id}`
  • - //
+ // * `projects/{project}/locations/{location}/clusters/{cluster}` + // * `locations/{location}/clusters/{cluster}` + // * `{cluster}` // If project and location are not specified, the project and location of the // GameServerCluster resource are used to generate the full name of the // GKE cluster. string cluster = 1; } +// GkeHubClusterReference represents a reference to a Kubernetes cluster +// registered through GKE Hub. +message GkeHubClusterReference { + // The full or partial name of a GKE Hub membership, using one of the + // following forms: + // * + // `https: + // //gkehub.googleapis.com/v1beta1/projects + // // /{project_id}/locations/global/memberships/{membership_id}` + // * `projects/{project_id}/locations/global/memberships/{membership_id}` + // * `{membership_id}` + // If project is not specified, the project of the GameServerCluster resource + // is used to generate the full name of the GKE Hub membership. + string membership = 1; +} + // A game server cluster resource. message GameServerCluster { - // The resource name of the game server cluster, using the form: + option (google.api.resource) = { + type: "gameservices.googleapis.com/GameServerCluster" + pattern: "projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}" + }; + + // Required. The resource name of the game server cluster, using the form: // - // `projects/{project_id}/locations/{location}/realms/{realm_id}/gameServerClusters/{cluster_id}`. + // `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`. // For example, // // `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`. - string name = 1; + string name = 1 [(google.api.field_behavior) = REQUIRED]; // Output only. The creation time. - google.protobuf.Timestamp create_time = 2; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // The labels associated with this game server cluster. Each label is a // key-value pair. @@ -209,4 +292,10 @@ message GameServerCluster { // Game server cluster connection information. This information is used to // manage game server clusters. GameServerClusterConnectionInfo connection_info = 5; + + // ETag of the resource. + string etag = 6; + + // Human readable description of the cluster. + string description = 7; } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters_service.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters_service.proto new file mode 100644 index 00000000..c7f4f895 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters_service.proto @@ -0,0 +1,113 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.gaming.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/cloud/gaming/v1alpha/game_server_clusters.proto"; +import "google/longrunning/operations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; + +option java_multiple_files = true; +option java_package = "com.google.cloud.gaming.v1alpha"; + +// The game server cluster maps to Kubernetes clusters running Agones and is +// used to manage fleets within clusters. +service GameServerClustersService { + option (google.api.default_host) = "gameservices.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists game server clusters in a given project and location. + rpc ListGameServerClusters(ListGameServerClustersRequest) returns (ListGameServerClustersResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/realms/*}/gameServerClusters" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single game server cluster. + rpc GetGameServerCluster(GetGameServerClusterRequest) returns (GameServerCluster) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/realms/*/gameServerClusters/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new game server cluster in a given project and location. + rpc CreateGameServerCluster(CreateGameServerClusterRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/realms/*}/gameServerClusters" + body: "game_server_cluster" + }; + option (google.api.method_signature) = "parent,game_server_cluster,game_server_cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "GameServerCluster" + metadata_type: "OperationMetadata" + }; + } + + // Previews creation of a new game server cluster in a given project and + // location. + rpc PreviewCreateGameServerCluster(PreviewCreateGameServerClusterRequest) returns (PreviewCreateGameServerClusterResponse) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/realms/*}/gameServerClusters:previewCreate" + body: "game_server_cluster" + }; + } + + // Deletes a single game server cluster. + rpc DeleteGameServerCluster(DeleteGameServerClusterRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/realms/*/gameServerClusters/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "GameServerCluster" + metadata_type: "OperationMetadata" + }; + } + + // Previews deletion of a single game server cluster. + rpc PreviewDeleteGameServerCluster(PreviewDeleteGameServerClusterRequest) returns (PreviewDeleteGameServerClusterResponse) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/realms/*/gameServerClusters/*}:previewDelete" + }; + } + + // Patches a single game server cluster. + rpc UpdateGameServerCluster(UpdateGameServerClusterRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{game_server_cluster.name=projects/*/locations/*/realms/*/gameServerClusters/*}" + body: "game_server_cluster" + }; + option (google.api.method_signature) = "game_server_cluster,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "GameServerCluster" + metadata_type: "OperationMetadata" + }; + } + + // Previews updating a GameServerCluster. + rpc PreviewUpdateGameServerCluster(PreviewUpdateGameServerClusterRequest) returns (PreviewUpdateGameServerClusterResponse) { + option (google.api.http) = { + patch: "/v1alpha/{game_server_cluster.name=projects/*/locations/*/realms/*/gameServerClusters/*}:previewUpdate" + body: "game_server_cluster" + }; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs.proto new file mode 100644 index 00000000..adaa90bc --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs.proto @@ -0,0 +1,191 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.gaming.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/gaming/v1alpha/common.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; + +option java_multiple_files = true; +option java_package = "com.google.cloud.gaming.v1alpha"; + +// Request message for GameServerConfigsService.ListGameServerConfigs. +message ListGameServerConfigsRequest { + // Required. The parent resource name, using the form: + // + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerConfig" + } + ]; + + // Optional. The maximum number of items to return. If unspecified, server + // will pick an appropriate default. Server may return fewer items than + // requested. A caller should only rely on response's + // [next_page_token][google.cloud.gaming.v1alpha.ListGameServerConfigsResponse.next_page_token] to + // determine if there are more GameServerConfigs left to be queried. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to apply to list results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the ordering of results following syntax at + // https://cloud.google.com/apis/design/design_patterns#sorting_order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// GameServerConfigsService.ListGameServerConfigs. +message ListGameServerConfigsResponse { + // The list of game server configs. + repeated GameServerConfig game_server_configs = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // List of locations that could not be reached. + repeated string unreachable_locations = 3 [deprecated = true]; + + // List of locations that were not reachable. + repeated string unreachable = 4; +} + +// Request message for GameServerConfigsService.GetGameServerConfig. +message GetGameServerConfigRequest { + // Required. The name of the game server config to retrieve, using the + // form: + // + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerConfig" + } + ]; +} + +// Request message for +// GameServerConfigsService.CreateGameServerConfig. +message CreateGameServerConfigRequest { + // Required. The parent resource name, using the form: + // + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerConfig" + } + ]; + + // Required. The ID of the game server config resource to be created. + string config_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The game server config resource to be created. + GameServerConfig game_server_config = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// GameServerConfigsService.DeleteGameServerConfig. +message DeleteGameServerConfigRequest { + // Required. The name of the game server config to delete, using the form: + // + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerConfig" + } + ]; +} + +// Autoscaling configs for Agones fleet. +message ScalingConfig { + // Required. The name of the ScalingConfig + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Fleet autoscaler spec, which is sent to Agones. + // Example spec can be found : + // https://agones.dev/site/docs/reference/fleetautoscaler/ + string fleet_autoscaler_spec = 2 [(google.api.field_behavior) = REQUIRED]; + + // Labels used to identify the clusters to which this scaling config + // applies. A cluster is subject to this scaling config if its labels match + // any of the selector entries. + repeated LabelSelector selectors = 4; + + // The schedules to which this scaling config applies. + repeated Schedule schedules = 5; +} + +// Fleet configs for Agones. +message FleetConfig { + // The fleet spec, which is sent to Agones to configure fleet. + // Example spec can be found : + // `https://agones.dev/site/docs/reference/fleet/`. + string fleet_spec = 1; + + // The name of the FleetConfig. + string name = 2; +} + +// A game server config resource. +message GameServerConfig { + option (google.api.resource) = { + type: "gameservices.googleapis.com/GameServerConfig" + pattern: "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}" + }; + + // The resource name of the game server config, using the form: + // + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. + // For example, + // + // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. + string name = 1; + + // Output only. The creation time. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels associated with this game server config. Each label is a + // key-value pair. + map labels = 4; + + // The fleet specs contains a list of fleet specs. For Single Cloud, only + // one fleet config is allowed. + repeated FleetConfig fleet_configs = 5; + + // The autoscaling settings for Agones fleet. + repeated ScalingConfig scaling_configs = 6; + + // The description of the game server config. + string description = 7; +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs_service.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs_service.proto new file mode 100644 index 00000000..c33b5ad4 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs_service.proto @@ -0,0 +1,81 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.gaming.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/cloud/gaming/v1alpha/game_server_configs.proto"; +import "google/longrunning/operations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; + +option java_multiple_files = true; +option java_package = "com.google.cloud.gaming.v1alpha"; + +// The game server config is used to configure the set of game +// servers in Agones Fleets. +service GameServerConfigsService { + option (google.api.default_host) = "gameservices.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists game server configs in a given project, location, and game server + // deployment. + rpc ListGameServerConfigs(ListGameServerConfigsRequest) returns (ListGameServerConfigsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/gameServerDeployments/*}/configs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single game server config. + rpc GetGameServerConfig(GetGameServerConfigRequest) returns (GameServerConfig) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*/configs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new game server config in a given project, location, and game + // server deployment. Game server configs are immutable. A game server config + // is not applied until it is rolled out which is managed + // by updating the game server rollout resource. + rpc CreateGameServerConfig(CreateGameServerConfigRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/gameServerDeployments/*}/configs" + body: "game_server_config" + }; + option (google.api.method_signature) = "parent,game_server_config"; + option (google.longrunning.operation_info) = { + response_type: "GameServerConfig" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single game server config. The deletion will fail if the game + // server config is referenced in a game server rollout. + rpc DeleteGameServerConfig(DeleteGameServerConfigRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*/configs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "GameServerConfig" + metadata_type: "OperationMetadata" + }; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments.proto index 006b3c19..0eefc063 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments.proto +++ b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments.proto @@ -17,132 +17,46 @@ syntax = "proto3"; package google.cloud.gaming.v1alpha; -import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/gaming/v1alpha/common.proto"; -import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/client.proto"; +import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1alpha"; -// The game server deployment is used to configure the deployment of game server -// software to Agones Fleets in game server clusters. -service GameServerDeploymentsService { - option (google.api.default_host) = "gameservices.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists game server deployments in a given project and location. - rpc ListGameServerDeployments(ListGameServerDeploymentsRequest) returns (ListGameServerDeploymentsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=projects/*/locations/*}/gameServerDeployments" - }; - } - - // Gets details of a single game server deployment. - rpc GetGameServerDeployment(GetGameServerDeploymentRequest) returns (GameServerDeployment) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}" - }; - } - - // Creates a new game server deployment in a given project and location. - rpc CreateGameServerDeployment(CreateGameServerDeploymentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*}/gameServerDeployments" - body: "game_server_deployment" - }; - } - - // Deletes a single game server deployment. - rpc DeleteGameServerDeployment(DeleteGameServerDeploymentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}" - }; - } - - // Patches a game server deployment. - rpc UpdateGameServerDeployment(UpdateGameServerDeploymentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha/{game_server_deployment.name=projects/*/locations/*/gameServerDeployments/*}" - body: "game_server_deployment" - }; - } - - // Starts rollout of this game server deployment based on the given game - // server template. - rpc StartRollout(StartRolloutRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}:startRollout" - body: "*" - }; - } - - // Sets rollout target for the ongoing game server deployment rollout in the - // specified clusters and based on the given rollout percentage. Default is 0. - rpc SetRolloutTarget(SetRolloutTargetRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}:setRolloutTarget" - body: "*" - }; - } - - // 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. - rpc CommitRollout(CommitRolloutRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}:commitRollout" - body: "*" - }; - } - - // 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. - rpc RevertRollout(RevertRolloutRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}:revertRollout" - body: "*" - }; - } - - // 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. - rpc GetDeploymentTarget(GetDeploymentTargetRequest) returns (DeploymentTarget) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}:getDeploymentTarget" - }; - } -} - // Request message for GameServerDeploymentsService.ListGameServerDeployments. message ListGameServerDeploymentsRequest { // Required. The parent resource name, using the form: - // `projects/{project_id}/locations/{location}`. - string parent = 1; + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerDeployment" + } + ]; // Optional. The maximum number of items to return. If unspecified, server // will pick an appropriate default. Server may return fewer items than // requested. A caller should only rely on response's // [next_page_token][google.cloud.gaming.v1alpha.ListGameServerDeploymentsResponse.next_page_token] to // determine if there are more GameServerDeployments left to be queried. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The next_page_token value returned from a previous List request, // if any. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The filter to apply to list results. - string filter = 4; + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Specifies the ordering of results following syntax at // https://cloud.google.com/apis/design/design_patterns#sorting_order. - string order_by = 5; + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for GameServerDeploymentsService.ListGameServerDeployments. @@ -153,6 +67,12 @@ message ListGameServerDeploymentsResponse { // Token to retrieve the next page of results, or empty if there are no more // results in the list. string next_page_token = 2; + + // List of locations that could not be reached. + repeated string unreachable_locations = 3 [deprecated = true]; + + // List of locations that were not reachable. + repeated string unreachable = 4; } // Request message for GameServerDeploymentsService.GetGameServerDeployment. @@ -160,29 +80,59 @@ message GetGameServerDeploymentRequest { // Required. The name of the game server deployment to retrieve, using the // form: // - // `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - string name = 1; + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerDeployment" + } + ]; +} + +// Request message for +// GameServerDeploymentsService.GetGameServerDeploymentRollout. +message GetGameServerDeploymentRolloutRequest { + // Required. The name of the game server deployment to retrieve, using the + // form: + // + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerDeployment" + } + ]; } // Request message for GameServerDeploymentsService.CreateGameServerDeployment. message CreateGameServerDeploymentRequest { // Required. The parent resource name, using the form: - // `projects/{project_id}/locations/{location}`. - string parent = 1; + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerDeployment" + } + ]; // Required. The ID of the game server deployment resource to be created. - string deployment_id = 2; + string deployment_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The game server deployment resource to be created. - GameServerDeployment game_server_deployment = 3; + GameServerDeployment game_server_deployment = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for GameServerDeploymentsService.DeleteGameServerDeployment. message DeleteGameServerDeploymentRequest { // Required. The name of the game server deployment to delete, using the form: // - // `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - string name = 1; + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/GameServerDeployment" + } + ]; } // Request message for GameServerDeploymentsService.UpdateGameServerDeployment. @@ -190,7 +140,7 @@ message DeleteGameServerDeploymentRequest { message UpdateGameServerDeploymentRequest { // Required. The game server deployment to be updated. // Only fields specified in update_mask are updated. - GameServerDeployment game_server_deployment = 1; + GameServerDeployment game_server_deployment = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see @@ -198,137 +148,224 @@ message UpdateGameServerDeploymentRequest { // https: // //developers.google.com/protocol-buffers // // /docs/reference/google.protobuf#fieldmask - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for GameServerDeploymentsService.StartRollout. -message StartRolloutRequest { - // Required. The name of the game server deployment, using the - // form: - // - // `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - string name = 1; - - // Required. The game server template for the new rollout. - GameServerTemplate new_game_server_template = 2; -} +// Request message for +// GameServerDeploymentsService.UpdateGameServerRolloutDeployment. +message UpdateGameServerDeploymentRolloutRequest { + // Required. The game server deployment rollout to be updated. + // Only fields specified in update_mask are updated. + GameServerDeploymentRollout rollout = 1 [(google.api.field_behavior) = REQUIRED]; -// Request message for GameServerDeploymentsService.SetRolloutTarget. -message SetRolloutTargetRequest { - // Required. The name of the game server deployment, using the - // form: + // Required. Mask of fields to update. At least one path must be supplied in + // this field. For the `FieldMask` definition, see // - // `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - string name = 1; - - // Required. The percentage of game servers that should run the new game - // server template in the specified clusters. Default is 0. - repeated ClusterPercentageSelector cluster_percentage_selector = 2; + // https: + // //developers.google.com/protocol-buffers + // // /docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for GameServerDeploymentsService.CommitRollout. -message CommitRolloutRequest { - // Required. The name of the game server deployment, using the - // form: +// Request message for GameServerDeploymentsService.FetchDeploymentState. +message FetchDeploymentStateRequest { + // Required. The name of the game server deployment, using the form: // - // `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - string name = 1; + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}` + string name = 1 [(google.api.field_behavior) = REQUIRED]; } -// Request message for GameServerDeploymentsService.RevertRollout. -message RevertRolloutRequest { - // Required. The name of the game server deployment to deploy, using the - // form: - // - // `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` - string name = 1; +// Response message for GameServerDeploymentsService.FetchDeploymentState. +message FetchDeploymentStateResponse { + // Details of the deployed fleet. + message DeployedFleetDetails { + // Fleet specification and details. + message Fleet { + // FleetStatus has details about the fleets like how many are running, + // how many allocated and so on. + message FleetStatus { + // The number of available servers. + // The are no players connected to this servers. + int64 available_count = 1; + + // The number of allocated servers. + // These are servers allocated to game sessions. + int64 allocated_count = 2; + + // The number of reserved servers. + // Reserved instances won't be deleted on scale down, but won't cause + // an autoscaler to scale up. + int64 reserved_count = 3; + + // The total number of current GameServer replicas. + int64 replica_count = 4; + } + + // The name of the Agones game server fleet. + string name = 1; + + // The Agones fleet spec. + // This is sent because it is possible that we may no longer have the + // corresponding game server config in our systems. + string agones_spec = 2; + + // The cluster name. + string cluster = 3; + + // The source spec that is used to create the fleet. + // The game server config and fleet config may no longer + // exist in the system. + SpecSource spec_source = 4; + + // The current status of the fleet. + // Includes count of game servers in various states. + FleetStatus status = 5; + } + + // Details about the autoscaler. + message FleetAutoscaler { + // The name of the Agones autoscaler. + string autoscaler_name = 1; + + // The source spec that is used to create the autoscaler. + // The game server config and scaling config may no longer + // exist in the system. + SpecSource spec_source = 4; + + // The autoscaler spec. + // This is sent because it is possible that we may no longer have the + // corresponding game server config in our systems. + string fleet_autoscaler_spec = 3; + } + + // Information about the agones fleet. + Fleet fleet = 1; + + // Information about the agones autoscaler for that fleet. + FleetAutoscaler autoscaler = 2; + } + + // The details of a deployment in a given location. + repeated DeployedFleetDetails details = 1; + + // List of locations that could not be reached. + repeated string unavailable = 2; } -// Request message for GameServerDeploymentsService.GetDeploymentTarget. -message GetDeploymentTargetRequest { - // Required. The name of the game server deployment, using the - // form: +// A game server deployment resource. +message GameServerDeployment { + option (google.api.resource) = { + type: "gameservices.googleapis.com/GameServerDeployment" + pattern: "projects/{project}/locations/{location}/gameServerDeployments/{deployment}" + }; + + // The resource name of the game server deployment, using the form: // - // `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}` + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. + // For example, + // + // `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`. string name = 1; -} -// The percentage of game servers running this game server template in the -// selected clusters. -message ClusterPercentageSelector { - // Labels used to identify the clusters to which this game server template - // applies. - LabelSelector cluster_selector = 1; - - // 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; -} + // Output only. The creation time. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -// The game server spec sent to Agones and the rollout target. -message GameServerTemplate { - // The description of the game server template. - string description = 1; + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The game server spec, which is sent to Agones. - string spec = 2; + // The labels associated with this game server deployment. Each label is a + // key-value pair. + map labels = 4; - // Output only. The percentage of game servers running this game server - // template in the selected clusters. - repeated ClusterPercentageSelector cluster_percentage_selectors = 3; + // ETag of the resource. + string etag = 7; - // The ID of the game server template, specified by the user. - string template_id = 4; + // Human readable description of the game server deployment. + string description = 8; } -// 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. -message DeploymentTarget { - // The rollout target of a cluster, i.e. the percentage of game servers - // running stable_game_server_template and new_game_server_template. - message ClusterRolloutTarget { - // The realm name. - string realm = 1; - - // The cluster name. - string cluster = 2; - - // The desired percentage of game servers that run - // stable_game_server_template. - int32 stable_percent = 3; - - // The desired percentage of game servers that run new_game_server_template. - int32 new_percent = 4; +// A game server config override. +message GameServerConfigOverride { + // Selector chooses the game server config targets. + oneof selector { + // Selector for choosing applicable realms. + RealmSelector realms_selector = 1; } - repeated ClusterRolloutTarget clusters = 1; + // Actuator selects the game server config and how it should be applied. + oneof change { + // The game server config for this override. + string config_version = 100; + } } -// A game server deployment resource. -message GameServerDeployment { - // The resource name of the game server deployment, using the form: +// The game server deployment rollout which represents the rollout state. +message GameServerDeploymentRollout { + option (google.api.resource) = { + type: "gameservices.googleapis.com/GameServerDeploymentRollout" + pattern: "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout" + }; + + // The resource name of the game server deployment rollout, using the form: // - // `projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}`. + // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. // For example, // - // `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`. + // `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`. string name = 1; // Output only. The creation time. - google.protobuf.Timestamp create_time = 2; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The labels associated with this game server deployment. Each label is a - // key-value pair. - map labels = 4; + // The default game server config points to the game server config that is + // applied in all realms/clustesr. For example, + // + // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. + string default_game_server_config = 4; + + // Contains the per game server config overrides. The overrides are processed + // in the order they are listed. As soon as a match is found for cluster, + // the rest of the list is not processed. + repeated GameServerConfigOverride game_server_config_overrides = 5; + + // ETag of the resource. + string etag = 6; +} + +// Request message for PreviewGameServerDeploymentRollout. +message PreviewGameServerDeploymentRolloutRequest { + // Required. The game server deployment rollout to be updated. + // Only fields specified in update_mask are updated. + GameServerDeploymentRollout rollout = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Mask of fields to update. At least one path must be supplied in + // this field. For the `FieldMask` definition, see + // + // https: + // //developers.google.com/protocol-buffers + // // /docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The instant of time at which the preview needs to be computed. If + // unspecified, defaults to the time after the suggested rollout finishes. + google.protobuf.Timestamp preview_time = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for PreviewGameServerDeploymentRollout. +// This has details about the fleet and the autoscaler. +message PreviewGameServerDeploymentRolloutResponse { + // The deployed state. + DeployedState deployed_state = 1 [deprecated = true]; + + // Locations that could not be reached on this request. + repeated string unavailable = 2; - // Output only. The GameServerTemplate whose rollout was completed. - GameServerTemplate stable_game_server_template = 5; + // ETag of the game server deployment. + string etag = 3; - // The GameServerTemplate whose rollout is ongoing. - GameServerTemplate new_game_server_template = 6; + // The target state. + TargetState target_state = 4; } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments_service.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments_service.proto new file mode 100644 index 00000000..1a6f7553 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments_service.proto @@ -0,0 +1,129 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.gaming.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/cloud/gaming/v1alpha/game_server_deployments.proto"; +import "google/longrunning/operations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; + +option java_multiple_files = true; +option java_package = "com.google.cloud.gaming.v1alpha"; + +// The game server deployment is used to control the deployment of game server +// software to Agones fleets. +service GameServerDeploymentsService { + option (google.api.default_host) = "gameservices.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists game server deployments in a given project and location. + rpc ListGameServerDeployments(ListGameServerDeploymentsRequest) returns (ListGameServerDeploymentsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*}/gameServerDeployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single game server deployment. + rpc GetGameServerDeployment(GetGameServerDeploymentRequest) returns (GameServerDeployment) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new game server deployment in a given project and location. + rpc CreateGameServerDeployment(CreateGameServerDeploymentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/gameServerDeployments" + body: "game_server_deployment" + }; + option (google.api.method_signature) = "parent,game_server_deployment"; + option (google.longrunning.operation_info) = { + response_type: "GameServerDeployment" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single game server deployment. + rpc DeleteGameServerDeployment(DeleteGameServerDeploymentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "GameServerDeployment" + metadata_type: "OperationMetadata" + }; + } + + // Patches a game server deployment. + rpc UpdateGameServerDeployment(UpdateGameServerDeploymentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{game_server_deployment.name=projects/*/locations/*/gameServerDeployments/*}" + body: "game_server_deployment" + }; + option (google.api.method_signature) = "game_server_deployment,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "GameServerDeployment" + metadata_type: "OperationMetadata" + }; + } + + // Gets details a single game server deployment rollout. + rpc GetGameServerDeploymentRollout(GetGameServerDeploymentRolloutRequest) returns (GameServerDeploymentRollout) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}/rollout" + }; + option (google.api.method_signature) = "name"; + } + + // Patches a single game server deployment rollout. + rpc UpdateGameServerDeploymentRollout(UpdateGameServerDeploymentRolloutRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{rollout.name=projects/*/locations/*/gameServerDeployments/*}/rollout" + body: "rollout" + }; + option (google.api.method_signature) = "rollout,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "GameServerDeployment" + metadata_type: "OperationMetadata" + }; + } + + // Previews the game server deployment rollout. This API does not mutate the + // rollout resource. + rpc PreviewGameServerDeploymentRollout(PreviewGameServerDeploymentRolloutRequest) returns (PreviewGameServerDeploymentRolloutResponse) { + option (google.api.http) = { + patch: "/v1alpha/{rollout.name=projects/*/locations/*/gameServerDeployments/*}/rollout:preview" + body: "rollout" + }; + } + + // Retrieves information about the current state of the deployment, e.g. it + // gathers all the fleets and autoscalars for this deployment. + // This includes fleets running older version of the deployment. + rpc FetchDeploymentState(FetchDeploymentStateRequest) returns (FetchDeploymentStateResponse) { + option (google.api.http) = { + post: "/v1alpha/{name=projects/*/locations/*/gameServerDeployments/*}:fetchDeploymentState" + body: "*" + }; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms.proto index adfa62ff..a7f8b037 100644 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms.proto +++ b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms.proto @@ -17,84 +17,46 @@ syntax = "proto3"; package google.cloud.gaming.v1alpha; -import "google/api/annotations.proto"; -import "google/longrunning/operations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/gaming/v1alpha/common.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/client.proto"; +import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1alpha"; -// Realm provides grouping of game server clusters that are serving particular -// gamer population. -service RealmsService { - option (google.api.default_host) = "gameservices.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists realms in a given project and location. - rpc ListRealms(ListRealmsRequest) returns (ListRealmsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=projects/*/locations/*}/realms" - }; - } - - // Gets details of a single realm. - rpc GetRealm(GetRealmRequest) returns (Realm) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/realms/*}" - }; - } - - // Creates a new Realm in a given project and location. - rpc CreateRealm(CreateRealmRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*}/realms" - body: "realm" - }; - } - - // Deletes a single realm. - rpc DeleteRealm(DeleteRealmRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/realms/*}" - }; - } - - // Patches a single Realm. - rpc UpdateRealm(UpdateRealmRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha/{realm.name=projects/*/locations/*/realms/*}" - body: "realm" - }; - } -} - // Request message for RealmsService.ListRealms. message ListRealmsRequest { // Required. The parent resource name, using the form: - // `projects/{project_id}/locations/{location}`. - string parent = 1; + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/Realm" + } + ]; // Optional. The maximum number of items to return. If unspecified, server // will pick an appropriate default. Server may return fewer items than // requested. A caller should only rely on response's // [next_page_token][google.cloud.gaming.v1alpha.ListRealmsResponse.next_page_token] to // determine if there are more Realms left to be queried. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The next_page_token value returned from a previous List request, // if any. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The filter to apply to list results. - string filter = 4; + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Specifies the ordering of results following syntax at // https://cloud.google.com/apis/design/design_patterns#sorting_order. - string order_by = 5; + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for RealmsService.ListRealms. @@ -105,39 +67,73 @@ message ListRealmsResponse { // Token to retrieve the next page of results, or empty if there are no more // results in the list. string next_page_token = 2; + + // List of locations that were not reachable. + repeated string unreachable = 3; } // Request message for RealmsService.GetRealm. message GetRealmRequest { // Required. The name of the realm to retrieve, using the form: - // `projects/{project_id}/locations/{location}/realms/{realm_id}` - string name = 1; + // `projects/{project}/locations/{location}/realms/{realm}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/Realm" + } + ]; } // Request message for RealmsService.CreateRealm. message CreateRealmRequest { // Required. The parent resource name, using the form: - // `projects/{project_id}/locations/{location}`. - string parent = 1; + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/Realm" + } + ]; // Required. The ID of the realm resource to be created. - string realm_id = 2; + string realm_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The realm resource to be created. - Realm realm = 3; + Realm realm = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for RealmsService.DeleteRealm. message DeleteRealmRequest { // Required. The name of the realm to delete, using the form: - // `projects/{project_id}/locations/{location}/realms/{realm_id}` - string name = 1; + // `projects/{project}/locations/{location}/realms/{realm}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gameservices.googleapis.com/Realm" + } + ]; } +// Request message for RealmsService.UpdateRealm. message UpdateRealmRequest { // Required. The realm to be updated. // Only fields specified in update_mask are updated. - Realm realm = 1; + Realm realm = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see + // + // https: + // //developers.google.com/protocol-buffers + // // /docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for RealmsService.PreviewRealmUpdate. +message PreviewRealmUpdateRequest { + // Required. The realm to be updated. + // Only fields specified in update_mask are updated. + Realm realm = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The update mask applies to the resource. For the `FieldMask` // definition, see @@ -145,28 +141,53 @@ message UpdateRealmRequest { // https: // //developers.google.com/protocol-buffers // // /docs/reference/google.protobuf#fieldmask - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The instant of time at which the preview needs to be computed. + google.protobuf.Timestamp preview_time = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for RealmsService.PreviewRealmUpdate. +message PreviewRealmUpdateResponse { + // The deployment state. + DeployedState deployed_state = 1 [deprecated = true]; + + // ETag of the realm. + string etag = 2; + + // The target state. + TargetState target_state = 3; } // A Realm resource. message Realm { + option (google.api.resource) = { + type: "gameservices.googleapis.com/Realm" + pattern: "projects/{project}/locations/{location}/realms/{realm}" + }; + // The resource name of the realm, using the form: - // `projects/{project_id}/locations/{location}/realms/{realm_id}`. For + // `projects/{project}/locations/{location}/realms/{realm}`. For // example, `projects/my-project/locations/{location}/realms/my-realm`. string name = 1; // Output only. The creation time. - google.protobuf.Timestamp create_time = 2; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // The labels associated with this realm. Each label is a key-value pair. map labels = 4; - // Time zone where all realm-specific policies are evaluated. The value of + // Required. Time zone where all realm-specific policies are evaluated. The value of // this field must be from the IANA time zone database: - // https://www.iana.org/time-zones. If not specified, UTC is assumed by - // default. - string time_zone = 6; + // https://www.iana.org/time-zones. + string time_zone = 6 [(google.api.field_behavior) = REQUIRED]; + + // ETag of the resource. + string etag = 7; + + // Human readable description of the realm. + string description = 8; } diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms_service.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms_service.proto new file mode 100644 index 00000000..18f1b1e0 --- /dev/null +++ b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms_service.proto @@ -0,0 +1,97 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.gaming.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/cloud/gaming/v1alpha/realms.proto"; +import "google/longrunning/operations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; + +option java_multiple_files = true; +option java_package = "com.google.cloud.gaming.v1alpha"; + +// Realm provides grouping of game server clusters that are serving a particular +// gamer population. +service RealmsService { + option (google.api.default_host) = "gameservices.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists realms in a given project and location. + rpc ListRealms(ListRealmsRequest) returns (ListRealmsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*}/realms" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single realm. + rpc GetRealm(GetRealmRequest) returns (Realm) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/realms/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Realm in a given project and location. + rpc CreateRealm(CreateRealmRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/realms" + body: "realm" + }; + option (google.api.method_signature) = "parent,realm,realm_id"; + option (google.longrunning.operation_info) = { + response_type: "Realm" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single realm. + rpc DeleteRealm(DeleteRealmRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/realms/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Realm" + metadata_type: "OperationMetadata" + }; + } + + // Patches a single Realm. + rpc UpdateRealm(UpdateRealmRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{realm.name=projects/*/locations/*/realms/*}" + body: "realm" + }; + option (google.api.method_signature) = "realm,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Realm" + metadata_type: "OperationMetadata" + }; + } + + // Previews patches to a single Realm. + rpc PreviewRealmUpdate(PreviewRealmUpdateRequest) returns (PreviewRealmUpdateResponse) { + option (google.api.http) = { + patch: "/v1alpha/{realm.name=projects/*/locations/*/realms/*}:previewUpdate" + body: "realm" + }; + } +} diff --git a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/scaling_policies.proto b/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/scaling_policies.proto deleted file mode 100644 index 3c5c680b..00000000 --- a/proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/scaling_policies.proto +++ /dev/null @@ -1,216 +0,0 @@ -// Copyright 2019 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package google.cloud.gaming.v1alpha; - -import "google/api/annotations.proto"; -import "google/cloud/gaming/v1alpha/common.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/client.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1alpha;gaming"; - -option java_multiple_files = true; -option java_package = "com.google.cloud.gaming.v1alpha"; - -// The cloud gaming scaling policy is used to configure scaling parameters for -// each fleet. -service ScalingPoliciesService { - option (google.api.default_host) = "gameservices.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists ScalingPolicies in a given project and location. - rpc ListScalingPolicies(ListScalingPoliciesRequest) returns (ListScalingPoliciesResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=projects/*/locations/*}/scalingPolicies" - }; - } - - // Gets details of a single scaling policy. - rpc GetScalingPolicy(GetScalingPolicyRequest) returns (ScalingPolicy) { - option (google.api.http) = { - get: "/v1alpha/{name=projects/*/locations/*/scalingPolicies/*}" - }; - } - - // Creates a new scaling policy in a given project and location. - rpc CreateScalingPolicy(CreateScalingPolicyRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1alpha/{parent=projects/*/locations/*}/scalingPolicies" - body: "scaling_policy" - }; - } - - // Deletes a single scaling policy. - rpc DeleteScalingPolicy(DeleteScalingPolicyRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1alpha/{name=projects/*/locations/*/scalingPolicies/*}" - }; - } - - // Patches a single scaling policy. - rpc UpdateScalingPolicy(UpdateScalingPolicyRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1alpha/{scaling_policy.name=projects/*/locations/*/scalingPolicies/*}" - body: "scaling_policy" - }; - } -} - -// Request message for ScalingPoliciesService.ListScalingPolicies. -message ListScalingPoliciesRequest { - // Required. The parent resource name, using the form: - // `projects/{project_id}/locations/{location}`. - string parent = 1; - - // / Optional. The maximum number of items to return. If unspecified, server - // will pick an appropriate default. Server may return fewer items than - // requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1alpha.ListScalingPoliciesResponse.next_page_token] to - // determine if there are more ScalingPolicies left to be queried. - int32 page_size = 2; - - // Optional. The next_page_token value returned from a previous List request, - // if any. - string page_token = 3; - - // Optional. The filter to apply to list results. - string filter = 4; - - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - string order_by = 5; -} - -// Response message for ScalingPoliciesService.ListScalingPolicies. -message ListScalingPoliciesResponse { - // The list of scaling policies. - repeated ScalingPolicy scaling_policies = 1; - - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - string next_page_token = 2; -} - -// Request message for ScalingPoliciesService.GetScalingPolicy. -message GetScalingPolicyRequest { - // Required. The name of the scaling policy to retrieve, using the form: - // - // `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}` - string name = 1; -} - -// Request message for ScalingPoliciesService.CreateScalingPolicy. -message CreateScalingPolicyRequest { - // Required. The parent resource name, using the form: - // `projects/{project_id}/locations/{location}`. - string parent = 1; - - // Required. The ID of the scaling policy resource to be created. - string scaling_policy_id = 2; - - // Required. The scaling policy resource to be created. - ScalingPolicy scaling_policy = 3; -} - -// Request message for ScalingPoliciesService.DeleteScalingPolicy. -message DeleteScalingPolicyRequest { - // Required. The name of the scaling policy to delete, using the form: - // - // `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}` - string name = 1; -} - -// Request message for ScalingPoliciesService.UpdateScalingPolicy. -message UpdateScalingPolicyRequest { - // Required. The scaling policy to be updated. - // Only fields specified in update_mask are updated. - ScalingPolicy scaling_policy = 1; - - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - google.protobuf.FieldMask update_mask = 2; -} - -// Fleet autoscaling parameters. -message FleetAutoscalerSettings { - oneof buffer_size { - // The size of a buffer of ready game server instances in absolute number. - // As game server instances get allocated or terminated, the fleet will be - // scaled up and down so that this buffer is maintained. - int64 buffer_size_absolute = 1; - - // The size of a buffer of ready game server instances in percentage. Value - // must be in range [1, 99]. As game server instances get allocated or - // terminated, the fleet will be scaled up and down so that this buffer is - // maintained. - int32 buffer_size_percentage = 2; - } - - // The minimum fleet size. - int64 min_replicas = 3; - - // The maximum fleet size. - int64 max_replicas = 4; -} - -// A scaling policy resource. -message ScalingPolicy { - // The resource name of the scaling policy, using the form: - // - // `projects/{project_id}/locations/{location}/scalingPolicies/{scaling_policy_id}`. - // For example, - // `projects/my-project/locations/{location}/scalingPolicies/my-policy`. - string name = 1; - - // Output only. The creation time. - google.protobuf.Timestamp create_time = 2; - - // Output only. The last-modified time. - google.protobuf.Timestamp update_time = 3; - - // The labels associated with this scaling policy. Each label is a key-value - // pair. - map labels = 4; - - // Fleet autoscaler parameters. - FleetAutoscalerSettings fleet_autoscaler_settings = 5; - - // Required. The priority of the policy. A smaller value indicates a higher - // priority. - google.protobuf.Int32Value priority = 6; - - // Labels used to identify the clusters to which this scaling policy applies. - // A cluster is subject to this scaling policy if its labels match any of the - // cluster selector entries. - repeated LabelSelector cluster_selectors = 7; - - // The schedules to which this scaling policy applies. - repeated Schedule schedules = 8; - - // The game server deployment for this scaling policy. For example, - // - // "projects/my-project/locations/{location}/gameServerDeployments/my-deployment". - string game_server_deployment = 9; -} diff --git a/renovate.json b/renovate.json index f3a70c97..a5cdff45 100644 --- a/renovate.json +++ b/renovate.json @@ -58,6 +58,12 @@ "^com.google.cloud:google-cloud-" ], "ignoreUnstable": false + }, + { + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" } ], "semanticCommits": true diff --git a/synth.metadata b/synth.metadata index f772c7f9..66f991fd 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-19T19:50:49.934061Z", + "updateTime": "2020-01-30T23:00:09.374080Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + "version": "0.44.4", + "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" } }, { "git": { "name": "googleapis-private", "remote": "https://github.com/googleapis/googleapis-private.git", - "sha": "0d709add3a9327f69ba10da1d10faa76da3dd612", - "internalRef": "280764897" + "sha": "c9a86daf14b65d14552c5165ad4f3a3ff632428c", + "internalRef": "291759759" } }, { @@ -35,5 +35,718 @@ "config": "google/cloud/gaming/artman_gameservices_v1alpha.yaml" } } + ], + "newFiles": [ + { + "path": ".github/ISSUE_TEMPLATE/bug_report.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/feature_request.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/support_request.md" + }, + { + "path": ".github/PULL_REQUEST_TEMPLATE.md" + }, + { + "path": ".github/release-please.yml" + }, + { + "path": ".kokoro/build.bat" + }, + { + "path": ".kokoro/build.sh" + }, + { + "path": ".kokoro/coerce_logs.sh" + }, + { + "path": ".kokoro/common.cfg" + }, + { + "path": ".kokoro/continuous/common.cfg" + }, + { + "path": ".kokoro/continuous/dependencies.cfg" + }, + { + "path": ".kokoro/continuous/integration.cfg" + }, + { + "path": ".kokoro/continuous/java11.cfg" + }, + { + "path": ".kokoro/continuous/java7.cfg" + }, + { + "path": ".kokoro/continuous/java8-osx.cfg" + }, + { + "path": ".kokoro/continuous/java8-win.cfg" + }, + { + "path": ".kokoro/continuous/java8.cfg" + }, + { + "path": ".kokoro/continuous/lint.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.sh" + }, + { + "path": ".kokoro/continuous/samples.cfg" + }, + { + "path": ".kokoro/dependencies.sh" + }, + { + "path": ".kokoro/linkage-monitor.sh" + }, + { + "path": ".kokoro/nightly/common.cfg" + }, + { + "path": ".kokoro/nightly/dependencies.cfg" + }, + { + "path": ".kokoro/nightly/integration.cfg" + }, + { + "path": ".kokoro/nightly/java11.cfg" + }, + { + "path": ".kokoro/nightly/java7.cfg" + }, + { + "path": ".kokoro/nightly/java8-osx.cfg" + }, + { + "path": ".kokoro/nightly/java8-win.cfg" + }, + { + "path": ".kokoro/nightly/java8.cfg" + }, + { + "path": ".kokoro/nightly/lint.cfg" + }, + { + "path": ".kokoro/nightly/samples.cfg" + }, + { + "path": ".kokoro/presubmit/clirr.cfg" + }, + { + "path": ".kokoro/presubmit/common.cfg" + }, + { + "path": ".kokoro/presubmit/dependencies.cfg" + }, + { + "path": ".kokoro/presubmit/integration.cfg" + }, + { + "path": ".kokoro/presubmit/java11.cfg" + }, + { + "path": ".kokoro/presubmit/java7.cfg" + }, + { + "path": ".kokoro/presubmit/java8-osx.cfg" + }, + { + "path": ".kokoro/presubmit/java8-win.cfg" + }, + { + "path": ".kokoro/presubmit/java8.cfg" + }, + { + "path": ".kokoro/presubmit/linkage-monitor.cfg" + }, + { + "path": ".kokoro/presubmit/lint.cfg" + }, + { + "path": ".kokoro/presubmit/samples.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.sh" + }, + { + "path": ".kokoro/release/common.cfg" + }, + { + "path": ".kokoro/release/common.sh" + }, + { + "path": ".kokoro/release/drop.cfg" + }, + { + "path": ".kokoro/release/drop.sh" + }, + { + "path": ".kokoro/release/promote.cfg" + }, + { + "path": ".kokoro/release/promote.sh" + }, + { + "path": ".kokoro/release/publish_javadoc.cfg" + }, + { + "path": ".kokoro/release/publish_javadoc.sh" + }, + { + "path": ".kokoro/release/snapshot.cfg" + }, + { + "path": ".kokoro/release/snapshot.sh" + }, + { + "path": ".kokoro/release/stage.cfg" + }, + { + "path": ".kokoro/release/stage.sh" + }, + { + "path": ".kokoro/trampoline.sh" + }, + { + "path": "CODE_OF_CONDUCT.md" + }, + { + "path": "CONTRIBUTING.md" + }, + { + "path": "LICENSE" + }, + { + "path": "codecov.yaml" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClient.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceSettings.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClient.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceSettings.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceClient.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceSettings.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/package-info.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStub.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerClustersServiceStubSettings.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStub.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GameServerDeploymentsServiceStubSettings.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceCallableFactory.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerClustersServiceStub.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceCallableFactory.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcGameServerDeploymentsServiceStub.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceCallableFactory.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/GrpcRealmsServiceStub.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStub.java" + }, + { + "path": "google-cloud-gameservices/src/main/java/com/google/cloud/gaming/v1alpha/stub/RealmsServiceStubSettings.java" + }, + { + "path": "google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceClientTest.java" + }, + { + "path": "google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceClientTest.java" + }, + { + "path": "google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersService.java" + }, + { + "path": "google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerClustersServiceImpl.java" + }, + { + "path": "google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsService.java" + }, + { + "path": "google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockGameServerDeploymentsServiceImpl.java" + }, + { + "path": "google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsService.java" + }, + { + "path": "google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/MockRealmsServiceImpl.java" + }, + { + "path": "google-cloud-gameservices/src/test/java/com/google/cloud/gaming/v1alpha/RealmsServiceClientTest.java" + }, + { + "path": "grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceGrpc.java" + }, + { + "path": "grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceGrpc.java" + }, + { + "path": "grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceGrpc.java" + }, + { + "path": "grpc-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceGrpc.java" + }, + { + "path": "java.header" + }, + { + "path": "license-checks.xml" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Common.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerClusterRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerConfigRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateGameServerDeploymentRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/CreateRealmRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerClusterRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerConfigRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteGameServerDeploymentRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeleteRealmRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedState.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/DeployedStateOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FetchDeploymentStateResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfig.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetails.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/FleetDetailsOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerCluster.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfo.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterConnectionInfoOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterName.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusterOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClusters.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerClustersServiceOuterClass.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfig.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverride.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigOverrideOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigs.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerConfigsServiceOuterClass.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployment.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentName.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRollout.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentRolloutOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeployments.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GameServerDeploymentsServiceOuterClass.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerClusterRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerConfigRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetGameServerDeploymentRolloutRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GetRealmRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReference.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeClusterReferenceOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReference.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/GkeHubClusterReferenceOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelector.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LabelSelectorOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerClustersResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerConfigsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListGameServerDeploymentsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ListRealmsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/LocationName.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadata.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationMetadataOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatus.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/OperationStatusOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewCreateGameServerClusterResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewDeleteGameServerClusterResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewGameServerDeploymentRolloutResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewRealmUpdateResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponse.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/PreviewUpdateGameServerClusterResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realm.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmName.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelector.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmSelectorOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Realms.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/RealmsServiceOuterClass.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfig.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScalingConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/Schedule.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/ScheduleOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSource.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/SpecSourceOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetails.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetDetailsOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetState.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/TargetStateOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerClusterRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateGameServerDeploymentRolloutRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequest.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/java/com/google/cloud/gaming/v1alpha/UpdateRealmRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/common.proto" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters.proto" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_clusters_service.proto" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs.proto" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_configs_service.proto" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments.proto" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/game_server_deployments_service.proto" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms.proto" + }, + { + "path": "proto-google-cloud-gameservices-v1alpha/src/main/proto/google/cloud/gaming/v1alpha/realms_service.proto" + }, + { + "path": "renovate.json" + } ] } \ No newline at end of file